var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function";var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){return Module["read"](filename,true)};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}))}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.log(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}var Runtime={setTempRet0:(function(value){tempRet0=value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return Runtime.QUANTUM_SIZE}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}),getNativeFieldSize:(function(type){return Math.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return 8;if(!type)return Math.min(size,8);return Math.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){assert(args.length==sig.length-1);if(!args.splice)args=Array.prototype.slice.call(args);args.splice(0,0,ptr);assert("dynCall_"+sig in Module,"bad function pointer type - no table for sig '"+sig+"'");return Module["dynCall_"+sig].apply(null,args)}else{assert(sig.length==1);assert("dynCall_"+sig in Module,"bad function pointer type - no table for sig '"+sig+"'");return Module["dynCall_"+sig].call(null,ptr)}}),functionPointers:[],addFunction:(function(func){for(var i=0;i<Runtime.functionPointers.length;i++){if(!Runtime.functionPointers[i]){Runtime.functionPointers[i]=func;return 2*(1+i)}}throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}),removeFunction:(function(index){Runtime.functionPointers[(index-2)/2]=null}),getAsmConst:(function(code,numArgs){if(!Runtime.asmConstCache)Runtime.asmConstCache={};var func=Runtime.asmConstCache[code];if(func)return func;var args=[];for(var i=0;i<numArgs;i++){args.push(String.fromCharCode(36)+i)}var source=Pointer_stringify(code);if(source[0]==='"'){if(source.indexOf('"',1)===source.length-1){source=source.substr(1,source.length-2)}else{abort("invalid EM_ASM input |"+source+"|. Please use EM_ASM(..code..) (no quotes) or EM_ASM({ ..code($0).. }, input) (to input values)")}}try{var evalled=eval("(function(Module, FS) { return function("+args.join(",")+"){ "+source+" } })")(Module,typeof FS!=="undefined"?FS:null)}catch(e){Module.printErr("error in executing inline EM_ASM code: "+e+" on: \n\n"+source+"\n\nwith args |"+args+"| (make sure to use the right one out of EM_ASM, EM_ASM_ARGS, etc.)");throw e}return Runtime.asmConstCache[code]=evalled}),warnOnce:(function(text){if(!Runtime.warnOnce.shown)Runtime.warnOnce.shown={};if(!Runtime.warnOnce.shown[text]){Runtime.warnOnce.shown[text]=1;Module.printErr(text)}}),funcWrappers:{},getFuncWrapper:(function(func,sig){assert(sig);if(!Runtime.funcWrappers[sig]){Runtime.funcWrappers[sig]={}}var sigCache=Runtime.funcWrappers[sig];if(!sigCache[func]){sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func,arguments)}}return sigCache[func]}),getCompilerSetting:(function(name){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"}),stackAlloc:(function(size){var ret=STACKTOP;STACKTOP=STACKTOP+size|0;STACKTOP=STACKTOP+15&-16;assert((STACKTOP|0)<(STACK_MAX|0)|0)|0;return ret}),staticAlloc:(function(size){var ret=STATICTOP;STATICTOP=STATICTOP+(assert(!staticSealed),size)|0;STATICTOP=STATICTOP+15&-16;return ret}),dynamicAlloc:(function(size){var ret=DYNAMICTOP;DYNAMICTOP=DYNAMICTOP+(assert(DYNAMICTOP>0),size)|0;DYNAMICTOP=DYNAMICTOP+15&-16;if(DYNAMICTOP>=TOTAL_MEMORY){var success=enlargeMemory();if(!success)return 0}return ret}),alignMemory:(function(size,quantum){var ret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);return ret}),makeBigInt:(function(low,high,unsigned){var ret=unsigned?+(low>>>0)+ +(high>>>0)*+4294967296:+(low>>>0)+ +(high|0)*+4294967296;return ret}),GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;var __THREW__=0;var ABORT=false;var EXITSTATUS=0;var undef=0;var tempValue,tempInt,tempBigInt,tempInt2,tempBigInt2,tempPair,tempBigIntI,tempBigIntR,tempBigIntS,tempBigIntP,tempBigIntD,tempDouble,tempFloat;var tempI64,tempI64b;var tempRet0,tempRet1,tempRet2,tempRet3,tempRet4,tempRet5,tempRet6,tempRet7,tempRet8,tempRet9;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}var globalScope=this;function getCFunc(ident){var func=Module["_"+ident];if(!func){try{func=eval("_"+ident)}catch(e){}}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");return func}var cwrap,ccall;((function(){var JSfuncs={"stackSave":(function(){Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore()}),"arrayToC":(function(arr){var ret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}),"stringToC":(function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){ret=Runtime.stackAlloc((str.length<<2)+1);writeStringToMemory(str,ret)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args){var func=getCFunc(ident);var cArgs=[];var stack=0;assert(returnType!=="array",'Return type should not be "array".');if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=Runtime.stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);if(returnType==="string")ret=Pointer_stringify(ret);if(stack!==0)Runtime.stackRestore(stack);return ret};var sourceRegex=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;function parseJSFunc(jsfunc){var parsed=jsfunc.toString().match(sourceRegex).slice(1);return{arguments:parsed[0],body:parsed[1],returnValue:parsed[2]}}var JSsource={};for(var fun in JSfuncs){if(JSfuncs.hasOwnProperty(fun)){JSsource[fun]=parseJSFunc(JSfuncs[fun])}}cwrap=function cwrap(ident,returnType,argTypes){argTypes=argTypes||[];var cfunc=getCFunc(ident);var numericArgs=argTypes.every((function(type){return type==="number"}));var numericRet=returnType!=="string";if(numericRet&&numericArgs){return cfunc}var argNames=argTypes.map((function(x,i){return"$"+i}));var funcstr="(function("+argNames.join(",")+") {";var nargs=argTypes.length;if(!numericArgs){funcstr+="var stack = "+JSsource["stackSave"].body+";";for(var i=0;i<nargs;i++){var arg=argNames[i],type=argTypes[i];if(type==="number")continue;var convertCode=JSsource[type+"ToC"];funcstr+="var "+convertCode.arguments+" = "+arg+";";funcstr+=convertCode.body+";";funcstr+=arg+"="+convertCode.returnValue+";"}}var cfuncname=parseJSFunc((function(){return cfunc})).returnValue;funcstr+="var ret = "+cfuncname+"("+argNames.join(",")+");";if(!numericRet){var strgfy=parseJSFunc((function(){return Pointer_stringify})).returnValue;funcstr+="ret = "+strgfy+"(ret);"}if(!numericArgs){funcstr+=JSsource["stackRestore"].body.replace("()","(stack)")+";"}funcstr+="return ret})";return eval(funcstr)}}))();Module["cwrap"]=cwrap;Module["ccall"]=ccall;function setValue(ptr,value,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=+1?tempDouble>+0?(Math_min(+Math_floor(tempDouble/+4294967296),+4294967295)|0)>>>0:~~+Math_ceil((tempDouble- +(~~tempDouble>>>0))/+4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;function getValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}Module["getValue"]=getValue;var ALLOC_NORMAL=0;var ALLOC_STACK=1;var ALLOC_STATIC=2;var ALLOC_DYNAMIC=3;var ALLOC_NONE=4;Module["ALLOC_NORMAL"]=ALLOC_NORMAL;Module["ALLOC_STACK"]=ALLOC_STACK;Module["ALLOC_STATIC"]=ALLOC_STATIC;Module["ALLOC_DYNAMIC"]=ALLOC_DYNAMIC;Module["ALLOC_NONE"]=ALLOC_NONE;function allocate(slab,types,allocator,ptr){var zeroinit,size;if(typeof slab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}var singleType=typeof types==="string"?types:null;var ret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var ptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr<stop;ptr+=4){HEAP32[ptr>>2]=0}stop=ret+size;while(ptr<stop){HEAP8[ptr++>>0]=0}return ret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var i=0,type,typeSize,previousType;while(i<size){var curr=slab[i];if(typeof curr==="function"){curr=Runtime.getFunctionIndex(curr)}type=singleType||types[i];if(type===0){i++;continue}assert(type,"Must know what type to store in allocate!");if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=Runtime.getNativeTypeSize(type);previousType=type}i+=typeSize}return ret}Module["allocate"]=allocate;function Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=0;var t;var i=0;while(1){assert(ptr+i<TOTAL_MEMORY);t=HEAPU8[ptr+i>>0];hasUtf|=t;if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(hasUtf<128){var MAX_CHUNK=1024;var curr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}return ret}return Module["UTF8ToString"](ptr)}Module["Pointer_stringify"]=Pointer_stringify;function AsciiToString(ptr){var str="";while(1){var ch=HEAP8[ptr++>>0];if(!ch)return str;str+=String.fromCharCode(ch)}}Module["AsciiToString"]=AsciiToString;function stringToAscii(str,outPtr){return writeAsciiToMemory(str,outPtr,false)}Module["stringToAscii"]=stringToAscii;function UTF8ArrayToString(u8Array,idx){var u0,u1,u2,u3,u4,u5;var str="";while(1){u0=u8Array[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}u1=u8Array[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}u2=u8Array[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u3=u8Array[idx++]&63;if((u0&248)==240){u0=(u0&7)<<18|u1<<12|u2<<6|u3}else{u4=u8Array[idx++]&63;if((u0&252)==248){u0=(u0&3)<<24|u1<<18|u2<<12|u3<<6|u4}else{u5=u8Array[idx++]&63;u0=(u0&1)<<30|u1<<24|u2<<18|u3<<12|u4<<6|u5}}}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}Module["UTF8ArrayToString"]=UTF8ArrayToString;function UTF8ToString(ptr){return UTF8ArrayToString(HEAPU8,ptr)}Module["UTF8ToString"]=UTF8ToString;function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=2097151){if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=67108863){if(outIdx+4>=endIdx)break;outU8Array[outIdx++]=248|u>>24;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+5>=endIdx)break;outU8Array[outIdx++]=252|u>>30;outU8Array[outIdx++]=128|u>>24&63;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}Module["stringToUTF8Array"]=stringToUTF8Array;function stringToUTF8(str,outPtr,maxBytesToWrite){assert(typeof maxBytesToWrite=="number","stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!");return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}Module["stringToUTF8"]=stringToUTF8;function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){++len}else if(u<=2047){len+=2}else if(u<=65535){len+=3}else if(u<=2097151){len+=4}else if(u<=67108863){len+=5}else{len+=6}}return len}Module["lengthBytesUTF8"]=lengthBytesUTF8;function UTF16ToString(ptr){var i=0;var str="";while(1){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)return str;++i;str+=String.fromCharCode(codeUnit)}}Module["UTF16ToString"]=UTF16ToString;function stringToUTF16(str,outPtr,maxBytesToWrite){assert(typeof maxBytesToWrite=="number","stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!");if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2}HEAP16[outPtr>>1]=0;return outPtr-startPtr}Module["stringToUTF16"]=stringToUTF16;function lengthBytesUTF16(str){return str.length*2}Module["lengthBytesUTF16"]=lengthBytesUTF16;function UTF32ToString(ptr){var i=0;var str="";while(1){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)return str;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}else{str+=String.fromCharCode(utf32)}}}Module["UTF32ToString"]=UTF32ToString;function stringToUTF32(str,outPtr,maxBytesToWrite){assert(typeof maxBytesToWrite=="number","stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!");if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}Module["stringToUTF32"]=stringToUTF32;function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4}return len}Module["lengthBytesUTF32"]=lengthBytesUTF32;function demangle(func){var hasLibcxxabi=!!Module["___cxa_demangle"];if(hasLibcxxabi){try{var buf=_malloc(func.length);writeStringToMemory(func.substr(1),buf);var status=_malloc(4);var ret=Module["___cxa_demangle"](buf,0,0,status);if(getValue(status,"i32")===0&&ret){return Pointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}}var i=3;var basicTypes={"v":"void","b":"bool","c":"char","s":"short","i":"int","l":"long","f":"float","d":"double","w":"wchar_t","a":"signed char","h":"unsigned char","t":"unsigned short","j":"unsigned int","m":"unsigned long","x":"long long","y":"unsigned long long","z":"..."};var subs=[];var first=true;function dump(x){if(x)Module.print(x);Module.print(func);var pre="";for(var a=0;a<i;a++)pre+=" ";Module.print(pre+"^")}function parseNested(){i++;if(func[i]==="K")i++;var parts=[];while(func[i]!=="E"){if(func[i]==="S"){i++;var next=func.indexOf("_",i);var num=func.substring(i,next)||0;parts.push(subs[num]||"?");i=next+1;continue}if(func[i]==="C"){parts.push(parts[parts.length-1]);i+=2;continue}var size=parseInt(func.substr(i));var pre=size.toString().length;if(!size||!pre){i--;break}var curr=func.substr(i+pre,size);parts.push(curr);subs.push(curr);i+=pre+size}i++;return parts}function parse(rawList,limit,allowVoid){limit=limit||Infinity;var ret="",list=[];function flushList(){return"("+list.join(", ")+")"}var name;if(func[i]==="N"){name=parseNested().join("::");limit--;if(limit===0)return rawList?[name]:name}else{if(func[i]==="K"||first&&func[i]==="L")i++;var size=parseInt(func.substr(i));if(size){var pre=size.toString().length;name=func.substr(i+pre,size);i+=pre+size}}first=false;if(func[i]==="I"){i++;var iList=parse(true);var iRet=parse(true,1,true);ret+=iRet[0]+" "+name+"<"+iList.join(", ")+">"}else{ret=name}paramLoop:while(i<func.length&&limit-->0){var c=func[i++];if(c in basicTypes){list.push(basicTypes[c])}else{switch(c){case"P":list.push(parse(true,1,true)[0]+"*");break;case"R":list.push(parse(true,1,true)[0]+"&");break;case"L":{i++;var end=func.indexOf("E",i);var size=end-i;list.push(func.substr(i,size));i+=size+2;break};case"A":{var size=parseInt(func.substr(i));i+=size.toString().length;if(func[i]!=="_")throw"?";i++;list.push(parse(true,1,true)[0]+" ["+size+"]");break};case"E":break paramLoop;default:ret+="?"+c;break paramLoop}}}if(!allowVoid&&list.length===1&&list[0]==="void")list=[];if(rawList){if(ret){list.push(ret+"?")}return list}else{return ret+flushList()}}var parsed=func;try{if(func=="Object._main"||func=="_main"){return"main()"}if(typeof func==="number")func=Pointer_stringify(func);if(func[0]!=="_")return func;if(func[1]!=="_")return func;if(func[2]!=="Z")return func;switch(func[3]){case"n":return"operator new()";case"d":return"operator delete()"}parsed=parse()}catch(e){parsed+="?"}if(parsed.indexOf("?")>=0&&!hasLibcxxabi){Runtime.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with  -s DEMANGLE_SUPPORT=1  to link in libcxxabi demangling")}return parsed}function demangleAll(text){return text.replace(/__Z[\w\d_]+/g,(function(x){var y=demangle(x);return x===y?x:x+" ["+y+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){return demangleAll(jsStackTrace())}Module["stackTrace"]=stackTrace;var PAGE_SIZE=4096;function alignMemoryPage(x){if(x%4096>0){x+=4096-x%4096}return x}var HEAP;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;var STATIC_BASE=0,STATICTOP=0,staticSealed=false;var STACK_BASE=0,STACKTOP=0,STACK_MAX=0;var DYNAMIC_BASE=0,DYNAMICTOP=0;function enlargeMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.")}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;var totalMemory=64*1024;while(totalMemory<TOTAL_MEMORY||totalMemory<2*TOTAL_STACK){if(totalMemory<16*1024*1024){totalMemory*=2}else{totalMemory+=16*1024*1024}}if(totalMemory!==TOTAL_MEMORY){Module.printErr("increasing TOTAL_MEMORY to "+totalMemory+" to be compliant with the asm.js spec (and given that TOTAL_STACK="+TOTAL_STACK+")");TOTAL_MEMORY=totalMemory}assert(typeof Int32Array!=="undefined"&&typeof Float64Array!=="undefined"&&!!(new Int32Array(1))["subarray"]&&!!(new Int32Array(1))["set"],"JS engine does not provide full typed array support");var buffer=new ArrayBuffer(TOTAL_MEMORY);HEAP8=new Int8Array(buffer);HEAP16=new Int16Array(buffer);HEAP32=new Int32Array(buffer);HEAPU8=new Uint8Array(buffer);HEAPU16=new Uint16Array(buffer);HEAPU32=new Uint32Array(buffer);HEAPF32=new Float32Array(buffer);HEAPF64=new Float64Array(buffer);HEAP32[0]=255;assert(HEAPU8[0]===255&&HEAPU8[3]===0,"Typed arrays 2 must be run on a little-endian system");Module["HEAP"]=HEAP;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8;Module["HEAP16"]=HEAP16;Module["HEAP32"]=HEAP32;Module["HEAPU8"]=HEAPU8;Module["HEAPU16"]=HEAPU16;Module["HEAPU32"]=HEAPU32;Module["HEAPF32"]=HEAPF32;Module["HEAPF64"]=HEAPF64;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Runtime.dynCall("v",func)}else{Runtime.dynCall("vi",func,[callback.arg])}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__);runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}Module["addOnPreRun"]=Module.addOnPreRun=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=Module.addOnInit=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=Module.addOnPreMain=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=Module.addOnExit=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=Module.addOnPostRun=addOnPostRun;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}Module["intArrayFromString"]=intArrayFromString;function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+")  at offset "+i+" not in 0x00-0xFF.");chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){var array=intArrayFromString(string,dontAddNull);var i=0;while(i<array.length){var chr=array[i];HEAP8[buffer+i>>0]=chr;i=i+1}}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){for(var i=0;i<array.length;i++){HEAP8[buffer++>>0]=array[i]}}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){assert(str.charCodeAt(i)===str.charCodeAt(i)&255);HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;function unSign(value,bits,ignore){if(value>=0){return value}return bits<=32?2*Math.abs(1<<bits-1)+value:Math.pow(2,bits)+value}function reSign(value,bits,ignore){if(value<=0){return value}var half=bits<=32?Math.abs(1<<bits-1):Math.pow(2,bits-1);if(value>=half&&(bits<=32||value>half)){value=-2*half+value}return value}if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];if(!Math["clz32"])Math["clz32"]=(function(x){x=x>>>0;for(var i=0;i<32;i++){if(x&1<<31-i)return i}return 32});Math.clz32=Math["clz32"];var Math_abs=Math.abs;var Math_cos=Math.cos;var Math_sin=Math.sin;var Math_tan=Math.tan;var Math_acos=Math.acos;var Math_asin=Math.asin;var Math_atan=Math.atan;var Math_atan2=Math.atan2;var Math_exp=Math.exp;var Math_log=Math.log;var Math_sqrt=Math.sqrt;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_pow=Math.pow;var Math_imul=Math.imul;var Math_fround=Math.fround;var Math_min=Math.min;var Math_clz32=Math.clz32;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;var runDependencyTracking={};function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(id){assert(!runDependencyTracking[id]);runDependencyTracking[id]=1;if(runDependencyWatcher===null&&typeof setInterval!=="undefined"){runDependencyWatcher=setInterval((function(){if(ABORT){clearInterval(runDependencyWatcher);runDependencyWatcher=null;return}var shown=false;for(var dep in runDependencyTracking){if(!shown){shown=true;Module.printErr("still waiting on run dependencies:")}Module.printErr("dependency: "+dep)}if(shown){Module.printErr("(end of list)")}}),1e4)}}else{Module.printErr("warning: run dependency added without ID")}}Module["addRunDependency"]=addRunDependency;function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(id){assert(runDependencyTracking[id]);delete runDependencyTracking[id]}else{Module.printErr("warning: run dependency removed without ID")}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};var memoryInitializer=null;STATIC_BASE=8;STATICTOP=STATIC_BASE+49568;__ATINIT__.push();allocate([32,0,0,0,88,0,0,0,168,0,0,0,224,0,0,0,0,1,0,0,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,116,49,40,97,32,73,78,84,69,71,69,82,44,32,98,32,73,78,84,69,71,69,82,44,32,99,32,86,65,82,67,72,65,82,40,49,48,48,41,41,59,0,0,73,78,83,69,82,84,32,73,78,84,79,32,116,49,32,86,65,76,85,69,83,40,49,44,49,51,49,53,51,44,39,116,104,105,114,116,101,101,110,32,116,104,111,117,115,97,110,100,32,111,110,101,32,104,117,110,100,114,101,100,32,102,105,102,116,121,32,116,104,114,101,101,39,41,59,0,0,0,0,0,73,78,83,69,82,84,32,73,78,84,79,32,116,49,32,86,65,76,85,69,83,40,49,44,57,56,55,44,39,115,111,109,101,32,111,116,104,101,114,32,110,117,109,98,101,114,39,41,59,0,0,0,0,0,0,0,83,69,76,69,67,84,32,99,111,117,110,116,40,42,41,32,70,82,79,77,32,116,49,59,0,0,0,0,0,0,0,0,83,69,76,69,67,84,32,97,44,32,98,44,32,99,32,70,82,79,77,32,116,49,59],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);allocate([114,99,32,61,61,32,83,81,76,73,84,69,95,79,75,0,116,101,115,116,46,99,0,0,116,101,115,116,49,0,0,0,99,111,117,110,116,40,42,41,61,50,97,61,49,98,61,49,51,49,53,51,99,61,116,104,105,114,116,101,101,110,32,116,104,111,117,115,97,110,100,32,111,110,101,32,104,117,110,100,114,101,100,32,102,105,102,116,121,32,116,104,114,101,101,97,61,49,98,61,57,56,55,99,61,115,111,109,101,32,111,116,104,101,114,32,110,117,109,98,101,114,0,0,0,0,0,0,115,116,114,99,109,112,40,98,117,102,102,101,114,44,32,69,88,80,69,67,84,69,68,41,32,61,61,32,48,0,0,0,51,46,56,46,57,0,0,0,83,81,76,73,84,69,95,0,104,191,0,0,120,191,0,0,136,191,0,0,152,191,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,254,255,255,127,0,0,0,0,128,0,0,0,244,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,250,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,208,38,0,0,216,38,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,224,38,0,0,240,38,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,248,38,0,0,8,39,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,16,39,0,0,216,38,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,117,110,105,120,0,0,0,0,7,0,0,0,0,0,0,0,117,110,105,120,45,110,111,110,101,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,117,110,105,120,45,100,111,116,102,105,108,101,0,0,0,0,9,0,0,0,0,0,0,0,117,110,105,120,45,101,120,99,108,0,0,0,0,0,0,0,115,111,117,114,99,101,32,97,110,100,32,100,101,115,116,105,110,97,116,105,111,110,32,109,117,115,116,32,98,101,32,100,105,115,116,105,110,99,116,0,0,0,0,64,0,0,0,0,4,5,3,5,1,5,1,5,2,5,2,5,1,5,1,5,4,5,3,5,1,5,1,5,2,5,2,5,1,5,1,5,115,116,114,105,110,103,32,111,114,32,98,108,111,98,32,116,111,111,32,98,105,103,0,0,145,0,0,0,54,0,0,0,55,0,0,0,31,1,1,1,70,0,10,1,47,0,0,1,35,1,0,0,16,0,4,0,61,0,0,0,24,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,118,105,114,116,117,97,108,32,116,97,98,108,101,58,32,37,115,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,116,97,98,108,101,32,119,105,116,104,111,117,116,32,114,111,119,105,100,58,32,37,115,0,0,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,118,105,101,119,58,32,37,115,0,0,0,0,110,111,32,115,117,99,104,32,99,111,108,117,109,110,58,32,34,37,115,34,0,0,0,0,102,111,114,101,105,103,110,32,107,101,121,0,0,0,0,0,105,110,100,101,120,101,100,0,99,97,110,110,111,116,32,111,112,101,110,32,37,115,32,99,111,108,117,109,110,32,102,111,114,32,119,114,105,116,105,110,103,0,0,0,0,0,0,0,37,115,0,0,0,0,0,0,42,63,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,12,12,12,12,12,12,12,12,12,12,0,0,0,0,0,0,0,10,10,10,10,10,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,64,0,42,42,42,42,42,42,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,0,0,0,0,0,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,4,3,2,5,0,0,0,1,0,2,3,4,2,2,2,1,1,2,3,4,2,2,2,1,2,2,2,2,2,2,2,1,3,3,2,4,2,2,2,1,4,2,2,2,4,5,2,6,5,5,5,5,5,5,5,6,6,5,5,5,5,5,7,1,7,5,5,5,5,5,5,99,114,101,97,116,101,0,0,116,114,105,103,103,101,114,0,116,101,109,112,0,0,0,0,116,101,109,112,111,114,97,114,121,0,0,0,0,0,0,0,101,110,100,0,0,0,0,0,101,120,112,108,97,105,110,0,50,48,49,53,45,48,52,45,48,56,32,49,50,58,49,54,58,51,51,32,56,97,56,102,102,99,56,54,50,101,57,54,102,53,55,97,97,54,57,56,102,57,51,100,101,49,48,100,101,101,50,56,101,54,57,102,54,101,48,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,234,3,0,0,0,0,8,0,235,3,0,0,0,0,128,0,117,110,107,110,111,119,110,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,109,0,101,0,109,0,111,0,114,0,121,0,0,0,0,0,0,0,108,0,105,0,98,0,114,0,97,0,114,0,121,0,32,0,114,0,111,0,117,0,116,0,105,0,110,0,101,0,32,0,99,0,97,0,108,0,108,0,101,0,100,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,115,0,101,0,113,0,117,0,101,0,110,0,99,0,101,0,0,0,0,0,0,202,154,59,0,202,154,59,208,7,0,0,232,3,0,0,244,1,0,0,168,97,0,0,127,0,0,0,10,0,0,0,80,195,0,0,231,3,0,0,232,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,73,78,84,69,71,69,82,0,66,73,78,65,82,89,0,0,110,111,32,115,117,99,104,32,116,97,98,108,101,32,99,111,108,117,109,110,58,32,37,115,46,37,115,0,0,0,0,0,57,50,50,51,51,55,50,48,51,54,56,53,52,55,55,53,56,48,0,0,0,0,0,0,111,110,111,102,102,97,108,115,101,121,101,115,116,114,117,101,102,117,108,108,0,0,0,0,0,1,2,4,9,12,16,0,2,2,3,5,3,4,4,0,1,0,0,0,1,1,2,0,82,69,73,78,68,69,88,69,68,69,83,67,65,80,69,65,67,72,69,67,75,69,89,66,69,70,79,82,69,73,71,78,79,82,69,71,69,88,80,76,65,73,78,83,84,69,65,68,68,65,84,65,66,65,83,69,76,69,67,84,65,66,76,69,70,84,72,69,78,68,69,70,69,82,82,65,66,76,69,76,83,69,88,67,69,80,84,82,65,78,83,65,67,84,73,79,78,65,84,85,82,65,76,84,69,82,65,73,83,69,88,67,76,85,83,73,86,69,88,73,83,84,83,65,86,69,80,79,73,78,84,69,82,83,69,67,84,82,73,71,71,69,82,69,70,69,82,69,78,67,69,83,67,79,78,83,84,82,65,73,78,84,79,70,70,83,69,84,69,77,80,79,82,65,82,89,85,78,73,81,85,69,82,89,87,73,84,72,79,85,84,69,82,69,76,69,65,83,69,65,84,84,65,67,72,65,86,73,78,71,82,79,85,80,68,65,84,69,66,69,71,73,78,78,69,82,69,67,85,82,83,73,86,69,66,69,84,87,69,69,78,79,84,78,85,76,76,73,75,69,67,65,83,67,65,68,69,76,69,84,69,67,65,83,69,67,79,76,76,65,84,69,67,82,69,65,84,69,67,85,82,82,69,78,84,95,68,65,84,69,68,69,84,65,67,72,73,77,77,69,68,73,65,84,69,74,79,73,78,83,69,82,84,77,65,84,67,72,80,76,65,78,65,76,89,90,69,80,82,65,71,77,65,66,79,82,84,86,65,76,85,69,83,86,73,82,84,85,65,76,73,77,73,84,87,72,69,78,87,72,69,82,69,78,65,77,69,65,70,84,69,82,69,80,76,65,67,69,65,78,68,69,70,65,85,76,84,65,85,84,79,73,78,67,82,69,77,69,78,84,67,65,83,84,67,79,76,85,77,78,67,79,77,77,73,84,67,79,78,70,76,73,67,84,67,82,79,83,83,67,85,82,82,69,78,84,95,84,73,77,69,83,84,65,77,80,82,73,77,65,82,89,68,69,70,69,82,82,69,68,73,83,84,73,78,67,84,68,82,79,80,70,65,73,76,70,82,79,77,70,85,76,76,71,76,79,66,89,73,70,73,83,78,85,76,76,79,82,68,69,82,69,83,84,82,73,67,84,82,73,71,72,84,82,79,76,76,66,65,67,75,82,79,87,85,78,73,79,78,85,83,73,78,71,86,65,67,85,85,77,86,73,69,87,73,78,73,84,73,65,76,76,89,0,0,0,0,0,0,0,76,105,117,74,0,45,0,0,82,0,77,0,0,42,12,78,15,0,116,85,54,112,0,19,0,0,121,0,119,115,0,22,93,0,9,0,0,70,71,0,69,6,0,48,90,102,0,118,101,0,0,44,0,103,24,0,17,0,122,53,23,0,5,110,25,96,0,0,124,106,60,123,57,28,55,0,91,0,100,26,0,99,0,0,0,95,92,97,88,109,14,39,108,0,81,0,18,89,111,32,0,120,80,113,62,46,84,0,0,94,40,59,114,0,36,0,0,29,0,86,63,64,0,20,61,0,56,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,13,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,21,0,0,0,0,0,50,0,43,3,47,0,0,0,0,30,0,58,0,38,0,0,0,1,66,0,0,67,0,41,0,0,0,0,0,0,49,65,0,0,0,0,31,52,16,34,10,0,0,0,0,0,0,0,11,72,79,0,8,0,104,98,0,107,0,87,0,75,51,0,27,37,73,83,0,35,68,0,0,0,0,0,0,7,7,5,4,6,4,5,3,6,7,3,6,6,7,7,3,8,2,6,5,4,4,3,10,4,6,11,6,2,7,5,5,9,6,9,9,7,10,10,4,6,2,3,9,4,2,6,5,7,4,5,7,6,6,5,6,5,5,9,7,7,3,2,4,4,7,3,6,4,7,6,12,6,9,4,6,5,4,7,6,5,6,7,5,4,5,6,5,7,3,7,13,2,2,4,6,6,8,5,17,12,7,8,8,2,4,4,4,4,4,2,2,6,5,8,5,8,3,5,5,6,4,9,3,0,0,0,0,0,0,2,0,2,0,8,0,9,0,14,0,16,0,20,0,23,0,25,0,25,0,29,0,33,0,36,0,41,0,46,0,48,0,53,0,54,0,59,0,62,0,65,0,67,0,69,0,78,0,81,0,86,0,91,0,95,0,96,0,101,0,105,0,109,0,117,0,122,0,128,0,136,0,142,0,152,0,159,0,162,0,162,0,165,0,167,0,167,0,171,0,176,0,179,0,184,0,184,0,188,0,192,0,199,0,204,0,209,0,212,0,218,0,221,0,225,0,234,0,240,0,240,0,240,0,243,0,246,0,250,0,251,0,255,0,5,1,9,1,16,1,22,1,34,1,40,1,49,1,51,1,57,1,62,1,64,1,71,1,76,1,81,1,87,1,93,1,98,1,102,1,105,1,111,1,115,1,122,1,124,1,131,1,133,1,135,1,144,1,148,1,154,1,160,1,168,1,173,1,173,1,189,1,196,1,203,1,204,1,211,1,215,1,219,1,223,1,227,1,230,1,232,1,234,1,240,1,244,1,252,1,1,2,9,2,12,2,17,2,22,2,28,2,32,2,37,2,67,28,140,42,84,44,104,53,35,113,46,47,50,2,49,142,41,24,119,16,98,138,11,112,139,117,6,30,107,98,141,57,9,20,13,118,62,105,99,131,55,54,111,21,21,71,103,3,25,66,98,14,34,128,127,110,5,98,58,74,77,19,52,101,50,37,33,109,136,95,17,69,43,8,124,108,51,4,32,56,29,120,65,129,137,130,68,31,59,72,100,106,15,75,38,39,10,40,98,69,69,102,7,121,73,114,45,123,98,50,36,18,76,126,60,98,12,61,115,125,63,64,48,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,82,79,87,73,68,95,0,82,79,87,73,68,0,0,0,79,73,68,0,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,115,113,108,105,116,101,95,109,97,115,116,101,114,40,10,32,32,116,121,112,101,32,116,101,120,116,44,10,32,32,110,97,109,101,32,116,101,120,116,44,10,32,32,116,98,108,95,110,97,109,101,32,116,101,120,116,44,10,32,32,114,111,111,116,112,97,103,101,32,105,110,116,101,103,101,114,44,10,32,32,115,113,108,32,116,101,120,116,10,41,0,67,82,69,65,84,69,32,84,69,77,80,32,84,65,66,76,69,32,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,40,10,32,32,116,121,112,101,32,116,101,120,116,44,10,32,32,110,97,109,101,32,116,101,120,116,44,10,32,32,116,98,108,95,110,97,109,101,32,116,101,120,116,44,10,32,32,114,111,111,116,112,97,103,101,32,105,110,116,101,103,101,114,44,10,32,32,115,113,108,32,116,101,120,116,10,41,0,0,0,0,0,0,0,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,0,0,0,0,0,0,115,113,108,105,116,101,95,109,97,115,116,101,114,0,0,0,49,0,0,0,0,0,0,0,97,116,116,97,99,104,101,100,32,100,97,116,97,98,97,115,101,115,32,109,117,115,116,32,117,115,101,32,116,104,101,32,115,97,109,101,32,116,101,120,116,32,101,110,99,111,100,105,110,103,32,97,115,32,109,97,105,110,32,100,97,116,97,98,97,115,101,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,102,105,108,101,32,102,111,114,109,97,116,0,83,69,76,69,67,84,32,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,70,82,79,77,32,39,37,113,39,46,37,115,32,79,82,68,69,82,32,66,89,32,114,111,119,105,100,0,0,115,113,108,105,116,101,95,115,116,97,116,49,0,0,0,0,83,69,76,69,67,84,32,116,98,108,44,105,100,120,44,115,116,97,116,32,70,82,79,77,32,37,81,46,115,113,108,105,116,101,95,115,116,97,116,49,0,0,0,0,0,0,0,0,117,110,111,114,100,101,114,101,100,42,0,0,0,0,0,0,115,122,61,91,48,45,57,93,42,0,0,0,0,0,0,0,110,111,115,107,105,112,115,99,97,110,42,0,0,0,0,0,0,0,2,0,3,0,5,0,6,0,7,0,8,0,9,0,33,0,32,0,30,0,28,0,26,0,0,0,0,0,0,0,105,110,118,97,108,105,100,32,114,111,111,116,112,97,103,101,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,109,97,108,102,111,114,109,101,100,32,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,40,37,115,41,0,0,37,115,32,45,32,37,115,0,100,97,116,97,98,97,115,101,32,99,111,114,114,117,112,116,105,111,110,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,0,0,0,0,0,109,105,115,117,115,101,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,0,0,117,110,97,98,108,101,32,116,111,32,100,101,108,101,116,101,47,109,111,100,105,102,121,32,99,111,108,108,97,116,105,111,110,32,115,101,113,117,101,110,99,101,32,100,117,101,32,116,111,32,97,99,116,105,118,101,32,115,116,97,116,101,109,101,110,116,115,0,0,0,0,0,78,79,67,65,83,69,0,0,82,84,82,73,77,0,0,0,109,97,105,110,0,0,0,0,10,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,6,0,0,0,3,0,0,0,11,0,0,0,2,0,0,0,12,0,0,0,13,0,0,0,3,0,0,0,4,0,0,0,7,0,0,0,8,0,0,0,14,0,0,0,3,0,0,0,4,0,0,0,9,0,0,0,10,0,0,0,15,0,0,0,16,0,0,0,17,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,19,0,0,0,1,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,25,0,0,0,26,0,0,0,27,0,0,0,11,0,0,0,6,0,0,0,7,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,8,0,0,0,9,0,0,0,28,0,0,0,10,0,0,0,11,0,0,0,12,0,0,0,13,0,0,0,7,0,0,0,14,0,0,0,15,0,0,0,1,0,0,0,2,0,0,0,16,0,0,0,29,0,0,0,1,0,0,0,0,0,0,0,3,0,0,0,17,0,0,0,1,0,0,0,2,0,0,0,18,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,8,0,0,0,9,0,0,0,12,0,0,0,1,0,0,0,33,0,0,0,19,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,4,0,0,0,4,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,3,0,0,0,13,0,0,0,14,0,0,0,7,0,0,0,5,0,0,0,20,0,0,0,1,0,0,0,1,0,0,0,21,0,0,0,15,0,0,0,34,0,0,0,16,0,0,0,22,0,0,0,23,0,0,0,24,0,0,0,25,0,0,0,1,0,0,0,26,0,0,0,27,0,0,0,28,0,0,0,29,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,33,0,0,0,35,0,0,0,17,0,0,0,10,0,0,0,11,0,0,0,34,0,0,0,12,0,0,0,18,0,0,0,35,0,0,0,36,0,0,0,3,0,0,0,6,0,0,0,7,0,0,0,2,0,0,0,8,0,0,0,37,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,38,0,0,0,5,0,0,0,6,0,0,0,39,0,0,0,7,0,0,0,40,0,0,0,36,0,0,0,41,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,37,0,0,0,6,0,0,0,42,0,0,0,38,0,0,0,19,0,0,0,39,0,0,0,43,0,0,0,10,0,0,0,44,0,0,0,11,0,0,0,45,0,0,0,46,0,0,0,40,0,0,0,47,0,0,0,48,0,0,0,2,0,0,0,20,0,0,0,49,0,0,0,13,0,0,0,50,0,0,0,5,0,0,0,41,0,0,0,5,0,0,0,21,0,0,0,22,0,0,0,0,0,0,0,42,0,0,0,43,0,0,0,23,0,0,0,24,0,0,0,25,0,0,0,51,0,0,0,52,0,0,0,44,0,0,0,45,0,0,0,53,0,0,0,54,0,0,0,55,0,0,0,56,0,0,0,46,0,0,0,26,0,0,0,12,0,0,0,47,0,0,0,13,0,0,0,14,0,0,0,57,0,0,0,3,0,0,0,1,0,0,0,58,0,0,0,14,0,0,0,48,0,0,0,59,0,0,0,27,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,49,0,0,0,97,117,116,111,109,97,116,105,99,32,101,120,116,101,110,115,105,111,110,32,108,111,97,100,105,110,103,32,102,97,105,108,101,100,58,32,37,115,0,0,77,65,84,67,72,0,0,0,58,109,101,109,111,114,121,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,60,0,0,0,15,0,0,0,16,0,0,0,28,0,0,0,50,0,0,0,51,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,101,99,111,118,101,114,101,100,32,37,100,32,112,97,103,101,115,32,102,114,111,109,32,37,115,0,0,0,0,0,0,217,213,5,249,32,161,99,215,99,97,110,110,111,116,32,108,105,109,105,116,32,87,65,76,32,115,105,122,101,58,32,37,115,0,0,0,0,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,102,105,108,101,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,114,101,99,111,118,101,114,101,100,32,37,100,32,102,114,97,109,101,115,32,102,114,111,109,32,87,65,76,32,102,105,108,101,32,37,115,0,0,0,0,45,106,111,117,114,110,97,108,0,0,0,0,0,0,0,0,45,119,97,108,0,0,0,0,110,111,108,111,99,107,0,0,105,109,109,117,116,97,98,108,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,105,108,101,58,0,0,0,108,111,99,97,108,104,111,115,116,0,0,0,0,0,0,0,105,110,118,97,108,105,100,32,117,114,105,32,97,117,116,104,111,114,105,116,121,58,32,37,46,42,115,0,0,0,0,0,118,102,115,0,0,0,0,0,99,97,99,104,101,0,0,0,232,58,0,0,0,0,2,0,240,58,0,0,0,0,4,0,0,0,0,0,0,0,0,0,115,104,97,114,101,100,0,0,112,114,105,118,97,116,101,0,109,111,100,101,0,0,0,0,40,59,0,0,1,0,0,0,48,59,0,0,2,0,0,0,56,59,0,0,6,0,0,0,64,59,0,0,128,0,0,0,0,0,0,0,0,0,0,0,114,111,0,0,0,0,0,0,114,119,0,0,0,0,0,0,114,119,99,0,0,0,0,0,109,101,109,111,114,121,0,0,97,99,99,101,115,115,0,0,110,111,32,115,117,99,104,32,37,115,32,109,111,100,101,58,32,37,115,0,0,0,0,0,37,115,32,109,111,100,101,32,110,111,116,32,97,108,108,111,119,101,100,58,32,37,115,0,110,111,32,115,117,99,104,32,118,102,115,58,32,37,115,0,105,110,118,97,108,105,100,0,65,80,73,32,99,97,108,108,32,119,105,116,104,32,37,115,32,100,97,116,97,98,97,115,101,32,99,111,110,110,101,99,116,105,111,110,32,112,111,105,110,116,101,114,0,0,0,0,117,110,97,98,108,101,32,116,111,32,117,115,101,32,102,117,110,99,116,105,111,110,32,37,115,32,105,110,32,116,104,101,32,114,101,113,117,101,115,116,101,100,32,99,111,110,116,101,120,116,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,0,1,2,3,0,1,0,0,117,110,97,98,108,101,32,116,111,32,100,101,108,101,116,101,47,109,111,100,105,102,121,32,117,115,101,114,45,102,117,110,99,116,105,111,110,32,100,117,101,32,116,111,32,97,99,116,105,118,101,32,115,116,97,116,101,109,101,110,116,115,0,0,240,60,0,0,0,61,0,0,0,0,0,0,40,61,0,0,72,61,0,0,104,61,0,0,128,61,0,0,160,61,0,0,176,61,0,0,216,61,0,0,232,61,0,0,248,61,0,0,32,62,0,0,56,62,0,0,88,62,0,0,120,62,0,0,144,62,0,0,168,62,0,0,112,39,0,0,200,62,0,0,224,62,0,0,248,62,0,0,32,63,0,0,64,63,0,0,88,63,0,0,120,63,0,0,160,63,0,0,0,0,0,0,110,111,116,32,97,110,32,101,114,114,111,114,0,0,0,0,83,81,76,32,108,111,103,105,99,32,101,114,114,111,114,32,111,114,32,109,105,115,115,105,110,103,32,100,97,116,97,98,97,115,101,0,0,0,0,0,97,99,99,101,115,115,32,112,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,0,0,0,0,0,0,0,99,97,108,108,98,97,99,107,32,114,101,113,117,101,115,116,101,100,32,113,117,101,114,121,32,97,98,111,114,116,0,0,100,97,116,97,98,97,115,101,32,105,115,32,108,111,99,107,101,100,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,116,97,98,108,101,32,105,115,32,108,111,99,107,101,100,0,0,0,0,0,0,0,0,111,117,116,32,111,102,32,109,101,109,111,114,121,0,0,0,97,116,116,101,109,112,116,32,116,111,32,119,114,105,116,101,32,97,32,114,101,97,100,111,110,108,121,32,100,97,116,97,98,97,115,101,0,0,0,0,105,110,116,101,114,114,117,112,116,101,100,0,0,0,0,0,100,105,115,107,32,73,47,79,32,101,114,114,111,114,0,0,100,97,116,97,98,97,115,101,32,100,105,115,107,32,105,109,97,103,101,32,105,115,32,109,97,108,102,111,114,109,101,100,0,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,111,112,101,114,97,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,111,114,32,100,105,115,107,32,105,115,32,102,117,108,108,0,0,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,100,97,116,97,98,97,115,101,32,102,105,108,101,0,0,0,0,108,111,99,107,105,110,103,32,112,114,111,116,111,99,111,108,0,0,0,0,0,0,0,0,116,97,98,108,101,32,99,111,110,116,97,105,110,115,32,110,111,32,100,97,116,97,0,0,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,104,97,115,32,99,104,97,110,103,101,100,0,0,0,0,0,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,0,0,0,0,100,97,116,97,116,121,112,101,32,109,105,115,109,97,116,99,104,0,0,0,0,0,0,0,108,105,98,114,97,114,121,32,114,111,117,116,105,110,101,32,99,97,108,108,101,100,32,111,117,116,32,111,102,32,115,101,113,117,101,110,99,101,0,0,108,97,114,103,101,32,102,105,108,101,32,115,117,112,112,111,114,116,32,105,115,32,100,105,115,97,98,108,101,100,0,0,97,117,116,104,111,114,105,122,97,116,105,111,110,32,100,101,110,105,101,100,0,0,0,0,97,117,120,105,108,105,97,114,121,32,100,97,116,97,98,97,115,101,32,102,111,114,109,97,116,32,101,114,114,111,114,0,98,105,110,100,32,111,114,32,99,111,108,117,109,110,32,105,110,100,101,120,32,111,117,116,32,111,102,32,114,97,110,103,101,0,0,0,0,0,0,0,102,105,108,101,32,105,115,32,101,110,99,114,121,112,116,101,100,32,111,114,32,105,115,32,110,111,116,32,97,32,100,97,116,97,98,97,115,101,0,0,117,110,107,110,111,119,110,32,101,114,114,111,114,0,0,0,97,98,111,114,116,32,100,117,101,32,116,111,32,82,79,76,76,66,65,67,75,0,0,0,117,110,97,98,108,101,32,116,111,32,99,108,111,115,101,32,100,117,101,32,116,111,32,117,110,102,105,110,97,108,105,122,101,100,32,115,116,97,116,101,109,101,110,116,115,32,111,114,32,117,110,102,105,110,105,115,104,101,100,32,98,97,99,107,117,112,115,0,0,0,0,0,1,0,0,0,0,0,0,0,61,0,0,0,8,0,0,0,29,0,0,0,7,0,0,0,62,0,0,0,30,0,0,0,6,0,0,0,8,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,0,0,0,0,63,0,0,0,11,0,0,0,52,0,0,0,64,0,0,0,65,0,0,0,66,0,0,0,12,0,0,0,0,0,0,0,102,97,105,108,101,100,32,109,101,109,111,114,121,32,114,101,115,105,122,101,32,37,117,32,116,111,32,37,117,32,98,121,116,101,115,0,0,0,0,0,102,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,37,117,32,98,121,116,101,115,32,111,102,32,109,101,109,111,114,121,0,0,0,1,0,1,8,1,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,48,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,1,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,48,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,2,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,56,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,2,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,56,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,64,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,64,73,0,0,0,0,0,0,0,0,0,0,255,255,33,8,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,72,73,0,0,0,0,0,0,0,0,0,0,0,0,33,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,73,0,0,0,0,0,0,0,0,0,0,1,0,33,16,0,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,13,0,0,0,72,73,0,0,0,0,0,0,0,0,0,0,255,255,33,8,1,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,80,73,0,0,0,0,0,0,0,0,0,0,0,0,33,8,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,73,0,0,0,0,0,0,0,0,0,0,1,0,33,16,1,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,13,0,0,0,80,73,0,0,0,0,0,0,0,0,0,0,1,0,129,8,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,88,73,0,0,0,0,0,0,0,0,0,0,1,0,65,8,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,96,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,104,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,112,73,0,0,0,0,0,0,0,0,0,0,3,0,1,8,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,112,73,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,120,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,128,73,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,136,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,17,0,0,0,0,0,0,0,0,0,0,0,144,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,152,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,152,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,160,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,168,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,73,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,73,0,0,0,0,0,0,0,0,0,0,255,255,1,10,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,176,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,192,73,0,0,0,0,0,0,0,0,0,0,2,0,1,10,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,200,73,0,0,0,0,0,0,0,0,0,0,1,0,1,12,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,208,73,0,0,0,0,0,0,0,0,0,0,2,0,1,12,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,224,73,0,0,0,0,0,0,0,0,0,0,1,0,1,12,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,240,73,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,248,73,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,0,0,0,0,0,0,0,2,0,33,8,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,16,74,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,24,74,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,40,74,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,27,0,0,0,0,0,0,0,0,0,0,0,64,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0,0,0,80,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,112,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,30,0,0,0,0,0,0,0,0,0,0,0,144,74,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,0,0,0,0,0,152,74,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,176,74,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0,0,184,74,0,0,0,0,0,0,0,0,0,0,3,0,1,8,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,200,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,35,0,0,0,0,0,0,0,0,0,0,0,208,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,224,74,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,224,74,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,14,0,0,0,240,74,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,15,0,0,0,248,74,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,16,0,0,0,0,75,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,38,0,0,0,17,0,0,0,8,75,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,38,0,0,0,17,0,0,0,8,75,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,18,0,0,0,16,75,0,0,0,0,0,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,18,0,0,0,16,75,0,0,0,0,0,0,0,0,0,0,2,0,13,8,112,40,0,0,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,32,75,0,0,0,0,0,0,0,0,0,0,2,0,5,8,40,75,0,0,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,48,75,0,0,0,0,0,0,0,0,0,0,3,0,5,8,40,75,0,0,0,0,0,0,40],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+8464);allocate([48,75,0,0,0,0,0,0,0,0,0,0,0,0,0,0,108,116,114,105,109,0,0,0,114,116,114,105,109,0,0,0,116,114,105,109,0,0,0,0,109,105,110,0,0,0,0,0,109,97,120,0,0,0,0,0,116,121,112,101,111,102,0,0,108,101,110,103,116,104,0,0,105,110,115,116,114,0,0,0,115,117,98,115,116,114,0,0,112,114,105,110,116,102,0,0,117,110,105,99,111,100,101,0,99,104,97,114,0,0,0,0,97,98,115,0,0,0,0,0,114,111,117,110,100,0,0,0,117,112,112,101,114,0,0,0,108,111,119,101,114,0,0,0,99,111,97,108,101,115,99,101,0,0,0,0,0,0,0,0,104,101,120,0,0,0,0,0,105,102,110,117,108,108,0,0,117,110,108,105,107,101,108,121,0,0,0,0,0,0,0,0,108,105,107,101,108,105,104,111,111,100,0,0,0,0,0,0,108,105,107,101,108,121,0,0,114,97,110,100,111,109,0,0,114,97,110,100,111,109,98,108,111,98,0,0,0,0,0,0,110,117,108,108,105,102,0,0,115,113,108,105,116,101,95,118,101,114,115,105,111,110,0,0,115,113,108,105,116,101,95,115,111,117,114,99,101,95,105,100,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,108,111,103,0,0,0,0,0,0,115,113,108,105,116,101,95,99,111,109,112,105,108,101,111,112,116,105,111,110,95,117,115,101,100,0,0,0,0,0,0,0,115,113,108,105,116,101,95,99,111,109,112,105,108,101,111,112,116,105,111,110,95,103,101,116,0,0,0,0,0,0,0,0,113,117,111,116,101,0,0,0,108,97,115,116,95,105,110,115,101,114,116,95,114,111,119,105,100,0,0,0,0,0,0,0,99,104,97,110,103,101,115,0,116,111,116,97,108,95,99,104,97,110,103,101,115,0,0,0,114,101,112,108,97,99,101,0,122,101,114,111,98,108,111,98,0,0,0,0,0,0,0,0,108,111,97,100,95,101,120,116,101,110,115,105,111,110,0,0,115,117,109,0,0,0,0,0,116,111,116,97,108,0,0,0,97,118,103,0,0,0,0,0,99,111,117,110,116,0,0,0,103,114,111,117,112,95,99,111,110,99,97,116,0,0,0,0,103,108,111,98,0,0,0,0,37,95,0,1,0,0,0,0,108,105,107,101,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,168,75,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,42,0,0,0,0,0,0,0,0,0,0,0,192,75,0,0,0,0,0,0,0,0,0,0,3,0,1,8,0,0,0,0,0,0,0,0,43,0,0,0,0,0,0,0,0,0,0,0,216,75,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,97,98,108,101,0,0,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,112,97,114,101,110,116,0,0,0,0,37,115,37,46,42,115,34,37,119,34,0,0,0,0,0,0,37,115,37,115,0,0,0,0,37,46,42,115,34,37,119,34,37,115,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,56,77,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,45,0,0,0,0,0,0,0,0,0,0,0,72,77,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,46,0,0,0,0,0,0,0,0,0,0,0,80,77,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,88,77,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,104,77,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0,120,77,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,50,0,0,0,0,0,0,0,0,0,0,0,136,77,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,51,0,0,0,0,0,0,0,0,0,0,0,160,77,0,0,0,0,0,0,0,0,0,0,106,117,108,105,97,110,100,97,121,0,0,0,0,0,0,0,100,97,116,101,0,0,0,0,116,105,109,101,0,0,0,0,100,97,116,101,116,105,109,101,0,0,0,0,0,0,0,0,115,116,114,102,116,105,109,101,0,0,0,0,0,0,0,0,99,117,114,114,101,110,116,95,116,105,109,101,0,0,0,0,99,117,114,114,101,110,116,95,116,105,109,101,115,116,97,109,112,0,0,0,0,0,0,0,99,117,114,114,101,110,116,95,100,97,116,101,0,0,0,0,37,48,50,100,0,0,0,0,37,48,54,46,51,102,0,0,37,48,51,100,0,0,0,0,37,46,49,54,103,0,0,0,37,108,108,100,0,0,0,0,37,48,52,100,0,0,0,0,108,111,99,97,108,116,105,109,101,0,0,0,0,0,0,0,117,110,105,120,101,112,111,99,104,0,0,0,0,0,0,0,117,116,99,0,0,0,0,0,119,101,101,107,100,97,121,32,0,0,0,0,0,0,0,0,115,116,97,114,116,32,111,102,32,0,0,0,0,0,0,0,109,111,110,116,104,0,0,0,121,101,97,114,0,0,0,0,100,97,121,0,0,0,0,0,104,111,117,114,0,0,0,0,109,105,110,117,116,101,0,0,115,101,99,111,110,100,0,0,108,111,99,97,108,32,116,105,109,101,32,117,110,97,118,97,105,108,97,98,108,101,0,0,110,111,119,0,0,0,0,0,37,48,52,100,45,37,48,50,100,45,37,48,50,100,32,37,48,50,100,58,37,48,50,100,58,37,48,50,100,0,0,0,37,48,50,100,58,37,48,50,100,58,37,48,50,100,0,0,37,48,52,100,45,37,48,50,100,45,37,48,50,100,0,0,76,73,75,69,32,111,114,32,71,76,79,66,32,112,97,116,116,101,114,110,32,116,111,111,32,99,111,109,112,108,101,120,0,0,0,0,0,0,0,0,69,83,67,65,80,69,32,101,120,112,114,101,115,115,105,111,110,32,109,117,115,116,32,98,101,32,97,32,115,105,110,103,108,101,32,99,104,97,114,97,99,116,101,114,0,0,0,0,44,0,0,0,0,0,0,0,105,110,116,101,103,101,114,32,111,118,101,114,102,108,111,119,0,0,0,0,0,0,0,0,37,33,46,49,53,103,0,0,37,33,46,50,48,101,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,78,85,76,76,0,0,0,0,37,46,42,102,0,0,0,0,105,110,116,101,103,101,114,0,116,101,120,116,0,0,0,0,114,101,97,108,0,0,0,0,98,108,111,98,0,0,0,0,110,117,108,108,0,0,0,0,1,0,0,0,0,0,0,0,152,79,0,0,0,0,0,0,32,0,0,0,0,0,0,0,105,110,116,101,114,114,117,112,116,0,0,0,0,0,0,0,117,110,114,101,99,111,103,110,105,122,101,100,32,116,111,107,101,110,58,32,34,37,84,34,0,0,0,0,0,0,0,0,110,101,97,114,32,34,37,84,34,58,32,115,121,110,116,97,120,32,101,114,114,111,114,0,114,111,119,105,100,0,0,0,117,110,107,110,111,119,110,32,116,97,98,108,101,32,111,112,116,105,111,110,58,32,37,46,42,115,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,99,111,109,112,111,117,110,100,32,83,69,76,69,67,84,0,0,0,0,0,0,0,115,101,116,32,108,105,115,116,0,0,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,97,114,103,117,109,101,110,116,115,32,111,110,32,102,117,110,99,116,105,111,110,32,37,84,0,0,0,0,0,0,0,8,130,0,0,1,0,0,0,168,51,0,0,1,0,0,0,105,110,100,101,120,0,0,0,113,117,97,108,105,102,105,101,100,32,116,97,98,108,101,32,110,97,109,101,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,73,78,83,69,82,84,44,32,85,80,68,65,84,69,44,32,97,110,100,32,68,69,76,69,84,69,32,115,116,97,116,101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,116,104,101,32,73,78,68,69,88,69,68,32,66,89,32,99,108,97,117,115,101,32,105,115,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,85,80,68,65,84,69,32,111,114,32,68,69,76,69,84,69,32,115,116,97,116,101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,0,0,0,116,104,101,32,78,79,84,32,73,78,68,69,88,69,68,32,99,108,97,117,115,101,32,105,115,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,85,80,68,65,84,69,32,111,114,32,68,69,76,69,84,69,32,115,116,97,116,101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,0,0,144,1,145,2,145,1,146,1,146,3,147,0,147,1,147,3,148,1,149,3,151,0,151,1,151,2,150,0,150,1,150,1,150,1,149,2,149,2,149,2,153,1,153,0,149,2,149,3,149,5,149,2,154,6,156,1,158,0,158,3,157,1,157,0,155,5,155,2,162,0,162,2,160,3,160,1,164,3,165,1,152,1,152,1,152,1,166,0,166,1,168,1,168,4,168,6,169,1,169,2,170,1,170,1,167,2,167,0,173,2,173,2,173,4,173,3,173,3,173,2,173,2,173,3,173,5,173,2,173,4,173,4,173,1,173,2,178,0,178,1,180,0,180,2,182,2,182,3,182,3,182,3,183,2,183,2,183,1,183,1,183,2,181,3,181,2,184,0,184,2,184,2,161,0,161,2,185,3,185,1,186,1,186,0,187,2,187,7,187,5,187,5,187,10,189,0,189,1,176,0,176,3,190,0,190,2,191,1,191,1,191,1,149,4,193,2,193,0,149,8,149,4,149,1,163,2,195,1,195,3,198,1,198,2,198,1,196,9,196,1,207,4,207,5,199,1,199,1,199,0,210,2,210,0,200,3,200,2,200,4,211,2,211,1,211,0,201,0,201,2,213,2,213,0,212,7,212,7,212,7,159,0,159,2,194,2,214,1,214,2,214,3,214,4,216,2,216,0,215,0,215,3,215,2,217,4,217,0,205,0,205,3,220,4,220,2,177,1,177,1,177,0,203,0,203,3,204,0,204,2,206,0,206,2,206,4,206,4,149,6,202,0,202,2,149,8,221,5,221,3,149,6,149,7,222,2,222,1,223,0,223,3,219,3,219,1,175,1,175,3,174,1,175,1,175,1,175,3,175,5,174,1,174,1,175,1,175,3,175,6,175,5,175,4,174,1,175,3,175,3,175,3,175,3,175,3,175,3,175,3,175,3,224,1,224,2,175,3,175,5,175,2,175,3,175,3,175,4,175,2,175,2,175,2,175,2,225,1,225,2,175,5,226,1,226,2,175,5,175,3,175,5,175,4,175,4,175,5,228,5,228,4,229,2,229,0,227,1,227,0,209,1,209,0,208,3,208,1,149,12,230,1,230,0,179,0,179,3,188,5,188,3,231,0,231,2,149,4,149,1,149,2,149,3,149,5,149,6,149,5,149,6,232,1,232,1,232,1,232,1,232,1,171,2,171,1,172,2,149,5,233,11,235,1,235,1,235,2,235,0,236,1,236,1,236,3,237,0,237,3,238,0,238,2,234,3,234,2,240,1,240,3,241,0,241,3,241,2,239,7,239,5,239,5,239,1,175,4,175,6,192,1,192,1,192,1,149,4,149,6,149,3,243,0,243,2,242,1,242,0,149,1,149,3,149,1,149,3,149,6,149,6,244,1,245,0,245,1,149,1,149,4,246,8,247,1,247,3,248,0,248,2,249,1,249,3,250,1,251,0,251,4,251,2,197,0,197,2,197,3,252,6,252,8,0,0,238,0,186,3,213,0,33,1,54,1,234,0,144,0,61,1,147,255,126,1,121,1,47,1,205,1,133,1,122,1,112,1,46,1,38,1,253,0,139,1,37,1,68,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,254,3,244,3,237,3,230,3,195,3,193,3,191,3,189,3,182,3,179,3,162,3,144,3,105,3,93,3,55,3,42,3,3,3,247,2,208,2,196,2,158,2,145,2,107,2,102,2,100,2,98,2,96,2,94,2,92,2,86,2,83,2,81,2,68,2,30,2,28,2,25,2,23,2,21,2,19,2,17,2,15,2,247,1,130,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,95,0,191,1,82,0,78,1,248,1,211,1,147,1,221,1,208,1,147,1,147,1,147,1,147,1,92,3,235,2,232,2,17,3,126,2,126,2,158,3,123,3,132,3,131,3,119,3,76,3,72,3,67,3,80,3,62,3,75,3,61,3,24,3,71,3,58,3,225,2,70,3,27,3,21,3,47,0,222,2,18,2,184,2,9,3,199,2,165,2,221,2,218,2,217,2,216,2,215,2,115,2,192,1,64,0,187,0,25,5,22,5,228,4,10,5,249,4,43,5,42,5,41,5,39,5,38,5,36,5,35,5,34,5,33,5,32,5,31,5,30,5,28,5,27,5,24,5,23,5,21,5,18,5,14,5,12,5,9,5,242,4,240,4,235,4,8,5,7,5,214,4,5,5,1,5,0,5,255,4,254,4,227,4,253,4,252,4,251,4,249,4,244,4,243,4,241,4,239,4,237,4,233,4,224,4,213,4,223,4,222,4,219,4,214,4,216,4,211,4,225,4,210,4,209,4,206,4,196,4,190,4,186,4,201,4,195,4,208,4,207,4,173,4,171,4,203,4,200,4,177,4,184,4,218,4,113,4,212,4,205,4,169,4,157,4,197,4,153,4,172,4,155,4,167,4,166,4,162,4,158,4,194,4,192,4,152,4,138,4,159,4,156,4,136,4,175,4,179,4,109,4,71,4,174,4,170,4,164,4,168,4,147,4,145,4,144,4,149,4,150,4,142,4,135,4,117,4,146,4,134,4,143,4,133,4,108,4,121,4,119,4,100,4,104,4,79,4,78,4,76,4,72,4,126,4,125,4,61,4,101,4,56,4,40,4,96,4,73,4,58,4,54,4,49,4,43,4,85,4,83,4,95,4,93,4,92,4,89,4,87,4,84,4,239,3,232,3,234,3,52,4,51,4,57,4,0,0,0,0,50,1,212,0,176,1,187,3,127,2,191,0,187,3,39,1,47,2,88,0,88,0,88,0,88,0,81,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,185,0,184,0,183,0,123,2,123,2,36,1,94,2,94,2,88,0,88,0,88,0,88,0,171,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,16,0,180,1,85,2,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,172,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,47,2,84,0,84,0,84,0,83,0,74,1,65,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,123,2,123,2,122,2,121,2,182,0,170,2,38,2,123,1,120,1,119,1,17,0,66,1,94,2,94,2,115,1,198,0,223,1,91,0,118,1,82,0,79,0,165,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,86,2,123,2,123,2,107,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,186,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,82,2,82,2,142,0,72,1,71,1,228,1,249,0,88,1,238,0,123,2,123,2,122,2,121,2,73,2,192,1,14,2,13,2,229,0,132,1,1,0,138,1,194,1,72,2,193,1,123,2,123,2,123,2,123,2,63,1,139,1,94,2,94,2,199,0,157,0,17,1,126,1,12,1,125,1,187,0,123,2,123,2,122,2,121,2,55,1,43,2,10,1,81,2,81,2,10,1,91,1,76,2,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,222,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,16,1,24,2,122,2,121,2,146,0,98,2,197,0,54,1,63,2,182,0,226,1,15,1,123,1,120,1,119,1,250,1,21,0,122,2,121,2,122,2,121,2,123,2,123,2,118,1,99,2,62,2,36,2,184,1,111,0,51,2,94,2,94,2,122,2,121,2,68,1,223,1,96,2,96,2,96,2,44,1,179,1,61,2,119,0,151,1,210,0,162,0,50,2,115,3,80,2,80,2,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,250,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,108,2,111,0,123,2,123,2,105,1,94,2,94,2,102,1,249,0,93,1,248,0,177,1,243,0,223,1,74,2,122,2,121,2,195,0,99,2,93,0,119,0,221,0,63,2,241,1,22,2,22,2,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,62,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,77,0,173,1,126,2,61,2,77,2,18,2,240,0,230,0,242,0,105,0,249,0,93,1,248,0,3,2,76,2,208,0,204,1,17,2,52,2,173,0,122,2,121,2,202,3,144,0,174,1,2,0,168,1,228,0,124,1,45,2,94,2,94,2,190,0,153,0,159,0,158,0,2,2,51,0,120,2,119,2,118,2,71,0,24,2,176,1,186,3,196,0,98,2,186,3,102,2,45,0,18,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,5,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,96,2,96,2,96,2,30,2,168,1,146,1,129,1,241,0,250,1,195,1,64,1,211,0,31,2,164,0,180,1,130,1,37,1,195,1,75,2,108,0,240,1,111,0,78,1,135,1,79,2,168,1,102,2,27,0,196,1,197,1,94,2,94,2,72,0,1,1,70,0,3,1,196,1,83,1,86,1,52,2,70,2,68,0,159,1,213,1,72,1,71,1,62,0,102,2,45,0,110,0,137,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,152,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,110,0,243,1,8,2,26,2,146,1,133,1,168,1,110,0,54,2,244,1,81,2,81,2,198,1,82,0,79,0,165,0,168,1,79,2,128,1,52,2,84,1,103,2,188,0,162,0,168,1,94,1,104,2,168,1,102,2,44,0,94,2,94,2,189,1,70,2,44,1,178,1,151,0,19,0,102,2,9,0,56,2,68,2,92,1,103,2,213,1,55,2,102,2,26,0,104,2,102,2,45,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,155,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,67,2,110,0,66,2,9,2,26,1,177,1,142,1,144,1,255,0,230,1,82,0,79,0,165,0,231,1,164,0,82,0,79,0,165,0,232,1,232,1,108,1,131,1,168,1,32,2,32,2,253,1,94,1,106,1,155,0,191,0,94,2,94,2,47,2,130,2,128,2,77,1,82,0,79,0,165,0,49,1,52,2,251,1,56,1,101,1,102,2,45,0,73,1,84,2,83,2,194,0,81,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,20,0,67,1,150,0,7,1,211,0,31,2,165,1,84,2,83,2,102,2,22,0,168,1,193,0,168,1,28,1,168,1,135,1,168,1,253,1,168,1,65,2,168,1,186,0,79,1,168,1,47,2,168,1,57,1,120,0,34,2,94,2,94,2,67,0,102,2,47,0,102,2,50,0,102,2,48,0,102,2,100,0,102,2,99,0,102,2,101,0,64,2,102,2,102,0,102,2,109,0,70,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,168,1,55,1,168,1,73,2,54,0,168,1,4,2,5,2,78,2,102,2,112,0,168,1,72,2,168,1,60,2,168,1,195,0,168,1,59,2,168,1,67,0,168,1,102,2,94,0,102,2,98,0,168,1,102,2,97,0,8,1,94,2,94,2,195,0,102,2,46,0,102,2,96,0,102,2,30,0,102,2,49,0,102,2,115,0,102,2,114,0,162,1,229,0,132,1,102,2,113,0,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,119,0,168,1,78,2,110,0,116,1,94,2,94,2,195,0,53,0,250,0,102,2,29,0,195,0,216,1,182,1,217,2,190,0,46,1,242,1,14,0,11,2,129,2,2,0,102,2,43,0,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,168,1,101,2,196,3,196,3,98,1,94,2,94,2,164,1,56,1,64,0,102,2,42,0,135,1,99,1,27,1,181,1,45,1,255,0,158,1,154,1,239,1,236,1,102,2,28,0,215,1,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,168,1,110,0,110,0,110,0,110,0,94,2,94,2,110,0,254,0,13,0,102,2,41,0,20,2,19,2,27,1,225,1,19,2,201,1,28,1,119,0,49,2,100,1,102,2,40,0,28,1,50,1,89,0,78,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,110,0,168,1,85,1,220,0,43,2,94,2,94,2,95,1,43,2,62,1,102,2,95,0,157,1,255,0,83,0,74,1,28,1,28,1,255,0,128,2,77,1,100,1,255,0,102,2,39,0,50,1,100,1,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,168,1,61,1,60,1,141,0,209,1,94,2,94,2,219,0,107,2,207,1,102,2,10,0,161,1,206,1,255,0,189,0,254,1,41,2,95,1,207,0,107,1,161,0,102,2,38,0,59,1,218,0,255,0,255,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,76,0,163,1,255,0,3,0,110,3,205,1,168,1,247,0,75,1,75,1,102,2,37,0,217,0,76,0,163,1,134,1,3,0,216,0,215,0,166,1,4,0,75,1,75,1,168,1,35,2,12,0,168,1,33,2,102,2,36,0,168,1,29,2,166,1,168,1,28,2,168,1,214,0,168,1,152,1,168,1,27,2,147,1,93,2,93,2,237,0,102,2,25,0,119,0,102,2,24,0,76,2,152,1,102,2,45,0,118,0,102,2,35,0,102,2,34,0,102,2,33,0,102,2,23,0,76,2,60,0,223,0,91,2,90,2,1,2,122,1,73,0,74,0,140,0,139,0,168,1,110,0,9,1,75,0,170,1,169,1,59,0,168,1,98,2,73,0,74,0,37,2,146,1,148,1,168,1,117,1,75,0,170,1,169,1,92,2,138,0,98,2,102,2,11,0,136,1,76,0,163,1,181,0,3,0,102,2,32,0,15,1,113,1,75,1,75,1,237,1,102,2,31,0,149,0,96,2,96,2,96,2,95,2,15,0,166,1,109,1,102,2,8,0,137,0,233,1,136,0,190,0,96,2,96,2,96,2,95,2,15,0,229,1,176,0,135,0,7,0,252,0,221,1,152,1,174,0,133,0,175,0,218,1,57,0,56,0,132,0,130,0,119,0,76,0,163,1,76,2,3,0,212,1,245,0,208,1,171,0,75,1,75,1,125,0,123,0,200,1,191,1,122,0,190,1,104,0,80,1,231,0,166,1,166,0,154,0,73,0,74,0,76,1,116,0,175,1,121,0,53,1,75,0,170,1,169,1,222,0,106,0,98,2,52,1,125,2,204,0,152,1,117,2,115,2,116,2,6,0,200,0,172,1,171,1,34,1,203,0,110,2,201,0,76,2,62,0,63,0,33,1,66,0,163,1,143,1,3,0,145,1,32,1,92,0,143,0,75,1,75,1,31,1,96,2,96,2,96,2,95,2,15,0,73,0,74,0,227,0,166,1,69,1,69,0,160,1,75,0,170,1,169,1,100,2,156,1,98,2,192,0,61,0,57,2,209,0,140,1,226,0,22,1,225,0,127,1,152,1,15,2,46,2,20,1,21,2,40,2,16,2,65,1,11,2,114,1,252,1,180,0,76,2,238,1,179,0,110,1,117,0,253,0,13,1,10,2,247,1,96,2,96,2,96,2,95,2,15,0,39,2,246,1,58,0,18,1,12,2,178,0,73,0,74,0,48,1,245,1,112,1,47,1,206,0,75,0,170,1,169,1,235,1,104,1,98,2,213,0,177,0,227,1,131,0,89,1,42,1,41,1,40,1,202,0,38,1,224,1,234,1,210,1,134,0,172,0,129,0,188,1,90,1,214,1,128,0,58,1,203,1,103,0,127,0,126,0,148,0,124,0,167,0,187,1,235,0,96,2,96,2,96,2,95,2,15,0,186,1,183,1,111,2,234,0,43,1,145,0,71,2,35,1,121,1,69,2,160,0,119,0,156,0,14,1,124,2,203,3,169,0,23,1,114,2,8,2,113,2,217,1,112,2,170,0,109,2,106,2,119,0,168,0,55,0,153,1,167,1,25,2,97,2,30,1,29,1,149,1,58,2,48,2,44,2,5,0,52,0,202,1,42,2,147,0,11,1,7,2,248,1,6,2,150,1,6,1,239,0,4,1,0,2,87,1,255,1,2,1,97,1,53,2,0,1,224,0,251,0,103,1,21,1,19,1,220,1,219,1,246,0,96,1,244,0,211,1,199,1,236,0,233,0,232,0,51,1,185,1,25,1,205,0,163,0,141,1,24,1,23,2,249,1,74,1,105,2,203,3,203,3,203,3,203,3,111,1,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,82,1,0,0,0,0,0,0,100,117,112,108,105,99,97,116,101,32,87,73,84,72,32,116,97,98,108,101,32,110,97,109,101,58,32,37,115,0,0,0,110,111,116,32,97,117,116,104,111,114,105,122,101,100,0,0,97,117,116,104,111,114,105,122,101,114,32,109,97,108,102,117,110,99,116,105,111,110,0,0,67,82,69,65,84,69,32,86,73,82,84,85,65,76,32,84,65,66,76,69,32,37,84,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,116,121,112,101,61,39,116,97,98,108,101,39,44,32,110,97,109,101,61,37,81,44,32,116,98,108,95,110,97,109,101,61,37,81,44,32,114,111,111,116,112,97,103,101,61,48,44,32,115,113,108,61,37,81,32,87,72,69,82,69,32,114,111,119,105,100,61,35,37,100,0,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,61,39,116,97,98,108,101,39,0,0,0,0,0,0,118,105,114,116,117,97,108,32,116,97,98,108,101,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,99,111,108,117,109,110,32,116,111,32,97,32,118,105,101,119,0,0,0,115,113,108,105,116,101,95,97,108,116,101,114,116,97,98,95,37,115,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,97,32,116,101,109,112,111,114,97,114,121,32,100,97,116,97,98,97,115,101,32,102,105,108,101,32,102,111,114,32,115,116,111,114,105,110,103,32,116,101,109,112,111,114,97,114,121,32,116,97,98,108,101,115,0,0,0,115,113,108,105,116,101,95,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,80,82,73,77,65,82,89,32,75,69,89,32,99,111,108,117,109,110,0,67,97,110,110,111,116,32,97,100,100,32,97,32,85,78,73,81,85,69,32,99,111,108,117,109,110,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,82,69,70,69,82,69,78,67,69,83,32,99,111,108,117,109,110,32,119,105,116,104,32,110,111,110,45,78,85,76,76,32,100,101,102,97,117,108,116,32,118,97,108,117,101,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,78,79,84,32,78,85,76,76,32,99,111,108,117,109,110,32,119,105,116,104,32,100,101,102,97,117,108,116,32,118,97,108,117,101,32,78,85,76,76,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,99,111,108,117,109,110,32,119,105,116,104,32,110,111,110,45,99,111,110,115,116,97,110,116,32,100,101,102,97,117,108,116,0,0,0,85,80,68,65,84,69,32,34,37,119,34,46,37,115,32,83,69,84,32,115,113,108,32,61,32,115,117,98,115,116,114,40,115,113,108,44,49,44,37,100,41,32,124,124,32,39,44,32,39,32,124,124,32,37,81,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,37,100,41,32,87,72,69,82,69,32,116,121,112,101,32,61,32,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,32,61,32,37,81,0,0,0,0,116,98,108,95,110,97,109,101,61,37,81,0,0,0,0,0,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,65,78,68,32,40,37,115,41,0,110,97,109,101,61,37,81,0,37,115,32,79,82,32,110,97,109,101,61,37,81,0,0,0,45,0,0,0,0,0,0,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,110,111,116,104,101,114,32,116,97,98,108,101,32,111,114,32,105,110,100,101,120,32,119,105,116,104,32,116,104,105,115,32,110,97,109,101,58,32,37,115,0,0,0,0,0,0,118,105,101,119,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,0,85,80,68,65,84,69,32,34,37,119,34,46,37,115,32,83,69,84,32,115,113,108,32,61,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,112,97,114,101,110,116,40,115,113,108,44,32,37,81,44,32,37,81,41,32,87,72,69,82,69,32,37,115,59,0,0,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,115,113,108,32,61,32,67,65,83,69,32,87,72,69,78,32,116,121,112,101,32,61,32,39,116,114,105,103,103,101,114,39,32,84,72,69,78,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,40,115,113,108,44,32,37,81,41,69,76,83,69,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,97,98,108,101,40,115,113,108,44,32,37,81,41,32,69,78,68,44,32,116,98,108,95,110,97,109,101,32,61,32,37,81,44,32,110,97,109,101,32,61,32,67,65,83,69,32,87,72,69,78,32,116,121,112,101,61,39,116,97,98,108,101,39,32,84,72,69,78,32,37,81,32,87,72,69,78,32,110,97,109,101,32,76,73,75,69,32,39,115,113,108,105,116,101,95,97,117,116,111,105,110,100,101,120,37,37,39,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,32,84,72,69,78,32,39,115,113,108,105,116,101,95,97,117,116,111,105,110,100,101,120,95,39,32,124,124,32,37,81,32,124,124,32,115,117,98,115,116,114,40,110,97,109,101,44,37,100,43,49,56,41,32,69,76,83,69,32,110,97,109,101,32,69,78,68,32,87,72,69,82,69,32,116,98,108,95,110,97,109,101,61,37,81,32,67,79,76,76,65,84,69,32,110,111,99,97,115,101,32,65,78,68,32,40,116,121,112,101,61,39,116,97,98,108,101,39,32,79,82,32,116,121,112,101,61,39,105,110,100,101,120,39,32,79,82,32,116,121,112,101,61,39,116,114,105,103,103,101,114,39,41,59,0,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,0,85,80,68,65,84,69,32,34,37,119,34,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,32,115,101,116,32,110,97,109,101,32,61,32,37,81,32,87,72,69,82,69,32,110,97,109,101,32,61,32,37,81,0,0,0,0,0,0,0,85,80,68,65,84,69,32,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,32,83,69,84,32,115,113,108,32,61,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,40,115,113,108,44,32,37,81,41,44,32,116,98,108,95,110,97,109,101,32,61,32,37,81,32,87,72,69,82,69,32,37,115,59,0,0,0,0,0,118,105,101,119,32,37,115,32,105,115,32,99,105,114,99,117,108,97,114,108,121,32,100,101,102,105,110,101,100,0,0,0,110,111,32,115,117,99,104,32,99,111,108,108,97,116,105,111,110,32,115,101,113,117,101,110,99,101,58,32,37,115,0,0,3,2,1,0,0,0,0,0,37,115,58,37,100,0,0,0,97,32,71,82,79,85,80,32,66,89,32,99,108,97,117,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,98,101,102,111,114,101,32,72,65,86,73,78,71,0,0,0,0,0,79,82,68,69,82,0,0,0,71,82,79,85,80,0,0,0,97,103,103,114,101,103,97,116,101,32,102,117,110,99,116,105,111,110,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,105,110,32,116,104,101,32,71,82,79,85,80,32,66,89,32,99,108,97,117,115,101,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,79,82,68,69,82,32,66,89,32,99,108,97,117,115,101,0,0,0,0,0,0,0,37,114,32,79,82,68,69,82,32,66,89,32,116,101,114,109,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,97,110,121,32,99,111,108,117,109,110,32,105,110,32,116,104,101,32,114,101,115,117,108,116,32,115,101,116,0,0,0,0,37,114,32,37,115,32,66,89,32,116,101,114,109,32,111,117,116,32,111,102,32,114,97,110,103,101,32,45,32,115,104,111,117,108,100,32,98,101,32,98,101,116,119,101,101,110,32,49,32,97,110,100,32,37,100,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,37,115,32,66,89,32,99,108,97,117,115,101,0,0,69,120,112,114,101,115,115,105,111,110,32,116,114,101,101,32,105,115,32,116,111,111,32,108,97,114,103,101,32,40,109,97,120,105,109,117,109,32,100,101,112,116,104,32,37,100,41,0,102,117,110,99,116,105,111,110,115,0,0,0,0,0,0,0,115,101,99,111,110,100,32,97,114,103,117,109,101,110,116,32,116,111,32,108,105,107,101,108,105,104,111,111,100,40,41,32,109,117,115,116,32,98,101,32,97,32,99,111,110,115,116,97,110,116,32,98,101,116,119,101,101,110,32,48,46,48,32,97,110,100,32,49,46,48,0,0,110,111,116,32,97,117,116,104,111,114,105,122,101,100,32,116,111,32,117,115,101,32,102,117,110,99,116,105,111,110,58,32,37,115,0,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,103,103,114,101,103,97,116,101,32,102,117,110,99,116,105,111,110,32,37,46,42,115,40,41,0,0,0,0,0,110,111,32,115,117,99,104,32,102,117,110,99,116,105,111,110,58,32,37,46,42,115,0,0,119,114,111,110,103,32,110,117,109,98,101,114,32,111,102,32,97,114,103,117,109,101,110,116,115,32,116,111,32,102,117,110,99,116,105,111,110,32,37,46,42,115,40,41,0,0,0,0,115,117,98,113,117,101,114,105,101,115,0,0,0,0,0,0,112,97,114,97,109,101,116,101,114,115,0,0,0,0,0,0,37,115,32,112,114,111,104,105,98,105,116,101,100,32,105,110,32,67,72,69,67,75,32,99,111,110,115,116,114,97,105,110,116,115,0,0,0,0,0,0,37,115,32,112,114,111,104,105,98,105,116,101,100,32,105,110,32,112,97,114,116,105,97,108,32,105,110,100,101,120,32,87,72,69,82,69,32,99,108,97,117,115,101,115,0,0,0,0,110,101,119,0,0,0,0,0,111,108,100,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,108,105,97,115,101,100,32,97,103,103,114,101,103,97,116,101,32,37,115,0,0,110,111,32,115,117,99,104,32,99,111,108,117,109,110,0,0,97,109,98,105,103,117,111,117,115,32,99,111,108,117,109,110,32,110,97,109,101,0,0,0,37,115,58,32,37,115,46,37,115,46,37,115,0,0,0,0,37,115,58,32,37,115,46,37,115,0,0,0,0,0,0,0,37,115,58,32,37,115,0,0,97,99,99,101,115,115,32,116,111,32,37,115,46,37,115,46,37,115,32,105,115,32,112,114,111,104,105,98,105,116,101,100,0,0,0,0,0,0,0,0,97,99,99,101,115,115,32,116,111,32,37,115,46,37,115,32,105,115,32,112,114,111,104,105,98,105,116,101,100,0,0,0,115,113,108,105,116,101,95,115,113,95,37,112,0,0,0,0,116,111,111,32,109,97,110,121,32,114,101,102,101,114,101,110,99,101,115,32,116,111,32,34,37,115,34,58,32,109,97,120,32,54,53,53,51,53,0,0,42,0,0,0,0,0,0,0,37,115,46,37,115,0,0,0,37,115,46,37,115,46,37,115,0,0,0,0,0,0,0,0,110,111,32,115,117,99,104,32,116,97,98,108,101,58,32,37,115,0,0,0,0,0,0,0,110,111,32,116,97,98,108,101,115,32,115,112,101,99,105,102,105,101,100,0,0,0,0,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,105,110,32,114,101,115,117,108,116,32,115,101,116,0,0,97,32,78,65,84,85,82,65,76,32,106,111,105,110,32,109,97,121,32,110,111,116,32,104,97,118,101,32,97,110,32,79,78,32,111,114,32,85,83,73,78,71,32,99,108,97,117,115,101,0,0,0,0,0,0,0,99,97,110,110,111,116,32,104,97,118,101,32,98,111,116,104,32,79,78,32,97,110,100,32,85,83,73,78,71,32,99,108,97,117,115,101,115,32,105,110,32,116,104,101,32,115,97,109,101,32,106,111,105,110,0,0,99,97,110,110,111,116,32,106,111,105,110,32,117,115,105,110,103,32,99,111,108,117,109,110,32,37,115,32,45,32,99,111,108,117,109,110,32,110,111,116,32,112,114,101,115,101,110,116,32,105,110,32,98,111,116,104,32,116,97,98,108,101,115,0,110,111,32,115,117,99,104,32,105,110,100,101,120,58,32,37,115,0,0,0,0,0,0,0,109,117,108,116,105,112,108,101,32,114,101,102,101,114,101,110,99,101,115,32,116,111,32,114,101,99,117,114,115,105,118,101,32,116,97,98,108,101,58,32,37,115,0,0,0,0,0,0,99,105,114,99,117,108,97,114,32,114,101,102,101,114,101,110,99,101,58,32,37,115,0,0,116,97,98,108,101,32,37,115,32,104,97,115,32,37,100,32,118,97,108,117,101,115,32,102,111,114,32,37,100,32,99,111,108,117,109,110,115,0,0,0,109,117,108,116,105,112,108,101,32,114,101,99,117,114,115,105,118,101,32,114,101,102,101,114,101,110,99,101,115,58,32,37,115,0,0,0,0,0,0,0,114,101,99,117,114,115,105,118,101,32,114,101,102,101,114,101,110,99,101,32,105,110,32,97,32,115,117,98,113,117,101,114,121,58,32,37,115,0,0,0,110,111,32,115,117,99,104,32,109,111,100,117,108,101,58,32,37,115,0,0,0,0,0,0,118,116,97,98,108,101,32,99,111,110,115,116,114,117,99,116,111,114,32,102,97,105,108,101,100,58,32,37,115,0,0,0,118,116,97,98,108,101,32,99,111,110,115,116,114,117,99,116,111,114,32,100,105,100,32,110,111,116,32,100,101,99,108,97,114,101,32,115,99,104,101,109,97,58,32,37,115,0,0,0,104,105,100,100,101,110,0,0,32,104,105,100,100,101,110,0,111,98,106,101,99,116,32,110,97,109,101,32,114,101,115,101,114,118,101,100,32,102,111,114,32,105,110,116,101,114,110,97,108,32,117,115,101,58,32,37,115,0,0,0,0,0,0,0,99,111,114,114,117,112,116,32,100,97,116,97,98,97,115,101,0,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,100,97,116,97,98,97,115,101,32,37,84,0,0,0,0,0,105,100,120,0,0,0,0,0,116,98,108,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,0,56,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,53,0,0,0,0,0,0,0,0,0,0,0,40,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,66,66,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,8,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,116,97,116,95,103,101,116,0,0,0,0,0,0,0,0,37,108,108,117,0,0,0,0,32,37,108,108,117,0,0,0,115,116,97,116,95,112,117,115,104,0,0,0,0,0,0,0,115,116,97,116,95,105,110,105,116,0,0,0,0,0,0,0,72,52,0,0,96,112,0,0,112,112,0,0,0,0,0,0,128,112,0,0,0,0,0,0,116,98,108,44,105,100,120,44,115,116,97,116,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,51,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,52,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,37,81,46,37,115,40,37,115,41,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,37,115,61,37,81,0,0,0,117,110,97,98,108,101,32,116,111,32,105,100,101,110,116,105,102,121,32,116,104,101,32,111,98,106,101,99,116,32,116,111,32,98,101,32,114,101,105,110,100,101,120,101,100,0,0,0,44,32,0,0,0,0,0,0,46,0,0,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,103,103,114,101,103,97,116,101,58,32,37,115,40],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+18712);allocate([41,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,102,117,110,99,116,105,111,110,58,32,37,46,42,115,40,41,0,0,0,0,0,0,0,0,82,65,73,83,69,40,41,32,109,97,121,32,111,110,108,121,32,98,101,32,117,115,101,100,32,119,105,116,104,105,110,32,97,32,116,114,105,103,103,101,114,45,112,114,111,103,114,97,109,0,0,0,0,0,0,0,69,88,69,67,85,84,69,32,37,115,37,115,32,83,85,66,81,85,69,82,89,32,37,100,0,0,0,0,0,0,0,0,67,79,82,82,69,76,65,84,69,68,32,0,0,0,0,0,76,73,83,84,0,0,0,0,83,67,65,76,65,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,120,0,0,0,0,0,0,104,101,120,32,108,105,116,101,114,97,108,32,116,111,111,32,98,105,103,58,32,37,115,0,1,0,1,0,0,0,0,0,0,0,0,0,55,0,0,0,0,0,0,0,0,0,0,0,32,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,100,101,116,97,99,104,0,0,0,110,111,32,115,117,99,104,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,99,97,110,110,111,116,32,100,101,116,97,99,104,32,100,97,116,97,98,97,115,101,32,37,115,0,0,0,0,0,0,0,99,97,110,110,111,116,32,68,69,84,65,67,72,32,100,97,116,97,98,97,115,101,32,119,105,116,104,105,110,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,37,115,32,105,115,32,108,111,99,107,101,100,0,0,0,3,0,1,0,0,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,0,0,0,0,216,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,97,116,116,97,99,104,0,0,0,116,111,111,32,109,97,110,121,32,97,116,116,97,99,104,101,100,32,100,97,116,97,98,97,115,101,115,32,45,32,109,97,120,32,37,100,0,0,0,0,99,97,110,110,111,116,32,65,84,84,65,67,72,32,100,97,116,97,98,97,115,101,32,119,105,116,104,105,110,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,37,115,32,105,115,32,97,108,114,101,97,100,121,32,105,110,32,117,115,101,0,0,0,100,97,116,97,98,97,115,101,32,105,115,32,97,108,114,101,97,100,121,32,97,116,116,97,99,104,101,100,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,0,110,111,32,115,117,99,104,32,116,114,105,103,103,101,114,58,32,37,83,0,0,0,0,0,108,0,246,0,97,0,1,0,47,0,1,2,78,2,247,1,97,0,1,0,47,0,0,2,78,2,247,1,95,0,0,0,9,0,254,0,0,0,0,0,116,101,109,112,111,114,97,114,121,32,116,114,105,103,103,101,114,32,109,97,121,32,110,111,116,32,104,97,118,101,32,113,117,97,108,105,102,105,101,100,32,110,97,109,101,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,116,114,105,103,103,101,114,115,32,111,110,32,118,105,114,116,117,97,108,32,116,97,98,108,101,115,0,0,0,0,0,0,0,0,116,114,105,103,103,101,114,32,37,84,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,0,0,0,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,116,114,105,103,103,101,114,32,111,110,32,115,121,115,116,101,109,32,116,97,98,108,101,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,37,115,32,116,114,105,103,103,101,114,32,111,110,32,118,105,101,119,58,32,37,83,0,0,0,0,66,69,70,79,82,69,0,0,65,70,84,69,82,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,73,78,83,84,69,65,68,32,79,70,32,116,114,105,103,103,101,114,32,111,110,32,116,97,98,108,101,58,32,37,83,0,0,0,37,115,32,37,84,32,99,97,110,110,111,116,32,114,101,102,101,114,101,110,99,101,32,111,98,106,101,99,116,115,32,105,110,32,100,97,116,97,98,97,115,101,32,37,115,0,0,0,37,115,32,99,97,110,110,111,116,32,117,115,101,32,118,97,114,105,97,98,108,101,115,0,73,78,83,69,82,84,32,73,78,84,79,32,37,81,46,37,115,32,86,65,76,85,69,83,40,39,116,114,105,103,103,101,114,39,44,37,81,44,37,81,44,48,44,39,67,82,69,65,84,69,32,84,82,73,71,71,69,82,32,37,113,39,41,0,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,65,78,68,32,110,97,109,101,61,39,37,113,39,0,0,0,0,45,37,84,0,0,0,0,0,114,101,115,117,108,116,0,0,16,126,0,0,0,0,0,0,8,0,0,0,0,121,0,0,1,1,0,0,0,0,0,0,32,126,0,0,2,0,0,0,0,0,16,0,48,126,0,0,3,0,0,0,0,0,0,0,128,120,0,0,4,1,0,0,0,0,0,0,64,126,0,0,2,0,0,0,16,0,0,0,80,126,0,0,5,0,0,0,0,0,0,0,104,126,0,0,2,0,0,0,8,0,0,0,128,126,0,0,6,0,0,0,0,0,0,0,144,126,0,0,7,0,0,0,0,0,0,0,160,126,0,0,2,0,0,0,128,0,0,0,176,126,0,0,0,2,0,0,15,0,0,0,192,126,0,0,9,1,0,0,0,0,0,0,208,126,0,0,10,1,0,0,0,0,0,0,232,126,0,0,2,0,0,0,0,0,0,1,0,127,0,0,2,0,0,0,0,1,0,0,40,124,0,0,11,0,0,0,0,0,0,0,24,127,0,0,12,1,0,0,0,0,0,0,48,127,0,0,13,1,0,0,0,0,0,0,72,127,0,0,2,0,0,0,0,0,8,0,88,127,0,0,0,2,0,0,0,0,0,0,104,127,0,0,2,0,0,0,32,0,0,0,128,127,0,0,2,0,0,0,4,0,0,0,144,127,0,0,2,0,0,0,0,32,0,0,176,127,0,0,14,1,0,0,0,0,0,0,200,127,0,0,15,1,0,0,0,0,0,0,216,127,0,0,16,1,0,0,0,0,0,0,232,127,0,0,15,1,0,0,1,0,0,0,232,122,0,0,17,1,0,0,0,0,0,0,216,120,0,0,18,1,0,0,0,0,0,0,232,120,0,0,19,0,0,0,0,0,0,0,248,127,0,0,2,0,0,0,0,128,0,0,200,120,0,0,21,0,0,0,0,0,0,0,16,128,0,0,22,1,0,0,0,0,0,0,40,121,0,0,23,0,0,0,0,0,0,0,32,128,0,0,22,1,0,0,0,0,0,0,144,120,0,0,24,0,0,0,0,0,0,0,48,128,0,0,2,0,0,0,0,0,0,2,64,128,0,0,17,1,0,0,0,0,0,0,80,128,0,0,2,0,0,0,0,64,0,0,104,128,0,0,2,0,0,0,0,0,4,0,128,128,0,0,2,0,0,0,0,0,2,0,160,128,0,0,0,0,0,0,1,0,0,0,160,120,0,0,25,0,0,0,0,0,0,0,176,128,0,0,2,0,0,0,64,0,0,0,200,128,0,0,26,0,0,0,0,0,0,0,232,124,0,0,27,0,0,0,0,0,0,0,216,128,0,0,28,1,0,0,0,0,0,0,128,121,0,0,29,1,0,0,0,0,0,0,224,128,0,0,30,1,0,0,0,0,0,0,56,121,0,0,31,0,0,0,0,0,0,0,72,121,0,0,32,0,0,0,0,0,0,0,248,124,0,0,33,0,0,0,0,0,0,0,240,128,0,0,0,0,0,0,6,0,0,0,200,124,0,0,34,0,0,0,0,0,0,0,0,129,0,0,35,1,0,0,0,0,0,0,16,129,0,0,2,0,0,0,0,8,1,0,0,0,0,0,4,0,0,0,51,0,1,3,137,1,8,0,25,0,2,0,90,1,2,1,137,1,8,0,25,0,1,0,156,0,0,0,35,1,1,0,0,0,0,0,99,97,99,104,101,95,115,105,122,101,0,0,0,0,0,0,112,97,103,101,95,115,105,122,101,0,0,0,0,0,0,0,115,101,99,117,114,101,95,100,101,108,101,116,101,0,0,0,110,111,114,109,97,108,0,0,101,120,99,108,117,115,105,118,101,0,0,0,0,0,0,0,108,111,99,107,105,110,103,95,109,111,100,101,0,0,0,0,106,111,117,114,110,97,108,95,109,111,100,101,0,0,0,0,106,111,117,114,110,97,108,95,115,105,122,101,95,108,105,109,105,116,0,0,0,0,0,0,97,117,116,111,95,118,97,99,117,117,109,0,0,0,0,0,4,0,1,0,51,0,1,4,45,1,0,0,24,0,2,0,25,0,1,0,52,0,7,1,109,109,97,112,95,115,105,122,101,0,0,0,0,0,0,0,116,101,109,112,95,115,116,111,114,101,0,0,0,0,0,0,116,101,109,112,95,115,116,111,114,101,95,100,105,114,101,99,116,111,114,121,0,0,0,0,110,111,116,32,97,32,119,114,105,116,97,98,108,101,32,100,105,114,101,99,116,111,114,121,0,0,0,0,0,0,0,0,115,121,110,99,104,114,111,110,111,117,115,0,0,0,0,0,83,97,102,101,116,121,32,108,101,118,101,108,32,109,97,121,32,110,111,116,32,98,101,32,99,104,97,110,103,101,100,32,105,110,115,105,100,101,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,99,105,100,0,0,0,0,0,110,97,109,101,0,0,0,0,116,121,112,101,0,0,0,0,110,111,116,110,117,108,108,0,100,102,108,116,95,118,97,108,117,101,0,0,0,0,0,0,112,107,0,0,0,0,0,0,116,97,98,108,101,0,0,0,119,105,100,116,104,0,0,0,104,101,105,103,104,116,0,0,115,101,113,110,111,0,0,0,100,101,115,99,0,0,0,0,99,111,108,108,0,0,0,0,107,101,121,0,0,0,0,0,115,101,113,0,0,0,0,0,117,110,105,113,117,101,0,0,111,114,105,103,105,110,0,0,112,97,114,116,105,97,108,0,99,0,0,0,0,0,0,0,117,0,0,0,0,0,0,0,88,122,0,0,96,122,0,0,248,121,0,0,0,0,0,0,102,105,108,101,0,0,0,0,105,100,0,0,0,0,0,0,102,114,111,109,0,0,0,0,116,111,0,0,0,0,0,0,111,110,95,117,112,100,97,116,101,0,0,0,0,0,0,0,111,110,95,100,101,108,101,116,101,0,0,0,0,0,0,0,109,97,116,99,104,0,0,0,78,79,78,69,0,0,0,0,112,97,114,101,110,116,0,0,102,107,105,100,0,0,0,0,138,1,0,0,97,0,3,0,35,3,1,0,0,0,0,0,105,110,116,101,103,114,105,116,121,95,99,104,101,99,107,0,42,42,42,32,105,110,32,100,97,116,97,98,97,115,101,32,37,115,32,42,42,42,10,0,78,85,76,76,32,118,97,108,117,101,32,105,110,32,37,115,46,37,115,0,0,0,0,0,114,111,119,32,0,0,0,0,32,109,105,115,115,105,110,103,32,102,114,111,109,32,105,110,100,101,120,32,0,0,0,0,110,111,110,45,117,110,105,113,117,101,32,101,110,116,114,121,32,105,110,32,105,110,100,101,120,32,0,0,0,0,0,0,119,114,111,110,103,32,35,32,111,102,32,101,110,116,114,105,101,115,32,105,110,32,105,110,100,101,120,32,0,0,0,0,111,107,0,0,0,0,0,0,216,123,0,0,1,0,0,0,224,123,0,0,1,0,0,0,232,123,0,0,2,0,0,0,248,123,0,0,3,0,0,0,8,124,0,0,2,0,0,0,16,124,0,0,3,0,0,0,24,124,0,0,0,0,0,0,32,124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,84,70,56,0,0,0,0,85,84,70,45,56,0,0,0,85,84,70,45,49,54,108,101,0,0,0,0,0,0,0,0,85,84,70,45,49,54,98,101,0,0,0,0,0,0,0,0,85,84,70,49,54,108,101,0,85,84,70,49,54,98,101,0,85,84,70,45,49,54,0,0,85,84,70,49,54,0,0,0,101,110,99,111,100,105,110,103,0,0,0,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,101,110,99,111,100,105,110,103,58,32,37,115,0,0,0,0,0,0,0,0,4,0,1,0,25,0,1,0,52,0,0,1,0,0,0,0,4,0,0,0,51,0,1,0,35,1,1,0,0,0,0,0,99,111,109,112,105,108,101,95,111,112,116,105,111,110,0,0,102,117,108,108,0,0,0,0,114,101,115,116,97,114,116,0,116,114,117,110,99,97,116,101,0,0,0,0,0,0,0,0,98,117,115,121,0,0,0,0,108,111,103,0,0,0,0,0,99,104,101,99,107,112,111,105,110,116,101,100,0,0,0,0,119,97,108,95,97,117,116,111,99,104,101,99,107,112,111,105,110,116,0,0,0,0,0,0,116,105,109,101,111,117,116,0,115,111,102,116,95,104,101,97,112,95,108,105,109,105,116,0,116,104,114,101,97,100,115,0,37,95,0,0,0,0,0,0,102,111,114,101,105,103,110,32,107,101,121,32,109,105,115,109,97,116,99,104,32,45,32,34,37,119,34,32,114,101,102,101,114,101,110,99,105,110,103,32,34,37,119,34,0,0,0,0,83,69,84,32,78,85,76,76,0,0,0,0,0,0,0,0,83,69,84,32,68,69,70,65,85,76,84,0,0,0,0,0,67,65,83,67,65,68,69,0,82,69,83,84,82,73,67,84,0,0,0,0,0,0,0,0,78,79,32,65,67,84,73,79,78,0,0,0,0,0,0,0,116,101,109,112,111,114,97,114,121,32,115,116,111,114,97,103,101,32,99,97,110,110,111,116,32,98,101,32,99,104,97,110,103,101,100,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,110,111,110,101,0,0,0,0,105,110,99,114,101,109,101,110,116,97,108,0,0,0,0,0,240,125,0,0,248,125,0,0,0,126,0,0,152,124,0,0,64,59,0,0,8,126,0,0,100,101,108,101,116,101,0,0,112,101,114,115,105,115,116,0,111,102,102,0,0,0,0,0,119,97,108,0,0,0,0,0,97,112,112,108,105,99,97,116,105,111,110,95,105,100,0,0,97,117,116,111,109,97,116,105,99,95,105,110,100,101,120,0,98,117,115,121,95,116,105,109,101,111,117,116,0,0,0,0,99,97,99,104,101,95,115,112,105,108,108,0,0,0,0,0,99,97,115,101,95,115,101,110,115,105,116,105,118,101,95,108,105,107,101,0,0,0,0,0,99,104,101,99,107,112,111,105,110,116,95,102,117,108,108,102,115,121,110,99,0,0,0,0,99,111,108,108,97,116,105,111,110,95,108,105,115,116,0,0,99,111,109,112,105,108,101,95,111,112,116,105,111,110,115,0,99,111,117,110,116,95,99,104,97,110,103,101,115,0,0,0,100,97,116,97,95,118,101,114,115,105,111,110,0,0,0,0,100,97,116,97,98,97,115,101,95,108,105,115,116,0,0,0,100,101,102,97,117,108,116,95,99,97,99,104,101,95,115,105,122,101,0,0,0,0,0,0,100,101,102,101,114,95,102,111,114,101,105,103,110,95,107,101,121,115,0,0,0,0,0,0,101,109,112,116,121,95,114,101,115,117,108,116,95,99,97,108,108,98,97,99,107,115,0,0,102,111,114,101,105,103,110,95,107,101,121,95,99,104,101,99,107,0,0,0,0,0,0,0,102,111,114,101,105,103,110,95,107,101,121,95,108,105,115,116,0,0,0,0,0,0,0,0,102,111,114,101,105,103,110,95,107,101,121,115,0,0,0,0,102,114,101,101,108,105,115,116,95,99,111,117,110,116,0,0,102,117,108,108,95,99,111,108,117,109,110,95,110,97,109,101,115,0,0,0,0,0,0,0,102,117,108,108,102,115,121,110,99,0,0,0,0,0,0,0,105,103,110,111,114,101,95,99,104,101,99,107,95,99,111,110,115,116,114,97,105,110,116,115,0,0,0,0,0,0,0,0,105,110,99,114,101,109,101,110,116,97,108,95,118,97,99,117,117,109,0,0,0,0,0,0,105,110,100,101,120,95,105,110,102,111,0,0,0,0,0,0,105,110,100,101,120,95,108,105,115,116,0,0,0,0,0,0,105,110,100,101,120,95,120,105,110,102,111,0,0,0,0,0,108,101,103,97,99,121,95,102,105,108,101,95,102,111,114,109,97,116,0,0,0,0,0,0,109,97,120,95,112,97,103,101,95,99,111,117,110,116,0,0,112,97,103,101,95,99,111,117,110,116,0,0,0,0,0,0,113,117,101,114,121,95,111,110,108,121,0,0,0,0,0,0,113,117,105,99,107,95,99,104,101,99,107,0,0,0,0,0,114,101,97,100,95,117,110,99,111,109,109,105,116,116,101,100,0,0,0,0,0,0,0,0,114,101,99,117,114,115,105,118,101,95,116,114,105,103,103,101,114,115,0,0,0,0,0,0,114,101,118,101,114,115,101,95,117,110,111,114,100,101,114,101,100,95,115,101,108,101,99,116,115,0,0,0,0,0,0,0,115,99,104,101,109,97,95,118,101,114,115,105,111,110,0,0,115,104,111,114,116,95,99,111,108,117,109,110,95,110,97,109,101,115,0,0,0,0,0,0,115,104,114,105,110,107,95,109,101,109,111,114,121,0,0,0,115,116,97,116,115,0,0,0,116,97,98,108,101,95,105,110,102,111,0,0,0,0,0,0,117,115,101,114,95,118,101,114,115,105,111,110,0,0,0,0,119,97,108,95,99,104,101,99,107,112,111,105,110,116,0,0,119,114,105,116,97,98,108,101,95,115,99,104,101,109,97,0,110,111,32,115,117,99,104,32,105,110,100,101,120,58,32,37,83,0,0,0,0,0,0,0,105,110,100,101,120,32,97,115,115,111,99,105,97,116,101,100,32,119,105,116,104,32,85,78,73,81,85,69,32,111,114,32,80,82,73,77,65,82,89,32,75,69,89,32,99,111,110,115,116,114,97,105,110,116,32,99,97,110,110,111,116,32,98,101,32,100,114,111,112,112,101,100,0,0,0,0,0,0,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,110,97,109,101,61,37,81,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,0,0,0,0,0,0,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,114,111,111,116,112,97,103,101,61,37,100,32,87,72,69,82,69,32,35,37,100,32,65,78,68,32,114,111,111,116,112,97,103,101,61,35,37,100,0,115,113,108,105,116,101,95,115,116,97,116,37,100,0,0,0,48,0,0,0,0,0,0,0,118,97,114,105,97,98,108,101,32,110,117,109,98,101,114,32,109,117,115,116,32,98,101,32,98,101,116,119,101,101,110,32,63,49,32,97,110,100,32,63,37,100,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,83,81,76,32,118,97,114,105,97,98,108,101,115,0,0,116,97,98,108,101,32,37,83,32,104,97,115,32,110,111,32,99,111,108,117,109,110,32,110,97,109,101,100,32,37,115,0,116,97,98,108,101,32,37,83,32,104,97,115,32,37,100,32,99,111,108,117,109,110,115,32,98,117,116,32,37,100,32,118,97,108,117,101,115,32,119,101,114,101,32,115,117,112,112,108,105,101,100,0,0,0,0,0,37,100,32,118,97,108,117,101,115,32,102,111,114,32,37,100,32,99,111,108,117,109,110,115,0,0,0,0,0,0,0,0,114,111,119,115,32,105,110,115,101,114,116,101,100,0,0,0,97,116,32,109,111,115,116,32,37,100,32,116,97,98,108,101,115,32,105,110,32,97,32,106,111,105,110,0,0,0,0,0,65,63,62,64,0,0,0,0,0,0,108,105,65,62,64,63,116,114,113,115,0,0,0,0,9,8,0,0,0,0,0,0,108,105,0,0,0,0,0,0,83,69,65,82,67,72,0,0,83,67,65,78,0,0,0,0,32,83,85,66,81,85,69,82,89,32,37,100,0,0,0,0,32,84,65,66,76,69,32,37,115,0,0,0,0,0,0,0,32,65,83,32,37,115,0,0,80,82,73,77,65,82,89,32,75,69,89,0,0,0,0,0,65,85,84,79,77,65,84,73,67,32,80,65,82,84,73,65,76,32,67,79,86,69,82,73,78,71,32,73,78,68,69,88,0,0,0,0,0,0,0,0,65,85,84,79,77,65,84,73,67,32,67,79,86,69,82,73,78,71,32,73,78,68,69,88,0,0,0,0,0,0,0,0,67,79,86,69,82,73,78,71,32,73,78,68,69,88,32,37,115,0,0,0,0,0,0,0,73,78,68,69,88,32,37,115,0,0,0,0,0,0,0,0,32,85,83,73,78,71,32,0,40,114,111,119,105,100,61,63,41,0,0,0,0,0,0,0,40,114,111,119,105,100,62,63,32,65,78,68,32,114,111,119,105,100,60,63,41,0,0,0,40,114,111,119,105,100,62,63,41,0,0,0,0,0,0,0,40,114,111,119,105,100,60,63,41,0,0,0,0,0,0,0,32,85,83,73,78,71,32,73,78,84,69,71,69,82,32,80,82,73,77,65,82,89,32,75,69,89,32,0,0,0,0,0,32,86,73,82,84,85,65,76,32,84,65,66,76,69,32,73,78,68,69,88,32,37,100,58,37,115,0,0,0,0,0,0,32,40,0,0,0,0,0,0,61,0,0,0,0,0,0,0,32,65,78,68,32,0,0,0,65,78,89,40,37,115,41,0,62,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,97,117,116,111,109,97,116,105,99,32,105,110,100,101,120,32,111,110,32,37,115,40,37,115,41,0,0,0,0,0,0,0,97,117,116,111,45,105,110,100,101,120,0,0,0,0,0,0,110,111,32,113,117,101,114,121,32,115,111,108,117,116,105,111,110,0,0,0,0,0,0,0,10,10,9,9,8,8,7,7,7,6,6,6,5,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,37,115,46,120,66,101,115,116,73,110,100,101,120,40,41,32,109,97,108,102,117,110,99,116,105,111,110,0,0,0,0,0,116,97,98,108,101,32,37,115,58,32,120,66,101,115,116,73,110,100,101,120,32,114,101,116,117,114,110,101,100,32,97,110,32,105,110,118,97,108,105,100,32,112,108,97,110,0,0,0,83,81,0,0,0,0,0,0,45,45,32,84,82,73,71,71,69,82,32,37,115,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,2,0,1,0,1,1,4,36,1,4,5,16,0,2,2,2,2,0,2,2,0,0,32,0,0,4,5,4,4,0,0,1,1,5,5,0,0,0,2,2,16,0,0,0,0,0,0,0,0,0,17,17,17,17,8,17,17,17,17,76,76,2,2,0,5,5,21,21,21,21,21,21,0,76,76,76,76,76,76,76,76,76,76,0,36,2,0,0,0,0,0,2,0,1,1,1,1,8,8,0,2,1,1,1,1,2,0,0,2,2,0,0,0,0,0,0,12,69,21,1,2,2,0,1,8,5,5,5,5,5,0,1,0,0,0,0,0,0,0,1,0,2,2,1,0,0,0,0,16,16,2,16,0,0,0,0,0,1,2,3,4,6,8,8,0,0,0,0,0,0,0,0,176,107,0,0,3,0,0,0,168,107,0,0,3,0,0,0,111,105,100,0,0,0,0,0,70,79,82,69,73,71,78,32,75,69,89,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,37,115,46,114,111,119,105,100,0,0,0,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,109,111,100,105,102,105,101,100,0,0,0,0,99,97,110,110,111,116,32,109,111,100,105,102,121,32,37,115,32,98,101,99,97,117,115,101,32,105,116,32,105,115,32,97,32,118,105,101,119,0,0,0,110,111,32,115,117,99,104,32,99,111,108,117,109,110,58,32,37,115,0,0,0,0,0,0,114,111,119,115,32,117,112,100,97,116,101,100,0,0,0,0,95,114,111,119,105,100,95,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,105,110,32,37,115,0,0,114,111,119,115,32,100,101,108,101,116,101,100,0,0,0,0,110,97,116,117,114,97,108,101,102,116,111,117,116,101,114,105,103,104,116,102,117,108,108,105,110,110,101,114,99,114,111,115,115,0,0,0,0,0,0,0,0,7,4,6,4,40,10,5,32,14,5,48,19,4,56,23,5,1,28,5,3,0,0,0,117,110,107,110,111,119,110,32,111,114,32,117,110,115,117,112,112,111,114,116,101,100,32,106,111,105,110,32,116,121,112,101,58,32,37,84,32,37,84,37,115,37,84,0,0,0,0,0,82,73,71,72,84,32,97,110,100,32,70,85,76,76,32,79,85,84,69,82,32,74,79,73,78,115,32,97,114,101,32,110,111,116,32,99,117,114,114,101,110,116,108,121,32,115,117,112,112,111,114,116,101,100,0,0,97,32,74,79,73,78,32,99,108,97,117,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,98,101,102,111,114,101,32,37,115,0,0,0,0,0,79,78,0,0,0,0,0,0,85,83,73,78,71,0,0,0,68,73,83,84,73,78,67,84,0,0,0,0,0,0,0,0,71,82,79,85,80,32,66,89,0,0,0,0,0,0,0,0,82,73,71,72,84,32,80,65,82,84,32,79,70,32,79,82,68,69,82,32,66,89,0,0,79,82,68,69,82,32,66,89,0,0,0,0,0,0,0,0,99,111,108,117,109,110,37,100,0,0,0,0,0,0,0,0,83,67,65,78,32,84,65,66,76,69,32,37,115,37,115,37,115,0,0,0,0,0,0,0,32,85,83,73,78,71,32,67,79,86,69,82,73,78,71,32,73,78,68,69,88,32,0,0,68,73,83,84,73,78,67,84,32,97,103,103,114,101,103,97,116,101,115,32,109,117,115,116,32,104,97,118,101,32,101,120,97,99,116,108,121,32,111,110,101,32,97,114,103,117,109,101,110,116,0,0,0,0,0,0,85,83,69,32,84,69,77,80,32,66,45,84,82,69,69,32,70,79,82,32,37,115,0,0,79,82,68,69,82,32,66,89,32,99,108,97,117,115,101,32,115,104,111,117,108,100,32,99,111,109,101,32,97,102,116,101,114,32,37,115,32,110,111,116,32,98,101,102,111,114,101,0,76,73,77,73,84,32,99,108,97,117,115,101,32,115,104,111,117,108,100,32,99,111,109,101,32,97,102,116,101,114,32,37,115,32,110,111,116,32,98,101,102,111,114,101,0,0,0,0,67,79,77,80,79,85,78,68,32,83,85,66,81,85,69,82,73,69,83,32,37,100,32,65,78,68,32,37,100,32,37,115,40,37,115,41,0,0,0,0,85,83,73,78,71,32,84,69,77,80,32,66,45,84,82,69,69,32,0,0,0,0,0,0,97,108,108,32,86,65,76,85,69,83,32,109,117,115,116,32,104,97,118,101,32,116,104,101,32,115,97,109,101,32,110,117,109,98,101,114,32,111,102,32,116,101,114,109,115,0,0,0,83,69,76,69,67,84,115,32,116,111,32,116,104,101,32,108,101,102,116,32,97,110,100,32,114,105,103,104,116,32,111,102,32,37,115,32,100,111,32,110,111,116,32,104,97,118,101,32,116,104,101,32,115,97,109,101,32,110,117,109,98,101,114,32,111,102,32,114,101,115,117,108,116,32,99,111,108,117,109,110,115,0,0,0,0,0,0,0,85,78,73,79,78,32,65,76,76,0,0,0,0,0,0,0,73,78,84,69,82,83,69,67,84,0,0,0,0,0,0,0,69,88,67,69,80,84,0,0,85,78,73,79,78,0,0,0,111,110,108,121,32,97,32,115,105,110,103,108,101,32,114,101,115,117,108,116,32,97,108,108,111,119,101,100,32,102,111,114,32,97,32,83,69,76,69,67,84,32,116,104,97,116,32,105,115,32,112,97,114,116,32,111,102,32,97,110,32,101,120,112,114,101,115,115,105,111,110,0,112,97,114,97,109,101,116,101,114,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,105,110,32,118,105,101,119,115,0,0,0,0,0,118,105,101,119,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,100,114,111,112,112,101,100,0,0,0,0,0,117,115,101,32,68,82,79,80,32,84,65,66,76,69,32,116,111,32,100,101,108,101,116,101,32,116,97,98,108,101,32,37,115,0,0,0,0,0,0,0,117,115,101,32,68,82,79,80,32,86,73,69,87,32,116,111,32,100,101,108,101,116,101,32,118,105,101,119,32,37,115,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,32,87,72,69,82,69,32,110,97,109,101,61,37,81,0,0,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,116,98,108,95,110,97,109,101,61,37,81,32,97,110,100,32,116,121,112,101,33,61,39,116,114,105,103,103,101,114,39,0,102,111,114,101,105,103,110,32,107,101,121,32,111,110,32,37,115,32,115,104,111,117,108,100,32,114,101,102,101,114,101,110,99,101,32,111,110,108,121,32,111,110,101,32,99,111,108,117,109,110,32,111,102,32,116,97,98,108,101,32,37,84,0,0,110,117,109,98,101,114,32,111,102,32,99,111,108,117,109,110,115,32,105,110,32,102,111,114,101,105,103,110,32,107,101,121,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,116,104,101,32,110,117,109,98,101,114,32,111,102,32,99,111,108,117,109,110,115,32,105,110,32,116,104,101,32,114,101,102,101,114,101,110,99,101,100,32,116,97,98,108,101,0,0,0,117,110,107,110,111,119,110,32,99,111,108,117,109,110,32,34,37,115,34,32,105,110,32,102,111,114,101,105,103,110,32,107,101,121,32,100,101,102,105,110,105,116,105,111,110,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,97,32,84,69,77,80,32,105,110,100,101,120,32,111,110,32,110,111,110,45,84,69,77,80,32,116,97,98,108,101,32,34,37,115,34,0,0,0,0,0,0,0,97,108,116,101,114,116,97,98,95,0,0,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0,0,0,0,0,118,105,101,119,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0,0,0,0,0,0,0,0,118,105,114,116,117,97,108,32,116,97,98,108,101,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0,0,0,0,0,0,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,32,116,97,98,108,101,32,110,97,109,101,100,32,37,115,0,0,0,0,0,0,0,105,110,100,101,120,32,37,115,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,115,113,108,105,116,101,95,97,117,116,111,105,110,100,101,120,95,37,115,95,37,100,0,0,116,97,98,108,101,32,37,115,32,104,97,115,32,110,111,32,99,111,108,117,109,110,32,110,97,109,101,100,32,37,115,0,99,111,110,102,108,105,99,116,105,110,103,32,79,78,32,67,79,78,70,76,73,67,84,32,99,108,97,117,115,101,115,32,115,112,101,99,105,102,105,101,100,0,0,0,0,0,0,0,67,82,69,65,84,69,37,115,32,73,78,68,69,88,32,37,46,42,115,0,0,0,0,0,32,85,78,73,81,85,69,0,73,78,83,69,82,84,32,73,78,84,79,32,37,81,46,37,115,32,86,65,76,85,69,83,40,39,105,110,100,101,120,39,44,37,81,44,37,81,44,35,37,100,44,37,81,41,59,0,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,0,0,0,0,0,0,116,97,98,108,101,32,34,37,115,34,32,104,97,115,32,109,111,114,101,32,116,104,97,110,32,111,110,101,32,112,114,105,109,97,114,121,32,107,101,121,0,0,0,0,0,0,0,0,65,85,84,79,73,78,67,82,69,77,69,78,84,32,105,115,32,111,110,108,121,32,97,108,108,111,119,101,100,32,111,110,32,97,110,32,73,78,84,69,71,69,82,32,80,82,73,77,65,82,89,32,75,69,89,0,100,101,102,97,117,108,116,32,118,97,108,117,101,32,111,102,32,99,111,108,117,109,110,32,91,37,115,93,32,105,115,32,110,111,116,32,99,111,110,115,116,97,110,116,0,0,0,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,111,110,32,37,115,0,0,100,117,112,108,105,99,97,116,101,32,99,111,108,117,109,110,32,110,97,109,101,58,32,37,115,0,0,0,0,0,0,0,65,85,84,79,73,78,67,82,69,77,69,78,84,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,87,73,84,72,79,85,84,32,82,79,87,73,68,32,116,97,98,108,101,115,0,0,0,0,0,0,0,80,82,73,77,65,82,89,32,75,69,89,32,109,105,115,115,105,110,103,32,111,110,32,116,97,98,108,101,32,37,115,0,84,65,66,76,69,0,0,0,86,73,69,87,0,0,0,0,67,82,69,65,84,69,32,37,115,32,37,46,42,115,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,116,121,112,101,61,39,37,115,39,44,32,110,97,109,101,61,37,81,44,32,116,98,108,95,110,97,109,101,61,37,81,44,32,114,111,111,116,112,97,103,101,61,35,37,100,44,32,115,113,108,61,37,81,32,87,72,69,82,69,32,114,111,119,105,100,61,35,37,100,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,37,81,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,40,110,97,109,101,44,115,101,113,41,0,0,0,0,0,0,0,116,98,108,95,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,33,61,39,116,114,105,103,103,101,114,39,0,0,0,0,0,0,0,10,32,32,0,0,0,0,0,44,10,32,32,0,0,0,0,10,41,0,0,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,0,0,0,120,40,0,0,80,144,0,0,88,144,0,0,96,144,0,0,104,144,0,0,0,0,0,0,32,84,69,88,84,0,0,0,32,78,85,77,0,0,0,0,32,73,78,84,0,0,0,0,32,82,69,65,76,0,0,0,116,101,109,112,111,114,97,114,121,32,116,97,98,108,101,32,110,97,109,101,32,109,117,115,116,32,98,101,32,117,110,113,117,97,108,105,102,105,101,100,0,0,0,0,0,0,0,0,116,97,98,108,101,32,37,84,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,110,32,105,110,100,101,120,32,110,97,109,101,100,32,37,115,0,0,0,0,0,0,240,144,0,0,248,144,0,0,0,145,0,0,0,0,0,0,66,69,71,73,78,0,0,0,82,69,76,69,65,83,69,0,82,79,76,76,66,65,67,75,0,0,0,0,0,0,0,0,67,79,77,77,73,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,97,114,115,101,114,32,115,116,97,99,107,32,111,118,101,114,102,108,111,119,0,0,0,224,3,33,4,75,5,132,4,180,4,180,4,1,0,6,1,237,255,135,0,135,0,8,3,180,4,180,4,180,4,180,4,69,0,69,0,53,0,208,0,27,1,243,2,58,0,213,2,136,2,59,2,238,1,161,1,84,1,7,1,212,0,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,110,3,59,3,161,3,212,3,212,3,46,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,234,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,185,255,209,255,209,255,209,255,209,255,209,255,0,0,29,0,244,255,27,1,27,1,139,0,91,0,136,1,136,1,126,3,160,2,214,2,103,5,170,255,170,255,170,255,88,0,62,1,62,1,99,0,125,1,236,255,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,112,2,108,3,214,2,160,2,60,5,60,5,60,5,60,5,60,5,60,5,170,255,170,255,170,255,49,1,136,0,136,0,142,0,167,0,226,0,154,0,137,0,152,0,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,80,1,80,1,80,1,27,1,27,1,96,1,27,1,27,1,27,1,27,1,27,1,228,0,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,245,1,57,2,84,2,84,2,84,2,251,1,241,1,185,1,135,1,97,1,156,0,156,0,89,3,97,1,89,3,223,2,45,3,127,2,203,2,156,0,76,1,203,2,203,2,240,1,163,1,134,2,77,5,160,4,160,4,55,5,55,5,160,4,61,5,236,4,120,4,66,5,66,5,66,5,66,5,160,4,26,5,120,4,61,5,236,4,236,4,120,4,160,4,26,5,182,4,4,5,160,4,160,4,26,5,160,4,26,5,160,4,26,5,238,4,183,4,183,4,183,4,250,4,238,4,183,4,193,4,183,4,250,4,183,4,183,4,161,4,176,4,161,4,176,4,161,4,176,4,160,4,160,4,137,4,238,4,178,4,178,4,238,4,130,4,131,4,123,4,128,4,120,4,217,4,215,4,226,4,226,4,230,4,230,4,230,4,230,4,170,255,170,255,170,255,170,255,170,255,170,255,44,4,48,1,14,2,249,0,152,1,173,255,178,1,44,3,27,0,43,3,39,3,34,3,239,2,77,2,139,2,163,0,131,0,162,2,110,1,194,1,43,1,148,0,23,0,102,0,229,0,235,255,221,4,220,4,198,4,75,4,204,4,148,4,199,4,191,4,189,4,91,4,82,4,99,4,86,4,185,4,81,4,188,4,202,4,74,4,65,4,116,4,115,4,80,4,165,4,154,4,70,4,187,4,181,4,163,4,77,4,47,4,129,4,151,4,122,4,114,4,127,4,67,4,140,4,141,4,139,4,45,4,48,4,124,4,88,4,110,4,103,4,105,4,102,4,68,4,90,4,94,4,64,4,66,4,69,4,63,4,60,4,219,3,55,4,53,4,50,4,41,4,156,3,253,3,246,3,236,3,238,3,51,3,227,2,128,3,87,3,36,3,227,2,228,2,224,2,178,2,142,2,153,2,106,2,70,2,56,2,16,2,42,2,123,1,20,2,223,1,199,1,123,1,176,1,115,1,85,1,28,0,82,1,116,0,245,255,199,255,171,255,7,0,248,255,3,0,0,0,0,0,135,2,196,3,196,3,196,3,110,3,110,3,201,3,196,3,6,3,34,3,34,3,170,3,201,3,201,3,201,3,108,3,201,3,201,3,201,3,196,3,201,3,10,3,40,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,169,3,171,3,48,3,47,3,150,3,21,3,45,3,38,3,42,3,111,3,104,3,105,3,103,3,107,3,112,3,201,3,41,3,73,3,88,3,72,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,82,3,87,3,94,3,86,3,83,3,75,3,74,3,76,3,77,3,201,3,201,3,161,2,227,2,201,3,201,3,78,3,201,3,173,2,79,3,91,3,90,3,89,3,168,2,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,135,2,196,3,201,3,201,3,196,3,196,3,196,3,196,3,196,3,196,3,188,3,10,3,0,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,176,3,174,3,201,3,123,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,141,2,201,3,143,3,6,3,6,3,6,3,8,3,242,2,254,2,143,2,44,3,23,3,23,3,155,3,44,3,155,3,198,2,221,2,195,2,34,3,23,3,106,3,34,3,34,3,7,3,254,2,201,3,181,3,14,3,14,3,173,3,173,3,14,3,53,3,231,2,44,3,238,2,238,2,238,2,238,2,14,3,158,2,44,3,53,3,231,2,231,2,44,3,14,3,158,2,149,3,147,3,14,3,14,3,158,2,14,3,158,2,14,3,158,2,116,3,229,2,229,2,229,2,213,2,116,3,229,2,198,2,229,2,213,2,229,2,229,2,27,3,22,3,27,3,22,3,27,3,22,3,14,3,14,3,201,3,116,3,120,3,120,3,116,3,39,3,28,3,37,3,35,3,44,3,164,2,216,2,151,2,151,2,140,2,140,2,140,2,140,2,193,3,193,3,188,3,200,2,200,2,183,2,201,3,201,3,201,3,201,3,201,3,201,3,175,2,201,3,125,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,60,3,201,3,136,2,183,3,201,3,201,3,180,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,153,3,201,3,201,3,201,3,201,3,201,3,201,3,146,3,145,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,245,2,201,3,201,3,201,3,249,2,201,3,201,3,201,3,201,3,201,3,201,3,36,3,201,3,29,3,201,3,109,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,198,3,201,3,201,3,201,3,197,3,201,3,201,3,201,3,201,3,201,3,62,3,201,3,61,3,65,3,201,3,149,2,201,3,132,2,137,2,192,3,195,3,194,3,191,3,190,3,189,3,184,3,182,3,179,3,178,3,177,3,175,3,172,3,168,3,129,3,127,3,134,3,133,3,132,3,131,3,130,3,128,3,126,3,124,3,50,3,49,3,46,3,43,3,241,2,167,3,122,3,240,2,237,2,236,2,157,2,185,3,152,3,161,3,160,3,159,3,54,3,158,3,157,3,156,3,154,3,151,3,138,3,52,3,51,3,232,2,114,3,113,3,160,2,142,3,141,3,140,3,144,3,148,3,139,3,16,3,239,2,159,2,156,2,163,2,167,2,219,2,220,2,228,2,226,2,225,2,224,2,223,2,222,2,218,2,169,2,174,2,212,2,197,2,196,2,205,2,204,2,210,2,209,2,208,2,207,2,206,2,203,2,202,2,201,2,194,2,193,2,199,2,192,2,215,2,214,2,211,2,191,2,235,2,234,2,233,2,230,2,190,2,189,2,188,2,65,3,187,2,186,2,70,3,69,3,98,3,58,3,243,2,247,2,246,2,250,2,251,2,3,3,2,3,1,3,12,3,13,3,25,3,24,3,56,3,55,3,26,3,11,3,5,3,4,3,20,3,19,3,18,3,17,3,9,3,255,2,31,3,30,3,100,3,15,3,99,3,97,3,166,3,165,3,164,3],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+28952);allocate([163,3,162,3,102,3,199,3,200,3,119,3,121,3,118,3,33,3,32,3,117,3,101,3,71,3,68,3,178,2,179,2,137,3,136,3,135,3,181,2,180,2,177,2,176,2,95,3,92,3,84,3,96,3,93,3,85,3,81,3,80,3,66,3,64,3,63,3,59,3,67,3,248,2,244,2,57,3,253,2,252,2,185,2,184,2,182,2,166,2,165,2,162,2,155,2,153,2,152,2,154,2,150,2,148,2,147,2,146,2,145,2,144,2,172,2,171,2,170,2,142,2,139,2,138,2,134,2,133,2,131,2,0,0,0,0,19,22,22,23,1,24,26,15,27,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,108,109,110,27,28,23,50,51,80,81,82,83,122,85,86,87,88,89,90,91,92,93,94,95,22,70,23,71,72,73,74,75,76,77,78,79,80,81,82,83,122,85,86,87,88,89,90,91,92,93,94,95,19,97,91,92,93,94,95,26,85,86,87,88,89,90,91,92,93,94,95,27,28,97,98,99,122,211,102,103,104,79,19,50,51,19,122,59,55,113,224,225,226,89,90,91,92,93,94,95,23,27,28,26,71,72,73,74,75,76,77,78,79,80,81,82,83,51,85,86,87,88,89,90,91,92,93,94,95,19,132,133,58,89,90,21,108,109,110,27,28,97,98,33,100,7,8,119,120,22,19,107,42,109,27,28,27,28,95,28,50,51,99,100,101,102,103,104,105,27,28,97,98,107,152,112,132,133,112,65,69,71,72,73,74,75,76,77,78,79,80,81,82,83,11,85,86,87,88,89,90,91,92,93,94,95,19,101,97,97,98,24,101,122,157,12,99,103,112,102,103,104,152,22,97,98,97,98,27,28,113,27,29,91,164,165,124,50,51,97,98,219,59,132,133,134,22,23,45,66,47,212,213,124,140,132,133,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,164,165,27,28,230,50,51,233,108,109,110,70,16,59,23,97,98,26,97,22,66,185,12,187,27,28,71,72,73,74,75,76,77,78,79,80,81,82,83,29,85,86,87,88,89,90,91,92,93,94,95,19,22,148,149,45,23,47,62,154,64,156,108,109,110,37,69,23,163,59,26,26,97,98,144,145,146,147,152,200,52,23,50,51,26,22,89,90,60,210,7,8,9,138,97,22,23,26,101,26,174,175,197,71,72,73,74,75,76,77,78,79,80,81,82,83,16,85,86,87,88,89,90,91,92,93,94,95,19,132,133,134,23,152,208,209,140,152,152,111,195,196,98,70,163,160,152,23,22,164,165,246,207,27,152,174,175,171,172,50,51,137,62,139,64,171,172,222,124,27,138,24,163,89,90,130,174,175,197,163,71,72,73,74,75,76,77,78,79,80,81,82,83,22,85,86,87,88,89,90,91,92,93,94,95,19,197,181,182,23,208,209,152,197,26,189,132,133,232,224,225,226,152,97,91,26,232,116,212,213,152,222,121,152,174,175,50,51,243,97,22,23,22,234,174,175,177,23,239,116,163,177,174,175,121,174,175,71,72,73,74,75,76,77,78,79,80,81,82,83,24,85,86,87,88,89,90,91,92,93,94,95,19,23,197,11,23,227,70,208,220,152,31,224,225,226,35,98,224,225,226,108,109,110,115,152,117,118,27,222,49,123,24,50,51,27,0,1,2,224,225,226,166,124,168,169,239,174,175,170,171,172,22,194,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,22,208,24,23,195,196,170,171,172,174,175,152,26,152,152,152,207,152,97,152,23,152,51,244,152,97,152,247,248,23,50,51,26,174,175,174,175,174,175,174,175,174,175,174,175,23,174,175,174,175,188,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,152,107,152,33,24,152,100,101,27,174,175,152,42,152,23,152,26,152,23,152,26,152,174,175,174,175,152,174,175,23,50,51,26,174,175,174,175,174,175,174,175,174,175,174,175,163,119,120,174,175,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,66,152,97,197,23,50,51,26,53,23,174,175,26,23,23,23,26,26,26,36,106,146,147,174,175,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,196,119,120,19,50,51,168,169,26,174,175,207,28,152,249,250,152,163,163,163,163,174,175,163,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,197,197,197,197,50,51,197,194,36,174,175,191,192,152,191,192,163,152,66,124,152,174,175,152,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,197,152,100,188,152,50,51,152,152,188,174,175,252,152,94,95,152,152,152,1,2,152,152,174,175,19,152,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,188,188,22,194,50,51,240,173,194,174,175,252,194,152,36,181,28,152,23,219,122,174,175,219,221,152,152,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,20,152,22,23,194,152,240,27,28,174,175,240,19,20,26,22,194,194,38,22,27,28,152,23,22,152,116,174,175,152,23,38,152,23,152,221,152,57,152,23,163,50,51,194,174,175,66,174,175,69,57,174,175,40,174,175,174,175,174,175,174,175,69,22,53,74,75,30,53,89,90,22,22,152,197,23,96,97,98,22,152,101,89,90,91,208,209,152,53,96,97,98,101,22,101,174,175,152,19,20,105,22,174,175,112,19,27,28,20,174,175,24,132,133,134,135,136,38,44,174,175,107,61,54,26,132,133,134,135,136,54,107,22,5,140,1,57,36,111,122,28,79,79,131,123,66,19,20,69,22,1,16,20,125,27,28,123,111,120,23,131,23,16,68,142,38,15,22,89,90,3,167,4,248,251,96,97,98,180,180,101,251,151,6,57,151,13,151,26,25,151,161,202,153,162,153,69,130,128,203,19,20,127,22,126,204,129,22,27,28,205,132,133,134,135,136,89,90,231,38,95,137,179,96,97,98,206,179,101,122,107,159,159,125,231,216,228,107,57,184,217,216,176,217,176,48,106,18,184,158,69,159,158,46,71,237,176,176,176,132,133,134,135,136,217,176,137,216,178,158,89,90,179,176,159,179,159,96,97,98,159,159,101,5,158,202,22,18,10,11,12,13,14,190,238,17,190,158,193,41,159,202,193,159,202,245,193,193,223,190,32,159,34,132,133,134,135,136,159,39,155,43,150,223,177,201,178,177,186,66,199,177,152,253,56,215,152,182,152,202,152,63,152,152,66,67,242,229,152,174,152,152,152,152,152,152,152,199,242,202,152,198,152,152,152,183,192,152,215,152,183,215,183,152,241,214,152,211,152,152,211,211,152,152,241,152,152,152,152,152,152,152,114,152,152,235,152,152,152,174,187,95,174,253,253,253,253,236,253,253,253,253,253,253,253,253,253,253,253,141,0,0,0,0,0,0,0,0,0,27,27,27,27,0,27,27,27,0,27,27,27,27,0,0,0,27,0,0,27,0,0,0,27,0,0,0,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,0,0,115,113,108,105,116,101,51,95,103,101,116,95,116,97,98,108,101,40,41,32,99,97,108,108,101,100,32,119,105,116,104,32,116,119,111,32,111,114,32,109,111,114,101,32,105,110,99,111,109,112,97,116,105,98,108,101,32,113,117,101,114,105,101,115,0,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,105,115,32,108,111,99,107,101,100,58,32,37,115,0,0,0,115,116,97,116,101,109,101,110,116,32,116,111,111,32,108,111,110,103,0,0,0,0,0,0,128,160,0,0,136,160,0,0,144,160,0,0,152,160,0,0,160,160,0,0,168,160,0,0,176,160,0,0,184,160,0,0,192,160,0,0,208,160,0,0,136,122,0,0,216,160,0,0,97,100,100,114,0,0,0,0,111,112,99,111,100,101,0,0,112,49,0,0,0,0,0,0,112,50,0,0,0,0,0,0,112,51,0,0,0,0,0,0,112,52,0,0,0,0,0,0,112,53,0,0,0,0,0,0,99,111,109,109,101,110,116,0,115,101,108,101,99,116,105,100,0,0,0,0,0,0,0,0,111,114,100,101,114,0,0,0,100,101,116,97,105,108,0,0,115,111,0,0,0,0,0,0,115,113,108,105,116,101,51,95,101,120,116,101,110,115,105,111,110,95,105,110,105,116,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,115,104,97,114,101,100,32,108,105,98,114,97,114,121,32,91,37,115,93,0,0,0,0,0,0,108,105,98,0,0,0,0,0,95,105,110,105,116,0,0,0,110,111,32,101,110,116,114,121,32,112,111,105,110,116,32,91,37,115,93,32,105,110,32,115,104,97,114,101,100,32,108,105,98,114,97,114,121,32,91,37,115,93,0,0,0,0,0,0,101,114,114,111,114,32,100,117,114,105,110,103,32,105,110,105,116,105,97,108,105,122,97,116,105,111,110,58,32,37,115,0,117,110,111,112,101,110,101,100,0,0,0,0,0,0,0,0,110,111,32,115,117,99,104,32,118,105,101,119,0,0,0,0,110,111,32,115,117,99,104,32,116,97,98,108,101,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,118,97,108,117,101,32,111,102,32,116,121,112,101,32,37,115,0,0,0,0,110,111,32,115,117,99,104,32,114,111,119,105,100,58,32,37,108,108,100,0,0,0,0,0,98,105,110,100,32,111,110,32,97,32,98,117,115,121,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,58,32,91,37,115,93,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,162,0,0,96,162,0,0,104,162,0,0,112,162,0,0,78,79,84,32,78,85,76,76,0,0,0,0,0,0,0,0,85,78,73,81,85,69,0,0,67,72,69,67,75,0,0,0,70,79,82,69,73,71,78,32,75,69,89,0,0,0,0,0,97,98,111,114,116,32,97,116,32,37,100,32,105,110,32,91,37,115,93,58,32,37,115,0,37,115,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,58,32,37,115,0,0,0,0,0,0,0,0,37,115,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,0,0,0,0,0,1,2,0,2,2,0,0,0,0,0,0,0,0,1,2,1,1,1,2,1,2,0,0,0,0,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,115,97,118,101,112,111,105,110,116,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,0,0,0,110,111,32,115,117,99,104,32,115,97,118,101,112,111,105,110,116,58,32,37,115,0,0,0,99,97,110,110,111,116,32,114,101,108,101,97,115,101,32,115,97,118,101,112,111,105,110,116,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,99,97,110,110,111,116,32,99,111,109,109,105,116,32,116,114,97,110,115,97,99,116,105,111,110,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,99,97,110,110,111,116,32,115,116,97,114,116,32,97,32,116,114,97,110,115,97,99,116,105,111,110,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,99,97,110,110,111,116,32,114,111,108,108,98,97,99,107,32,45,32,110,111,32,116,114,97,110,115,97,99,116,105,111,110,32,105,115,32,97,99,116,105,118,101,0,0,0,0,0,0,99,97,110,110,111,116,32,99,111,109,109,105,116,32,45,32,110,111,32,116,114,97,110,115,97,99,116,105,111,110,32,105,115,32,97,99,116,105,118,101,0,0,0,0,0,0,0,0,83,69,76,69,67,84,32,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,70,82,79,77,32,39,37,113,39,46,37,115,32,87,72,69,82,69,32,37,115,32,79,82,68,69,82,32,66,89,32,114,111,119,105,100,0,116,111,111,32,109,97,110,121,32,108,101,118,101,108,115,32,111,102,32,116,114,105,103,103,101,114,32,114,101,99,117,114,115,105,111,110,0,0,0,0,99,97,110,110,111,116,32,99,104,97,110,103,101,32,37,115,32,119,97,108,32,109,111,100,101,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,105,110,116,111,0,0,0,0,111,117,116,32,111,102,0,0,100,97,116,97,98,97,115,101,32,116,97,98,108,101,32,105,115,32,108,111,99,107,101,100,58,32,37,115,0,0,0,0,115,116,97,116,101,109,101,110,116,32,97,98,111,114,116,115,32,97,116,32,37,100,58,32,91,37,115,93,32,37,115,0,45,45,32,0,0,0,0,0,39,37,46,42,113,39,0,0,122,101,114,111,98,108,111,98,40,37,100,41,0,0,0,0,120,39,0,0,0,0,0,0,37,48,50,120,0,0,0,0,39,0,0,0,0,0,0,0,99,97,110,110,111,116,32,86,65,67,85,85,77,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,99,97,110,110,111,116,32,86,65,67,85,85,77,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,0,0,0,65,84,84,65,67,72,32,39,58,109,101,109,111,114,121,58,39,32,65,83,32,118,97,99,117,117,109,95,100,98,59,0,65,84,84,65,67,72,32,39,39,32,65,83,32,118,97,99,117,117,109,95,100,98,59,0,80,82,65,71,77,65,32,118,97,99,117,117,109,95,100,98,46,115,121,110,99,104,114,111,110,111,117,115,61,79,70,70,0,0,0,0,0,0,0,0,66,69,71,73,78,59,0,0,83,69,76,69,67,84,32,39,67,82,69,65,84,69,32,84,65,66,76,69,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,49,52,41,32,32,32,70,82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,116,121,112,101,61,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,33,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,32,32,65,78,68,32,99,111,97,108,101,115,99,101,40,114,111,111,116,112,97,103,101,44,49,41,62,48,0,0,0,0,0,83,69,76,69,67,84,32,39,67,82,69,65,84,69,32,73,78,68,69,88,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,49,52,41,32,32,70,82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,115,113,108,32,76,73,75,69,32,39,67,82,69,65,84,69,32,73,78,68,69,88,32,37,39,32,0,83,69,76,69,67,84,32,39,67,82,69,65,84,69,32,85,78,73,81,85,69,32,73,78,68,69,88,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,50,49,41,32,32,32,70,82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,115,113,108,32,76,73,75,69,32,39,67,82,69,65,84,69,32,85,78,73,81,85,69,32,73,78,68,69,88,32,37,39,0,0,0,83,69,76,69,67,84,32,39,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,32,83,69,76,69,67,84,32,42,32,70,82,79,77,32,109,97,105,110,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,59,39,70,82,79,77,32,109,97,105,110,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,116,121,112,101,32,61,32,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,33,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,32,32,65,78,68,32,99,111,97,108,101,115,99,101,40,114,111,111,116,112,97,103,101,44,49,41,62,48,0,0,0,0,0,83,69,76,69,67,84,32,39,68,69,76,69,84,69,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,59,39,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,110,97,109,101,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,0,0,0,0,0,0,0,0,83,69,76,69,67,84,32,39,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,32,83,69,76,69,67,84,32,42,32,70,82,79,77,32,109,97,105,110,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,59,39,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,110,97,109,101,61,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,59,0,0,0,0,0,0,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,32,32,83,69,76,69,67,84,32,116,121,112,101,44,32,110,97,109,101,44,32,116,98,108,95,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,32,32,32,70,82,79,77,32,109,97,105,110,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,32,32,87,72,69,82,69,32,116,121,112,101,61,39,118,105,101,119,39,32,79,82,32,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,32,32,32,32,32,79,82,32,40,116,121,112,101,61,39,116,97,98,108,101,39,32,65,78,68,32,114,111,111,116,112,97,103,101,61,48,41,0,1,1,3,0,5,0,6,0,8,0,0,0,0,0,0,0,77,97,105,110,32,102,114,101,101,108,105,115,116,58,32,0,76,105,115,116,32,111,102,32,116,114,101,101,32,114,111,111,116,115,58,32,0,0,0,0,80,97,103,101,32,37,100,32,105,115,32,110,101,118,101,114,32,117,115,101,100,0,0,0,80,111,105,110,116,101,114,32,109,97,112,32,112,97,103,101,32,37,100,32,105,115,32,114,101,102,101,114,101,110,99,101,100,0,0,0,0,0,0,0,79,117,116,115,116,97,110,100,105,110,103,32,112,97,103,101,32,99,111,117,110,116,32,103,111,101,115,32,102,114,111,109,32,37,100,32,116,111,32,37,100,32,100,117,114,105,110,103,32,116,104,105,115,32,97,110,97,108,121,115,105,115,0,0,10,0,0,0,0,0,0,0,80,97,103,101,32,37,100,58,32,0,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,103,101,116,32,116,104,101,32,112,97,103,101,46,32,101,114,114,111,114,32,99,111,100,101,61,37,100,0,0,0,98,116,114,101,101,73,110,105,116,80,97,103,101,40,41,32,114,101,116,117,114,110,115,32,101,114,114,111,114,32,99,111,100,101,32,37,100,0,0,0,79,110,32,116,114,101,101,32,112,97,103,101,32,37,100,32,99,101,108,108,32,37,100,58,32,0,0,0,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,112,114,101,118,105,111,117,115,32,119,97,115,32,37,108,108,100,41,0,0,0,0,0,67,104,105,108,100,32,112,97,103,101,32,100,101,112,116,104,32,100,105,102,102,101,114,115,0,0,0,0,0,0,0,0,79,110,32,112,97,103,101,32,37,100,32,97,116,32,114,105,103,104,116,32,99,104,105,108,100,58,32,0,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,97,120,32,108,97,114,103,101,114,32,116,104,97,110,32,112,97,114,101,110,116,32,109,105,110,32,111,102,32,37,108,108,100,41,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,105,110,32,108,101,115,115,32,116,104,97,110,32,112,97,114,101,110,116,32,109,105,110,32,111,102,32,37,108,108,100,41,0,0,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,97,120,32,108,97,114,103,101,114,32,116,104,97,110,32,112,97,114,101,110,116,32,109,97,120,32,111,102,32,37,108,108,100,41,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,105,110,32,108,101,115,115,32,116,104,97,110,32,112,97,114,101,110,116,32,109,97,120,32,111,102,32,37,108,108,100,41,0,0,0,0,0,0,67,111,114,114,117,112,116,105,111,110,32,100,101,116,101,99,116,101,100,32,105,110,32,99,101,108,108,32,37,100,32,111,110,32,112,97,103,101,32,37,100,0,0,0,0,0,0,0,77,117,108,116,105,112,108,101,32,117,115,101,115,32,102,111,114,32,98,121,116,101,32,37,100,32,111,102,32,112,97,103,101,32,37,100,0,0,0,0,70,114,97,103,109,101,110,116,97,116,105,111,110,32,111,102,32,37,100,32,98,121,116,101,115,32,114,101,112,111,114,116,101,100,32,97,115,32,37,100,32,111,110,32,112,97,103,101,32,37,100,0,0,0,0,0,105,110,118,97,108,105,100,32,112,97,103,101,32,110,117,109,98,101,114,32,37,100,0,0,50,110,100,32,114,101,102,101,114,101,110,99,101,32,116,111,32,112,97,103,101,32,37,100,0,0,0,0,0,0,0,0,70,97,105,108,101,100,32,116,111,32,114,101,97,100,32,112,116,114,109,97,112,32,107,101,121,61,37,100,0,0,0,0,66,97,100,32,112,116,114,32,109,97,112,32,101,110,116,114,121,32,107,101,121,61,37,100,32,101,120,112,101,99,116,101,100,61,40,37,100,44,37,100,41,32,103,111,116,61,40,37,100,44,37,100,41,0,0,0,37,100,32,111,102,32,37,100,32,112,97,103,101,115,32,109,105,115,115,105,110,103,32,102,114,111,109,32,111,118,101,114,102,108,111,119,32,108,105,115,116,32,115,116,97,114,116,105,110,103,32,97,116,32,37,100,0,0,0,0,0,0,0,0,102,97,105,108,101,100,32,116,111,32,103,101,116,32,112,97,103,101,32,37,100,0,0,0,102,114,101,101,108,105,115,116,32,108,101,97,102,32,99,111,117,110,116,32,116,111,111,32,98,105,103,32,111,110,32,112,97,103,101,32,37,100,0,0,83,81,76,105,116,101,32,102,111,114,109,97,116,32,51,0,37,115,45,109,106,88,88,88,88,88,88,57,88,88,122,0,77,74,32,100,101,108,101,116,101,58,32,37,115,0,0,0,77,74,32,99,111,108,108,105,100,101,58,32,37,115,0,0,45,109,106,37,48,54,88,57,37,48,50,88,0,0,0,0,37,46,50,120,0,0,0,0,107,40,37,100,0,0,0,0,110,105,108,0,0,0,0,0,66,0,0,0,0,0,0,0,40,37,46,50,48,115,41,0,37,115,40,37,100,41,0,0,37,100,0,0,0,0,0,0,40,98,108,111,98,41,0,0,118,116,97,98,58,37,112,0,105,110,116,97,114,114,97,121,0,0,0,0,0,0,0,0,112,114,111,103,114,97,109,0,240,52,0,0,176,177,0,0,192,177,0,0,208,177,0,0,224,177,0,0,240,177,0,0,0,178,0,0,16,178,0,0,32,178,0,0,40,178,0,0,48,178,0,0,56,178,0,0,72,178,0,0,88,178,0,0,96,178,0,0,104,178,0,0,112,178,0,0,120,178,0,0,128,178,0,0,136,178,0,0,144,178,0,0,160,178,0,0,176,178,0,0,184,178,0,0,200,178,0,0,208,178,0,0,216,178,0,0,224,178,0,0,232,178,0,0,240,178,0,0,0,179,0,0,8,179,0,0,24,179,0,0,32,179,0,0,40,179,0,0,48,179,0,0,64,179,0,0,72,179,0,0,80,179,0,0,96,179,0,0,112,179,0,0,120,179,0,0,136,179,0,0,144,179,0,0,152,179,0,0,160,179,0,0,168,179,0,0,176,179,0,0,184,179,0,0,200,179,0,0,216,179,0,0,224,179,0,0,240,179,0,0,0,180,0,0,16,180,0,0,32,180,0,0,48,180,0,0,64,180,0,0,80,180,0,0,96,180,0,0,112,180,0,0,128,180,0,0,136,180,0,0,144,180,0,0,152,180,0,0,160,180,0,0,168,180,0,0,176,180,0,0,192,180,0,0,208,180,0,0,216,180,0,0,232,180,0,0,240,180,0,0,248,180,0,0,8,181,0,0,24,181,0,0,32,181,0,0,40,181,0,0,48,181,0,0,56,181,0,0,64,181,0,0,72,181,0,0,80,181,0,0,88,181,0,0,96,181,0,0,112,181,0,0,120,181,0,0,128,181,0,0,144,181,0,0,160,181,0,0,168,181,0,0,184,181,0,0,200,181,0,0,208,181,0,0,224,181,0,0,232,181,0,0,240,181,0,0,248,181,0,0,0,182,0,0,16,182,0,0,32,182,0,0,48,182,0,0,56,182,0,0,64,182,0,0,72,182,0,0,80,182,0,0,88,182,0,0,104,182,0,0,112,182,0,0,120,182,0,0,136,182,0,0,152,182,0,0,168,182,0,0,184,182,0,0,192,182,0,0,200,182,0,0,208,182,0,0,216,182,0,0,224,182,0,0,232,182,0,0,248,182,0,0,8,183,0,0,24,183,0,0,40,183,0,0,56,183,0,0,72,183,0,0,88,183,0,0,104,183,0,0,120,183,0,0,136,183,0,0,152,183,0,0,168,183,0,0,176,183,0,0,184,183,0,0,192,183,0,0,208,183,0,0,224,183,0,0,232,183,0,0,240,183,0,0,248,183,0,0,8,184,0,0,24,184,0,0,40,184,0,0,56,184,0,0,72,184,0,0,80,184,0,0,96,184,0,0,104,184,0,0,112,184,0,0,128,184,0,0,136,184,0,0,144,184,0,0,152,184,0,0,160,184,0,0,176,184,0,0,192,184,0,0,200,184,0,0,208,184,0,0,70,117,110,99,116,105,111,110,0,0,0,0,0,0,0,0,83,97,118,101,112,111,105,110,116,0,0,0,0,0,0,0,65,117,116,111,67,111,109,109,105,116,0,0,0,0,0,0,84,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,83,111,114,116,101,114,78,101,120,116,0,0,0,0,0,0,80,114,101,118,73,102,79,112,101,110,0,0,0,0,0,0,78,101,120,116,73,102,79,112,101,110,0,0,0,0,0,0,80,114,101,118,0,0,0,0,78,101,120,116,0,0,0,0,65,103,103,83,116,101,112,0,67,104,101,99,107,112,111,105,110,116,0,0,0,0,0,0,74,111,117,114,110,97,108,77,111,100,101,0,0,0,0,0,86,97,99,117,117,109,0,0,86,70,105,108,116,101,114,0,86,85,112,100,97,116,101,0,71,111,116,111,0,0,0,0,71,111,115,117,98,0,0,0,82,101,116,117,114,110,0,0,78,111,116,0,0,0,0,0,73,110,105,116,67,111,114,111,117,116,105,110,101,0,0,0,69,110,100,67,111,114,111,117,116,105,110,101,0,0,0,0,89,105,101,108,100,0,0,0,72,97,108,116,73,102,78,117,108,108,0,0,0,0,0,0,72,97,108,116,0,0,0,0,73,110,116,101,103,101,114,0,73,110,116,54,52,0,0,0,83,116,114,105,110,103,0,0,78,117,108,108,0,0,0,0,83,111,102,116,78,117,108,108,0,0,0,0,0,0,0,0,66,108,111,98,0,0,0,0,86,97,114,105,97,98,108,101,0,0,0,0,0,0,0,0,77,111,118,101,0,0,0,0,67,111,112,121,0,0,0,0,83,67,111,112,121,0,0,0,82,101,115,117,108,116,82,111,119,0,0,0,0,0,0,0,67,111,108,108,83,101,113,0,65,100,100,73,109,109,0,0,77,117,115,116,66,101,73,110,116,0,0,0,0,0,0,0,82,101,97,108,65,102,102,105,110,105,116,121,0,0,0,0,67,97,115,116,0,0,0,0,80,101,114,109,117,116,97,116,105,111,110,0,0,0,0,0,67,111,109,112,97,114,101,0,74,117,109,112,0,0,0,0,79,110,99,101,0,0,0,0,73,102,0,0,0,0,0,0,73,102,78,111,116,0,0,0,67,111,108,117,109,110,0,0,65,102,102,105,110,105,116,121,0,0,0,0,0,0,0,0,77,97,107,101,82,101,99,111,114,100,0,0,0,0,0,0,67,111,117,110,116,0,0,0,82,101,97,100,67,111,111,107,105,101,0,0,0,0,0,0,83,101,116,67,111,111,107,105,101,0,0,0,0,0,0,0,82,101,111,112,101,110,73,100,120,0,0,0,0,0,0,0,79,112,101,110,82,101,97,100,0,0,0,0,0,0,0,0,79,112,101,110,87,114,105,116,101,0,0,0,0,0,0,0,79,112,101,110,65,117,116,111,105,110,100,101,120,0,0,0,79,112,101,110,69,112,104,101,109,101,114,97,108,0,0,0,83,111,114,116,101,114,79,112,101,110,0,0,0,0,0,0,83,101,113,117,101,110,99,101,84,101,115,116,0,0,0,0,79,112,101,110,80,115,101,117,100,111,0,0,0,0,0,0,67,108,111,115,101,0,0,0,83,101,101,107,76,84,0,0,83,101,101,107,76,69,0,0,83,101,101,107,71,69,0,0,83,101,101,107,71,84,0,0,83,101,101,107,0,0,0,0,78,111,67,111,110,102,108,105,99,116,0,0,0,0,0,0,78,111,116,70,111,117,110,100,0,0,0,0,0,0,0,0,70,111,117,110,100,0,0,0,78,111,116,69,120,105,115,116,115,0,0,0,0,0,0,0,79,114,0,0,0,0,0,0,65,110,100,0,0,0,0,0,83,101,113,117,101,110,99,101,0,0,0,0,0,0,0,0,78,101,119,82,111,119,105,100,0,0,0,0,0,0,0,0,73,110,115,101,114,116,0,0,73,115,78,117,108,108,0,0,78,111,116,78,117,108,108,0,78,101,0,0,0,0,0,0,69,113,0,0,0,0,0,0,71,116,0,0,0,0,0,0,76,101,0,0,0,0,0,0,76,116,0,0,0,0,0,0,71,101,0,0,0,0,0,0,73,110,115,101,114,116,73,110,116,0,0,0,0,0,0,0,66,105,116,65,110,100,0,0,66,105,116,79,114,0,0,0,83,104,105,102,116,76,101,102,116,0,0,0,0,0,0,0,83,104,105,102,116,82,105,103,104,116,0,0,0,0,0,0,65,100,100,0,0,0,0,0,83,117,98,116,114,97,99,116,0,0,0,0,0,0,0,0,77,117,108,116,105,112,108,121,0,0,0,0,0,0,0,0,68,105,118,105,100,101,0,0,82,101,109,97,105,110,100,101,114,0,0,0,0,0,0,0,67,111,110,99,97,116,0,0,68,101,108,101,116,101,0,0,66,105,116,78,111,116,0,0,83,116,114,105,110,103,56,0,82,101,115,101,116,67,111,117,110,116,0,0,0,0,0,0,83,111,114,116,101,114,67,111,109,112,97,114,101,0,0,0,83,111,114,116,101,114,68,97,116,97,0,0,0,0,0,0,82,111,119,75,101,121,0,0,82,111,119,68,97,116,97,0,82,111,119,105,100,0,0,0,78,117,108,108,82,111,119,0,76,97,115,116,0,0,0,0,83,111,114,116,101,114,83,111,114,116,0,0,0,0,0,0,83,111,114,116,0,0,0,0,82,101,119,105,110,100,0,0,83,111,114,116,101,114,73,110,115,101,114,116,0,0,0,0,73,100,120,73,110,115,101,114,116,0,0,0,0,0,0,0,73,100,120,68,101,108,101,116,101,0,0,0,0,0,0,0,73,100,120,82,111,119,105,100,0,0,0,0,0,0,0,0,73,100,120,76,69,0,0,0,73,100,120,71,84,0,0,0,73,100,120,76,84,0,0,0,73,100,120,71,69,0,0,0,68,101,115,116,114,111,121,0,67,108,101,97,114,0,0,0,82,101,115,101,116,83,111,114,116,101,114,0,0,0,0,0,67,114,101,97,116,101,73,110,100,101,120,0,0,0,0,0,67,114,101,97,116,101,84,97,98,108,101,0,0,0,0,0,80,97,114,115,101,83,99,104,101,109,97,0,0,0,0,0,76,111,97,100,65,110,97,108,121,115,105,115,0,0,0,0,68,114,111,112,84,97,98,108,101,0,0,0,0,0,0,0,68,114,111,112,73,110,100,101,120,0,0,0,0,0,0,0,68,114,111,112,84,114,105,103,103,101,114,0,0,0,0,0,73,110,116,101,103,114,105,116,121,67,107,0,0,0,0,0,82,111,119,83,101,116,65,100,100,0,0,0,0,0,0,0,82,111,119,83,101,116,82,101,97,100,0,0,0,0,0,0,82,111,119,83,101,116,84,101,115,116,0,0,0,0,0,0,80,114,111,103,114,97,109,0,80,97,114,97,109,0,0,0,82,101,97,108,0,0,0,0,70,107,67,111,117,110,116,101,114,0,0,0,0,0,0,0,70,107,73,102,90,101,114,111,0,0,0,0,0,0,0,0,77,101,109,77,97,120,0,0,73,102,80,111,115,0,0,0,73,102,78,101,103,0,0,0,73,102,78,111,116,90,101,114,111,0,0,0,0,0,0,0,68,101,99,114,74,117,109,112,90,101,114,111,0,0,0,0,74,117,109,112,90,101,114,111,73,110,99,114,0,0,0,0,65,103,103,70,105,110,97,108,0,0,0,0,0,0,0,0,73,110,99,114,86,97,99,117,117,109,0,0,0,0,0,0,69,120,112,105,114,101,0,0,84,97,98,108,101,76,111,99,107,0,0,0,0,0,0,0,86,66,101,103,105,110,0,0,86,67,114,101,97,116,101,0,86,68,101,115,116,114,111,121,0,0,0,0,0,0,0,0,86,79,112,101,110,0,0,0,86,67,111,108,117,109,110,0,86,78,101,120,116,0,0,0,86,82,101,110,97,109,101,0,80,97,103,101,99,111,117,110,116,0,0,0,0,0,0,0,77,97,120,80,103,99,110,116,0,0,0,0,0,0,0,0,73,110,105,116,0,0,0,0,78,111,111,112,0,0,0,0,69,120,112,108,97,105,110,0,65,80,73,32,99,97,108,108,101,100,32,119,105,116,104,32,78,85,76,76,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,0,65,80,73,32,99,97,108,108,101,100,32,119,105,116,104,32,102,105,110,97,108,105,122,101,100,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,0,0,0,0,64,32,32,0,0,0,0,0,100,101,115,116,105,110,97,116,105,111,110,32,100,97,116,97,98,97,115,101,32,105,115,32,105,110,32,117,115,101,0,0,117,110,107,110,111,119,110,32,100,97,116,97,98,97,115,101,32,37,115,0,0,0,0,0,1,0,0,0,67,0,0,0,17,0,0,0,18,0,0,0,31,0,0,0,53,0,0,0,54,0,0,0,55,0,0,0,56,0,0,0,57,0,0,0,32,0,0,0,68,0,0,0,69,0,0,0,0,0,0,0,15,0,0,0,19,0,0,0,58,0,0,0,19,0,0,0,16,0,0,0,0,0,0,0,24,187,0,0,33,0,0,0,0,0,0,0,240,186,0,0,70,0,0,0,0,0,0,0,72,59,0,0,59,0,0,0,0,0,0,0,32,187,0,0,60,0,0,0,0,0,0,0,40,187,0,0,61,0,0,0,0,0,0,0,48,187,0,0,62,0,0,0,0,0,0,0,56,187,0,0,63,0,0,0,0,0,0,0,72,187,0,0,34,0,0,0,0,0,0,0,80,187,0,0,35,0,0,0,0,0,0,0,88,187,0,0,0,0,0,0,0,0,0,0,96,187,0,0,0,0,0,0,0,0,0,0,104,187,0,0,36,0,0,0,0,0,0,0,112,187,0,0,0,0,0,0,0,0,0,0,120,187,0,0,0,0,0,0,0,0,0,0,136,187,0,0,64,0,0,0,0,0,0,0,144,187,0,0,0,0,0,0,0,0,0,0,160,187,0,0,71,0,0,0,0,0,0,0,168,187,0,0,65,0,0,0,0,0,0,0,184,187,0,0,66,0,0,0,0,0,0,0,192,187,0,0,72,0,0,0,0,0,0,0,200,187,0,0,37,0,0,0,0,0,0,0,208,187,0,0,4,0,0,0,0,0,0,0,216,187,0,0,67,0,0,0,0,0,0,0,224,187,0,0,0,0,0,0,0,0,0,0,232,187,0,0,6,0,0,0,0,0,0,0,0,0,0,0,99,108,111,115,101,0,0,0,111,115,95,117,110,105,120,46,99,58,37,100,58,32,40,37,100,41,32,37,115,40,37,115,41,32,45,32,37,115,0,0,111,112,101,110,0,0,0,0,103,101,116,99,119,100,0,0,115,116,97,116,0,0,0,0,102,115,116,97,116,0,0,0,102,116,114,117,110,99,97,116,101,0,0,0,0,0,0,0,102,99,110,116,108,0,0,0,114,101,97,100,0,0,0,0,112,114,101,97,100,0,0,0,112,114,101,97,100,54,52,0,119,114,105,116,101,0,0,0,112,119,114,105,116,101,0,0,112,119,114,105,116,101,54,52,0,0,0,0,0,0,0,0,102,99,104,109,111,100,0,0,102,97,108,108,111,99,97,116,101,0,0,0,0,0,0,0,117,110,108,105,110,107,0,0,111,112,101,110,68,105,114,101,99,116,111,114,121,0,0,0,109,107,100,105,114,0,0,0,114,109,100,105,114,0,0,0,102,99,104,111,119,110,0,0,109,109,97,112,0,0,0,0,109,117,110,109,97,112,0,0,109,114,101,109,97,112,0,0,103,101,116,112,97,103,101,115,105,122,101,0,0,0,0,0,97,116,116,101,109,112,116,32,116,111,32,111,112,101,110,32,34,37,115,34,32,97,115,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,37,100,0,0,0,0,0,0,47,100,101,118,47,110,117,108,108,0,0,0,0,0,0,0,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,48,49,50,51,52,53,54,55,56,57,0,0,37,115,47,101,116,105,108,113,115,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,168,188,0,0,184,188,0,0,200,188,0,0,0,0,0,0,0,0,0,0,47,118,97,114,47,116,109,112,0,0,0,0,0,0,0,0,47,117,115,114,47,116,109,112,0,0,0,0,0,0,0,0,47,116,109,112,0,0,0,0,83,81,76,73,84,69,95,84,77,80,68,73,82,0,0,0,84,77,80,68,73,82,0,0,102,117,108,108,95,102,115,121,110,99,0,0,0,0,0,0,3,0,0,0,73,0,0,0,17,0,0,0,18,0,0,0,31,0,0,0,53,0,0,0,54,0,0,0,68,0,0,0,69,0,0,0,70,0,0,0,32,0,0,0,68,0,0,0,69,0,0,0,0,0,0,0,15,0,0,0,19,0,0,0,58,0,0,0,19,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,47,100,101,118,47,117,114,97,110,100,111,109,0,0,0,0,47,37,115,0,0,0,0,0,102,115,121,110,99,0,0,0,112,115,111,119,0,0,0,0,3,0,0,0,74,0,0,0,17,0,0,0,18,0,0,0,31,0,0,0,53,0,0,0,54,0,0,0,71,0,0,0,72,0,0,0,73,0,0,0,32,0,0,0,68,0,0,0,69,0,0,0,20,0,0,0,15,0,0,0,19,0,0,0,58,0,0,0,19,0,0,0,16,0,0,0,0,0,0,0,37,115,46,108,111,99,107,0,99,97,110,110,111,116,32,102,115,116,97,116,32,100,98,32,102,105,108,101,32,37,115,0,102,105,108,101,32,117,110,108,105,110,107,101,100,32,119,104,105,108,101,32,111,112,101,110,58,32,37,115,0,0,0,0,109,117,108,116,105,112,108,101,32,108,105,110,107,115,32,116,111,32,102,105,108,101,58,32,37,115,0,0,0,0,0,0,102,105,108,101,32,114,101,110,97,109,101,100,32,119,104,105,108,101,32,111,112,101,110,58,32,37,115,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,45,115,104,109,0,0,114,101,97,100,111,110,108,121,95,115,104,109,0,0,0,0,37,0,0,0,0,0,0,0,100,10,1,1,0,0,115,0,4,6,0,0,103,0,1,4,30,0,122,0,4,7,0,0,113,0,4,10,0,0,81,0,4,11,0,0,119,0,4,15,0,0,99,0,0,9,0,0,111,8,0,1,0,2,117,10,0,1,0,0,120,16,0,1,16,1,88,16,0,1,0,4,102,0,1,2,0,0,101,0,1,3,30,0,69,0,1,3,14,0,71,0,1,4,14,0,105,10,1,1,0,0,110,0,0,5,0,0,37,0,0,8,0,0,112,16,0,14,0,1,84,0,2,12,0,0,83,0,2,13,0,0,114,10,3,16,0,0,0,0,0,0,0,0,116,104,115,116,110,100,114,100,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,0,0,0,0,0,0,0,0,45,120,48,0,88,48,0,0,78,97,78,0,0,0,0,0,45,73,110,102,0,0,0,0,43,73,110,102,0,0,0,0,73,110,102,0,0,0,0,0,40,78,85,76,76,41,0,0,68,73,83,65,66,76,69,95,76,70,83,0,0,0,0,0,73,78,84,54,52,95,84,89,80,69,0,0,0,0,0,0,83,89,83,84,69,77,95,77,65,76,76,79,67,0,0,0,84,72,82,69,65,68,83,65,70,69,61,48],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+39192);var tempDoublePtr=Runtime.alignMemory(allocate(12,"i8",ALLOC_STATIC),8);assert(tempDoublePtr%8==0);function copyTempFloat(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3]}function copyTempDouble(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3];HEAP8[tempDoublePtr+4]=HEAP8[ptr+4];HEAP8[tempDoublePtr+5]=HEAP8[ptr+5];HEAP8[tempDoublePtr+6]=HEAP8[ptr+6];HEAP8[tempDoublePtr+7]=HEAP8[ptr+7]}var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can   access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};var ___errno_state=0;function ___setErrNo(value){HEAP32[___errno_state>>2]=value;return value}var PATH={splitPath:(function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)}),normalizeArray:(function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}),normalize:(function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path}),dirname:(function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir}),basename:(function(path){if(path==="/")return"/";var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)}),extname:(function(path){return PATH.splitPath(path)[3]}),join:(function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))}),join2:(function(l,r){return PATH.normalize(l+"/"+r)}),resolve:(function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter((function(p){return!!p})),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."}),relative:(function(from,to){from=PATH.resolve(from).substr(1);to=PATH.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")})};var TTY={ttys:[],init:(function(){}),shutdown:(function(){}),register:(function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)}),stream_ops:{open:(function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}stream.tty=tty;stream.seekable=false}),close:(function(stream){stream.tty.ops.flush(stream.tty)}),flush:(function(stream){stream.tty.ops.flush(stream.tty)}),read:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=stream.tty.ops.get_char(stream.tty)}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.put_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}for(var i=0;i<length;i++){try{stream.tty.ops.put_char(stream.tty,buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})},default_tty_ops:{get_char:(function(tty){if(!tty.input.length){var result=null;if(ENVIRONMENT_IS_NODE){var BUFSIZE=256;var buf=new Buffer(BUFSIZE);var bytesRead=0;var fd=process.stdin.fd;var usingDevice=false;try{fd=fs.openSync("/dev/stdin","r");usingDevice=true}catch(e){}bytesRead=fs.readSync(fd,buf,0,BUFSIZE,null);if(usingDevice){fs.closeSync(fd)}if(bytesRead>0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()}),put_char:(function(tty,val){if(val===null||val===10){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}})},default_tty1_ops:{put_char:(function(tty,val){if(val===null||val===10){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}})}};var MEMFS={ops_table:null,mount:(function(mount){return MEMFS.createNode(null,"/",16384|511,0)}),createNode:(function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node}),getFileDataAsRegularArray:(function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i<node.usedBytes;++i)arr.push(node.contents[i]);return arr}return node.contents}),getFileDataAsTypedArray:(function(node){if(!node.contents)return new Uint8Array;if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)}),expandFileStorage:(function(node,newCapacity){if(node.contents&&node.contents.subarray&&newCapacity>node.contents.length){node.contents=MEMFS.getFileDataAsRegularArray(node);node.usedBytes=node.contents.length}if(!node.contents||node.contents.subarray){var prevCapacity=node.contents?node.contents.buffer.byteLength:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity<CAPACITY_DOUBLING_MAX?2:1.125)|0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return}if(!node.contents&&newCapacity>0)node.contents=[];while(node.contents.length<newCapacity)node.contents.push(0)}),resizeFileStorage:(function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(new ArrayBuffer(newSize));if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length<newSize)node.contents.push(0);node.usedBytes=newSize}),node_ops:{getattr:(function(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.timestamp);attr.mtime=new Date(node.timestamp);attr.ctime=new Date(node.timestamp);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}}),lookup:(function(parent,name){throw FS.genericErrors[ERRNO_CODES.ENOENT]}),mknod:(function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)}),rename:(function(old_node,new_dir,new_name){if(FS.isDir(old_node.mode)){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){for(var i in new_node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}}}delete old_node.parent.contents[old_node.name];old_node.name=new_name;new_dir.contents[new_name]=old_node;old_node.parent=new_dir}),unlink:(function(parent,name){delete parent.contents[name]}),rmdir:(function(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}delete parent.contents[name]}),readdir:(function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries}),symlink:(function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node}),readlink:(function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return node.link})},stream_ops:{read:(function(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);assert(size>=0);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i<size;i++)buffer[offset+i]=contents[position+i]}return size}),write:(function(stream,buffer,offset,length,position,canOwn){if(!length)return 0;var node=stream.node;node.timestamp=Date.now();if(buffer.subarray&&(!node.contents||node.contents.subarray)){if(canOwn){assert(position===0,"canOwn must imply no weird position inside the file");node.contents=buffer.subarray(offset,offset+length);node.usedBytes=length;return length}else if(node.usedBytes===0&&position===0){node.contents=new Uint8Array(buffer.subarray(offset,offset+length));node.usedBytes=length;return length}else if(position+length<=node.usedBytes){node.contents.set(buffer.subarray(offset,offset+length),position);return length}}MEMFS.expandFileStorage(node,position+length);if(node.contents.subarray&&buffer.subarray)node.contents.set(buffer.subarray(offset,offset+length),position);else for(var i=0;i<length;i++){node.contents[position+i]=buffer[offset+i]}node.usedBytes=Math.max(node.usedBytes,position+length);return length}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.usedBytes}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position}),allocate:(function(stream,offset,length){MEMFS.expandFileStorage(stream.node,offset+length);stream.node.usedBytes=Math.max(stream.node.usedBytes,offset+length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}var ptr;var allocated;var contents=stream.node.contents;if(!(flags&2)&&(contents.buffer===buffer||contents.buffer===buffer.buffer)){allocated=false;ptr=contents.byteOffset}else{if(position>0||position+length<stream.node.usedBytes){if(contents.subarray){contents=contents.subarray(position,position+length)}else{contents=Array.prototype.slice.call(contents,position,position+length)}}allocated=true;ptr=_malloc(length);if(!ptr){throw new FS.ErrnoError(ERRNO_CODES.ENOMEM)}buffer.set(contents,ptr)}return{ptr:ptr,allocated:allocated}})}};var IDBFS={dbs:{},indexedDB:(function(){if(typeof indexedDB!=="undefined")return indexedDB;var ret=null;if(typeof window==="object")ret=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;assert(ret,"IDBFS used, but indexedDB not supported");return ret}),DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:(function(mount){return MEMFS.mount.apply(null,arguments)}),syncfs:(function(mount,populate,callback){IDBFS.getLocalSet(mount,(function(err,local){if(err)return callback(err);IDBFS.getRemoteSet(mount,(function(err,remote){if(err)return callback(err);var src=populate?remote:local;var dst=populate?local:remote;IDBFS.reconcile(src,dst,callback)}))}))}),getDB:(function(name,callback){var db=IDBFS.dbs[name];if(db){return callback(null,db)}var req;try{req=IDBFS.indexedDB().open(name,IDBFS.DB_VERSION)}catch(e){return callback(e)}req.onupgradeneeded=(function(e){var db=e.target.result;var transaction=e.target.transaction;var fileStore;if(db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)){fileStore=transaction.objectStore(IDBFS.DB_STORE_NAME)}else{fileStore=db.createObjectStore(IDBFS.DB_STORE_NAME)}if(!fileStore.indexNames.contains("timestamp")){fileStore.createIndex("timestamp","timestamp",{unique:false})}});req.onsuccess=(function(){db=req.result;IDBFS.dbs[name]=db;callback(null,db)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),getLocalSet:(function(mount,callback){var entries={};function isRealDir(p){return p!=="."&&p!==".."}function toAbsolute(root){return(function(p){return PATH.join2(root,p)})}var check=FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));while(check.length){var path=check.pop();var stat;try{stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){check.push.apply(check,FS.readdir(path).filter(isRealDir).map(toAbsolute(path)))}entries[path]={timestamp:stat.mtime}}return callback(null,{type:"local",entries:entries})}),getRemoteSet:(function(mount,callback){var entries={};IDBFS.getDB(mount.mountpoint,(function(err,db){if(err)return callback(err);var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readonly");transaction.onerror=(function(e){callback(this.error);e.preventDefault()});var store=transaction.objectStore(IDBFS.DB_STORE_NAME);var index=store.index("timestamp");index.openKeyCursor().onsuccess=(function(event){var cursor=event.target.result;if(!cursor){return callback(null,{type:"remote",db:db,entries:entries})}entries[cursor.primaryKey]={timestamp:cursor.key};cursor.continue()})}))}),loadLocalEntry:(function(path,callback){var stat,node;try{var lookup=FS.lookupPath(path);node=lookup.node;stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){return callback(null,{timestamp:stat.mtime,mode:stat.mode})}else if(FS.isFile(stat.mode)){node.contents=MEMFS.getFileDataAsTypedArray(node);return callback(null,{timestamp:stat.mtime,mode:stat.mode,contents:node.contents})}else{return callback(new Error("node type not supported"))}}),storeLocalEntry:(function(path,entry,callback){try{if(FS.isDir(entry.mode)){FS.mkdir(path,entry.mode)}else if(FS.isFile(entry.mode)){FS.writeFile(path,entry.contents,{encoding:"binary",canOwn:true})}else{return callback(new Error("node type not supported"))}FS.chmod(path,entry.mode);FS.utime(path,entry.timestamp,entry.timestamp)}catch(e){return callback(e)}callback(null)}),removeLocalEntry:(function(path,callback){try{var lookup=FS.lookupPath(path);var stat=FS.stat(path);if(FS.isDir(stat.mode)){FS.rmdir(path)}else if(FS.isFile(stat.mode)){FS.unlink(path)}}catch(e){return callback(e)}callback(null)}),loadRemoteEntry:(function(store,path,callback){var req=store.get(path);req.onsuccess=(function(event){callback(null,event.target.result)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),storeRemoteEntry:(function(store,path,entry,callback){var req=store.put(entry,path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),removeRemoteEntry:(function(store,path,callback){var req=store.delete(path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),reconcile:(function(src,dst,callback){var total=0;var create=[];Object.keys(src.entries).forEach((function(key){var e=src.entries[key];var e2=dst.entries[key];if(!e2||e.timestamp>e2.timestamp){create.push(key);total++}}));var remove=[];Object.keys(dst.entries).forEach((function(key){var e=dst.entries[key];var e2=src.entries[key];if(!e2){remove.push(key);total++}}));if(!total){return callback(null)}var errored=false;var completed=0;var db=src.type==="remote"?src.db:dst.db;var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readwrite");var store=transaction.objectStore(IDBFS.DB_STORE_NAME);function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=total){return callback(null)}}transaction.onerror=(function(e){done(this.error);e.preventDefault()});create.sort().forEach((function(path){if(dst.type==="local"){IDBFS.loadRemoteEntry(store,path,(function(err,entry){if(err)return done(err);IDBFS.storeLocalEntry(path,entry,done)}))}else{IDBFS.loadLocalEntry(path,(function(err,entry){if(err)return done(err);IDBFS.storeRemoteEntry(store,path,entry,done)}))}}));remove.sort().reverse().forEach((function(path){if(dst.type==="local"){IDBFS.removeLocalEntry(path,done)}else{IDBFS.removeRemoteEntry(store,path,done)}}))})};var NODEFS={isWindows:false,staticInit:(function(){NODEFS.isWindows=!!process.platform.match(/^win/)}),mount:(function(mount){assert(ENVIRONMENT_IS_NODE);return NODEFS.createNode(null,"/",NODEFS.getMode(mount.opts.root),0)}),createNode:(function(parent,name,mode,dev){if(!FS.isDir(mode)&&!FS.isFile(mode)&&!FS.isLink(mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=FS.createNode(parent,name,mode);node.node_ops=NODEFS.node_ops;node.stream_ops=NODEFS.stream_ops;return node}),getMode:(function(path){var stat;try{stat=fs.lstatSync(path);if(NODEFS.isWindows){stat.mode=stat.mode|(stat.mode&146)>>1}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return stat.mode}),realPath:(function(node){var parts=[];while(node.parent!==node){parts.push(node.name);node=node.parent}parts.push(node.mount.opts.root);parts.reverse();return PATH.join.apply(null,parts)}),flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:(function(flags){if(flags in NODEFS.flagsToPermissionStringMap){return NODEFS.flagsToPermissionStringMap[flags]}else{return flags}}),node_ops:{getattr:(function(node){var path=NODEFS.realPath(node);var stat;try{stat=fs.lstatSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(NODEFS.isWindows&&!stat.blksize){stat.blksize=4096}if(NODEFS.isWindows&&!stat.blocks){stat.blocks=(stat.size+stat.blksize-1)/stat.blksize|0}return{dev:stat.dev,ino:stat.ino,mode:stat.mode,nlink:stat.nlink,uid:stat.uid,gid:stat.gid,rdev:stat.rdev,size:stat.size,atime:stat.atime,mtime:stat.mtime,ctime:stat.ctime,blksize:stat.blksize,blocks:stat.blocks}}),setattr:(function(node,attr){var path=NODEFS.realPath(node);try{if(attr.mode!==undefined){fs.chmodSync(path,attr.mode);node.mode=attr.mode}if(attr.timestamp!==undefined){var date=new Date(attr.timestamp);fs.utimesSync(path,date,date)}if(attr.size!==undefined){fs.truncateSync(path,attr.size)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),lookup:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);var mode=NODEFS.getMode(path);return NODEFS.createNode(parent,name,mode)}),mknod:(function(parent,name,mode,dev){var node=NODEFS.createNode(parent,name,mode,dev);var path=NODEFS.realPath(node);try{if(FS.isDir(node.mode)){fs.mkdirSync(path,node.mode)}else{fs.writeFileSync(path,"",{mode:node.mode})}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return node}),rename:(function(oldNode,newDir,newName){var oldPath=NODEFS.realPath(oldNode);var newPath=PATH.join2(NODEFS.realPath(newDir),newName);try{fs.renameSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),unlink:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.unlinkSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),rmdir:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.rmdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readdir:(function(node){var path=NODEFS.realPath(node);try{return fs.readdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),symlink:(function(parent,newName,oldPath){var newPath=PATH.join2(NODEFS.realPath(parent),newName);try{fs.symlinkSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readlink:(function(node){var path=NODEFS.realPath(node);try{path=fs.readlinkSync(path);path=NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root),path);return path}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}})},stream_ops:{open:(function(stream){var path=NODEFS.realPath(stream.node);try{if(FS.isFile(stream.node.mode)){stream.nfd=fs.openSync(path,NODEFS.flagsToPermissionString(stream.flags))}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),close:(function(stream){try{if(FS.isFile(stream.node.mode)&&stream.nfd){fs.closeSync(stream.nfd)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),read:(function(stream,buffer,offset,length,position){if(length===0)return 0;var nbuffer=new Buffer(length);var res;try{res=fs.readSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(res>0){for(var i=0;i<res;i++){buffer[offset+i]=nbuffer[i]}}return res}),write:(function(stream,buffer,offset,length,position){var nbuffer=new Buffer(buffer.subarray(offset,offset+length));var res;try{res=fs.writeSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}return res}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){try{var stat=fs.fstatSync(stream.nfd);position+=stat.size}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};var _stdin=allocate(1,"i32*",ALLOC_STATIC);var _stdout=allocate(1,"i32*",ALLOC_STATIC);var _stderr=allocate(1,"i32*",ALLOC_STATIC);function _fflush(stream){}var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},handleFSError:(function(e){if(!(e instanceof FS.ErrnoError))throw e+" : "+stackTrace();return ___setErrNo(e.errno)}),lookupPath:(function(path,opts){path=PATH.resolve(FS.cwd(),path);opts=opts||{};if(!path)return{path:"",node:null};var defaults={follow_mount:true,recurse_count:0};for(var key in defaults){if(opts[key]===undefined){opts[key]=defaults[key]}}if(opts.recurse_count>8){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}var parts=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),false);var current=FS.root;var current_path="/";for(var i=0;i<parts.length;i++){var islast=i===parts.length-1;if(islast&&opts.parent){break}current=FS.lookupNode(current,parts[i]);current_path=PATH.join2(current_path,parts[i]);if(FS.isMountpoint(current)){if(!islast||islast&&opts.follow_mount){current=current.mounted.root}}if(!islast||opts.follow){var count=0;while(FS.isLink(current.mode)){var link=FS.readlink(current_path);current_path=PATH.resolve(PATH.dirname(current_path),link);var lookup=FS.lookupPath(current_path,{recurse_count:opts.recurse_count});current=lookup.node;if(count++>40){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}}}}return{path:current_path,node:current}}),getPath:(function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}}),hashName:(function(parentid,name){var hash=0;for(var i=0;i<name.length;i++){hash=(hash<<5)-hash+name.charCodeAt(i)|0}return(parentid+hash>>>0)%FS.nameTable.length}),hashAddNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node}),hashRemoveNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}}),lookupNode:(function(parent,name){var err=FS.mayLookup(parent);if(err){throw new FS.ErrnoError(err,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)}),createNode:(function(parent,name,mode,rdev){if(!FS.FSNode){FS.FSNode=(function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev});FS.FSNode.prototype={};var readMode=292|73;var writeMode=146;Object.defineProperties(FS.FSNode.prototype,{read:{get:(function(){return(this.mode&readMode)===readMode}),set:(function(val){val?this.mode|=readMode:this.mode&=~readMode})},write:{get:(function(){return(this.mode&writeMode)===writeMode}),set:(function(val){val?this.mode|=writeMode:this.mode&=~writeMode})},isFolder:{get:(function(){return FS.isDir(this.mode)})},isDevice:{get:(function(){return FS.isChrdev(this.mode)})}})}var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node}),destroyNode:(function(node){FS.hashRemoveNode(node)}),isRoot:(function(node){return node===node.parent}),isMountpoint:(function(node){return!!node.mounted}),isFile:(function(mode){return(mode&61440)===32768}),isDir:(function(mode){return(mode&61440)===16384}),isLink:(function(mode){return(mode&61440)===40960}),isChrdev:(function(mode){return(mode&61440)===8192}),isBlkdev:(function(mode){return(mode&61440)===24576}),isFIFO:(function(mode){return(mode&61440)===4096}),isSocket:(function(mode){return(mode&49152)===49152}),flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:(function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags}),flagsToPermissionString:(function(flag){var accmode=flag&2097155;var perms=["r","w","rw"][accmode];if(flag&512){perms+="w"}return perms}),nodePermissions:(function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return ERRNO_CODES.EACCES}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return ERRNO_CODES.EACCES}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return ERRNO_CODES.EACCES}return 0}),mayLookup:(function(dir){var err=FS.nodePermissions(dir,"x");if(err)return err;if(!dir.node_ops.lookup)return ERRNO_CODES.EACCES;return 0}),mayCreate:(function(dir,name){try{var node=FS.lookupNode(dir,name);return ERRNO_CODES.EEXIST}catch(e){}return FS.nodePermissions(dir,"wx")}),mayDelete:(function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var err=FS.nodePermissions(dir,"wx");if(err){return err}if(isdir){if(!FS.isDir(node.mode)){return ERRNO_CODES.ENOTDIR}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return ERRNO_CODES.EBUSY}}else{if(FS.isDir(node.mode)){return ERRNO_CODES.EISDIR}}return 0}),mayOpen:(function(node,flags){if(!node){return ERRNO_CODES.ENOENT}if(FS.isLink(node.mode)){return ERRNO_CODES.ELOOP}else if(FS.isDir(node.mode)){if((flags&2097155)!==0||flags&512){return ERRNO_CODES.EISDIR}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))}),MAX_OPEN_FDS:4096,nextfd:(function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(ERRNO_CODES.EMFILE)}),getStream:(function(fd){return FS.streams[fd]}),createStream:(function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=(function(){});FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:(function(){return this.node}),set:(function(val){this.node=val})},isRead:{get:(function(){return(this.flags&2097155)!==1})},isWrite:{get:(function(){return(this.flags&2097155)!==0})},isAppend:{get:(function(){return this.flags&1024})}})}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream}),closeStream:(function(fd){FS.streams[fd]=null}),getStreamFromPtr:(function(ptr){return FS.streams[ptr-1]}),getPtrForStream:(function(stream){return stream?stream.fd+1:0}),chrdev_stream_ops:{open:(function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}}),llseek:(function(){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)})},major:(function(dev){return dev>>8}),minor:(function(dev){return dev&255}),makedev:(function(ma,mi){return ma<<8|mi}),registerDevice:(function(dev,ops){FS.devices[dev]={stream_ops:ops}}),getDevice:(function(dev){return FS.devices[dev]}),getMounts:(function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts}),syncfs:(function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}var mounts=FS.getMounts(FS.root.mount);var completed=0;function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=mounts.length){callback(null)}}mounts.forEach((function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)}))}),mount:(function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot}),unmount:(function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach((function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}}));node.mounted=null;var idx=node.mount.mounts.indexOf(mount);assert(idx!==-1);node.mount.mounts.splice(idx,1)}),lookup:(function(parent,name){return parent.node_ops.lookup(parent,name)}),mknod:(function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.mayCreate(parent,name);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.mknod(parent,name,mode,dev)}),create:(function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)}),mkdir:(function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)}),mkdev:(function(path,mode,dev){if(typeof dev==="undefined"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)}),symlink:(function(oldpath,newpath){if(!PATH.resolve(oldpath)){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var newname=PATH.basename(newpath);var err=FS.mayCreate(parent,newname);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.symlink(parent,newname,oldpath)}),rename:(function(old_path,new_path){var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;try{lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!old_dir||!new_dir)throw new FS.ErrnoError(ERRNO_CODES.ENOENT);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(ERRNO_CODES.EXDEV)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}relative=PATH.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var err=FS.mayDelete(old_dir,old_name,isdir);if(err){throw new FS.ErrnoError(err)}err=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(err){throw new FS.ErrnoError(err)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(new_dir!==old_dir){err=FS.nodePermissions(old_dir,"w");if(err){throw new FS.ErrnoError(err)}}try{if(FS.trackingDelegate["willMovePath"]){FS.trackingDelegate["willMovePath"](old_path,new_path)}}catch(e){console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{FS.hashAddNode(old_node)}try{if(FS.trackingDelegate["onMovePath"])FS.trackingDelegate["onMovePath"](old_path,new_path)}catch(e){console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}}),rmdir:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,true);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node.node_ops.readdir){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}return node.node_ops.readdir(node)}),unlink:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,false);if(err){if(err===ERRNO_CODES.EISDIR)err=ERRNO_CODES.EPERM;throw new FS.ErrnoError(err)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.unlink(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readlink:(function(path){var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!link.node_ops.readlink){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return PATH.resolve(FS.getPath(lookup.node.parent),link.node_ops.readlink(link))}),stat:(function(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!node.node_ops.getattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return node.node_ops.getattr(node)}),lstat:(function(path){return FS.stat(path,true)}),chmod:(function(path,mode,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{mode:mode&4095|node.mode&~4095,timestamp:Date.now()})}),lchmod:(function(path,mode){FS.chmod(path,mode,true)}),fchmod:(function(fd,mode){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chmod(stream.node,mode)}),chown:(function(path,uid,gid,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{timestamp:Date.now()})}),lchown:(function(path,uid,gid){FS.chown(path,uid,gid,true)}),fchown:(function(fd,uid,gid){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chown(stream.node,uid,gid)}),truncate:(function(path,len){if(len<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.nodePermissions(node,"w");if(err){throw new FS.ErrnoError(err)}node.node_ops.setattr(node,{size:len,timestamp:Date.now()})}),ftruncate:(function(fd,len){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}FS.truncate(stream.node,len)}),utime:(function(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})}),open:(function(path,flags,mode,fd_start,fd_end){if(path===""){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}flags=typeof flags==="string"?FS.modeStringToFlags(flags):flags;mode=typeof mode==="undefined"?438:mode;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;if(typeof path==="object"){node=path}else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(flags&131072)});node=lookup.node}catch(e){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(ERRNO_CODES.EEXIST)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(FS.isChrdev(node.mode)){flags&=~512}if(!created){var err=FS.mayOpen(node,flags);if(err){throw new FS.ErrnoError(err)}}if(flags&512){FS.truncate(node,0)}flags&=~(128|512);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false},fd_start,fd_end);if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(Module["logReadFiles"]&&!(flags&1)){if(!FS.readFiles)FS.readFiles={};if(!(path in FS.readFiles)){FS.readFiles[path]=1;Module["printErr"]("read file: "+path)}}try{if(FS.trackingDelegate["onOpenFile"]){var trackingFlags=0;if((flags&2097155)!==1){trackingFlags|=FS.tracking.openFlags.READ}if((flags&2097155)!==0){trackingFlags|=FS.tracking.openFlags.WRITE}FS.trackingDelegate["onOpenFile"](path,trackingFlags)}}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: "+e.message)}return stream}),close:(function(stream){try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}}),llseek:(function(stream,offset,whence){if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position}),read:(function(stream,buffer,offset,length,position){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.read){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead}),write:(function(stream,buffer,offset,length,position,canOwn){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.write){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if(stream.flags&1024){FS.llseek(stream,0,2)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;try{if(stream.path&&FS.trackingDelegate["onWriteToFile"])FS.trackingDelegate["onWriteToFile"](stream.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return bytesWritten}),allocate:(function(stream,offset,length){if(offset<0||length<=0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(!FS.isFile(stream.node.mode)&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(!stream.stream_ops.allocate){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}stream.stream_ops.allocate(stream,offset,length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EACCES)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}return stream.stream_ops.mmap(stream,buffer,offset,length,position,prot,flags)}),ioctl:(function(stream,cmd,arg){if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(ERRNO_CODES.ENOTTY)}return stream.stream_ops.ioctl(stream,cmd,arg)}),readFile:(function(path,opts){opts=opts||{};opts.flags=opts.flags||"r";opts.encoding=opts.encoding||"binary";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var ret;var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding==="utf8"){ret=UTF8ArrayToString(buf,0)}else if(opts.encoding==="binary"){ret=buf}FS.close(stream);return ret}),writeFile:(function(path,data,opts){opts=opts||{};opts.flags=opts.flags||"w";opts.encoding=opts.encoding||"utf8";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var stream=FS.open(path,opts.flags,opts.mode);if(opts.encoding==="utf8"){var buf=new Uint8Array(lengthBytesUTF8(data)+1);var actualNumBytes=stringToUTF8Array(data,buf,0,buf.length);FS.write(stream,buf,0,actualNumBytes,0,opts.canOwn)}else if(opts.encoding==="binary"){FS.write(stream,data,0,data.length,0,opts.canOwn)}FS.close(stream)}),cwd:(function(){return FS.currentPath}),chdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});if(!FS.isDir(lookup.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}var err=FS.nodePermissions(lookup.node,"x");if(err){throw new FS.ErrnoError(err)}FS.currentPath=lookup.path}),createDefaultDirectories:(function(){FS.mkdir("/tmp");FS.mkdir("/home");FS.mkdir("/home/web_user")}),createDefaultDevices:(function(){FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:(function(){return 0}),write:(function(){return 0})});FS.mkdev("/dev/null",FS.makedev(1,3));TTY.register(FS.makedev(5,0),TTY.default_tty_ops);TTY.register(FS.makedev(6,0),TTY.default_tty1_ops);FS.mkdev("/dev/tty",FS.makedev(5,0));FS.mkdev("/dev/tty1",FS.makedev(6,0));var random_device;if(typeof crypto!=="undefined"){var randomBuffer=new Uint8Array(1);random_device=(function(){crypto.getRandomValues(randomBuffer);return randomBuffer[0]})}else if(ENVIRONMENT_IS_NODE){random_device=(function(){return require("crypto").randomBytes(1)[0]})}else{random_device=(function(){return Math.random()*256|0})}FS.createDevice("/dev","random",random_device);FS.createDevice("/dev","urandom",random_device);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")}),createStandardStreams:(function(){if(Module["stdin"]){FS.createDevice("/dev","stdin",Module["stdin"])}else{FS.symlink("/dev/tty","/dev/stdin")}if(Module["stdout"]){FS.createDevice("/dev","stdout",null,Module["stdout"])}else{FS.symlink("/dev/tty","/dev/stdout")}if(Module["stderr"]){FS.createDevice("/dev","stderr",null,Module["stderr"])}else{FS.symlink("/dev/tty1","/dev/stderr")}var stdin=FS.open("/dev/stdin","r");HEAP32[_stdin>>2]=FS.getPtrForStream(stdin);assert(stdin.fd===0,"invalid handle for stdin ("+stdin.fd+")");var stdout=FS.open("/dev/stdout","w");HEAP32[_stdout>>2]=FS.getPtrForStream(stdout);assert(stdout.fd===1,"invalid handle for stdout ("+stdout.fd+")");var stderr=FS.open("/dev/stderr","w");HEAP32[_stderr>>2]=FS.getPtrForStream(stderr);assert(stderr.fd===2,"invalid handle for stderr ("+stderr.fd+")")}),ensureErrnoError:(function(){if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.node=node;this.setErrno=(function(errno){this.errno=errno;for(var key in ERRNO_CODES){if(ERRNO_CODES[key]===errno){this.code=key;break}}});this.setErrno(errno);this.message=ERRNO_MESSAGES[errno];if(this.stack)this.stack=demangleAll(this.stack)};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[ERRNO_CODES.ENOENT].forEach((function(code){FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack="<generic error, no stack>"}))}),staticInit:(function(){FS.ensureErrnoError();FS.nameTable=new Array(4096);FS.mount(MEMFS,{},"/");FS.createDefaultDirectories();FS.createDefaultDevices()}),init:(function(input,output,error){assert(!FS.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");FS.init.initialized=true;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()}),quit:(function(){FS.init.initialized=false;for(var i=0;i<FS.streams.length;i++){var stream=FS.streams[i];if(!stream){continue}FS.close(stream)}}),getMode:(function(canRead,canWrite){var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode}),joinPath:(function(parts,forceRelative){var path=PATH.join.apply(null,parts);if(forceRelative&&path[0]=="/")path=path.substr(1);return path}),absolutePath:(function(relative,base){return PATH.resolve(base,relative)}),standardizePath:(function(path){return PATH.normalize(path)}),findObject:(function(path,dontResolveLastLink){var ret=FS.analyzePath(path,dontResolveLastLink);if(ret.exists){return ret.object}else{___setErrNo(ret.error);return null}}),analyzePath:(function(path,dontResolveLastLink){try{var lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});path=lookup.path}catch(e){}var ret={isRoot:false,exists:false,error:0,name:null,path:null,object:null,parentExists:false,parentPath:null,parentObject:null};try{var lookup=FS.lookupPath(path,{parent:true});ret.parentExists=true;ret.parentPath=lookup.path;ret.parentObject=lookup.node;ret.name=PATH.basename(path);lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});ret.exists=true;ret.path=lookup.path;ret.object=lookup.node;ret.name=lookup.node.name;ret.isRoot=lookup.path==="/"}catch(e){ret.error=e.errno}return ret}),createFolder:(function(parent,name,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.mkdir(path,mode)}),createPath:(function(parent,path,canRead,canWrite){parent=typeof parent==="string"?parent:FS.getPath(parent);var parts=path.split("/").reverse();while(parts.length){var part=parts.pop();if(!part)continue;var current=PATH.join2(parent,part);try{FS.mkdir(current)}catch(e){}parent=current}return current}),createFile:(function(parent,name,properties,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.create(path,mode)}),createDataFile:(function(parent,name,data,canRead,canWrite,canOwn){var path=name?PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name):parent;var mode=FS.getMode(canRead,canWrite);var node=FS.create(path,mode);if(data){if(typeof data==="string"){var arr=new Array(data.length);for(var i=0,len=data.length;i<len;++i)arr[i]=data.charCodeAt(i);data=arr}FS.chmod(node,mode|146);var stream=FS.open(node,"w");FS.write(stream,data,0,data.length,0,canOwn);FS.close(stream);FS.chmod(node,mode)}return node}),createDevice:(function(parent,name,input,output){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(!!input,!!output);if(!FS.createDevice.major)FS.createDevice.major=64;var dev=FS.makedev(FS.createDevice.major++,0);FS.registerDevice(dev,{open:(function(stream){stream.seekable=false}),close:(function(stream){if(output&&output.buffer&&output.buffer.length){output(10)}}),read:(function(stream,buffer,offset,length,pos){var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=input()}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){for(var i=0;i<length;i++){try{output(buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})});return FS.mkdev(path,mode,dev)}),createLink:(function(parent,name,target,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);return FS.symlink(target,path)}),forceLoadFile:(function(obj){if(obj.isDevice||obj.isFolder||obj.link||obj.contents)return true;var success=true;if(typeof XMLHttpRequest!=="undefined"){throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.")}else if(Module["read"]){try{obj.contents=intArrayFromString(Module["read"](obj.url),true);obj.usedBytes=obj.contents.length}catch(e){success=false}}else{throw new Error("Cannot load without read() or XMLHttpRequest.")}if(!success)___setErrNo(ERRNO_CODES.EIO);return success}),createLazyFile:(function(parent,name,url,canRead,canWrite){function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_get(idx){if(idx>this.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=(function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}});var lazyArray=this;lazyArray.setDataGetter((function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]}));this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperty(lazyArray,"length",{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._length})});Object.defineProperty(lazyArray,"chunkSize",{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize})});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperty(node,"usedBytes",{get:(function(){return this.contents.length})});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach((function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return fn.apply(null,arguments)}}));stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);assert(size>=0);if(contents.slice){for(var i=0;i<size;i++){buffer[offset+i]=contents[position+i]}}else{for(var i=0;i<size;i++){buffer[offset+i]=contents.get(position+i)}}return size};node.stream_ops=stream_ops;return node}),createPreloadedFile:(function(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn){Browser.init();var fullname=name?PATH.resolve(PATH.join2(parent,name)):parent;function processData(byteArray){function finish(byteArray){if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency("cp "+fullname)}var handled=false;Module["preloadPlugins"].forEach((function(plugin){if(handled)return;if(plugin["canHandle"](fullname)){plugin["handle"](byteArray,fullname,finish,(function(){if(onerror)onerror();removeRunDependency("cp "+fullname)}));handled=true}}));if(!handled)finish(byteArray)}addRunDependency("cp "+fullname);if(typeof url=="string"){Browser.asyncLoad(url,(function(byteArray){processData(byteArray)}),onerror)}else{processData(url)}}),indexedDB:(function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}),DB_NAME:(function(){return"EM_FS_"+window.location.pathname}),DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=function openRequest_onupgradeneeded(){console.log("creating db");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=function putRequest_onsuccess(){ok++;if(ok+fail==total)finish()};putRequest.onerror=function putRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror}),loadFilesFromDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var getRequest=files.get(path);getRequest.onsuccess=function getRequest_onsuccess(){if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=function getRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror})};function _lseek(fildes,offset,whence){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{return FS.llseek(stream,offset,whence)}catch(e){FS.handleFSError(e);return-1}}Module["_i64Subtract"]=_i64Subtract;var _DtoILow=true;function ___assert_fail(condition,filename,line,func){ABORT=true;throw"Assertion failed: "+Pointer_stringify(condition)+", at: "+[filename?Pointer_stringify(filename):"unknown filename",line,func?Pointer_stringify(func):"unknown function"]+" at "+stackTrace()}Module["_bitshift64Ashr"]=_bitshift64Ashr;var DLFCN={error:null,errorMsg:null,loadedLibs:{},loadedLibNames:{}};function _dlsym(handle,symbol){symbol="_"+Pointer_stringify(symbol);if(!DLFCN.loadedLibs[handle]){DLFCN.errorMsg="Tried to dlsym() from an unopened handle: "+handle;return 0}else{var lib=DLFCN.loadedLibs[handle];if(lib.cached_functions.hasOwnProperty(symbol)){return lib.cached_functions[symbol]}else{if(!lib.module.hasOwnProperty(symbol)){DLFCN.errorMsg='Tried to lookup unknown symbol "'+symbol+'" in dynamic lib: '+lib.name;return 0}else{var result=lib.module[symbol];if(typeof result=="function"){result=lib.module.SYMBOL_TABLE[symbol];assert(result);lib.cached_functions=result}return result}}}}Module["_memset"]=_memset;var _BDtoILow=true;Module["_strlen"]=_strlen;Module["_strcat"]=_strcat;function _strerror_r(errnum,strerrbuf,buflen){if(errnum in ERRNO_MESSAGES){if(ERRNO_MESSAGES[errnum].length>buflen-1){return ___setErrNo(ERRNO_CODES.ERANGE)}else{var msg=ERRNO_MESSAGES[errnum];writeAsciiToMemory(msg,strerrbuf);return 0}}else{return ___setErrNo(ERRNO_CODES.EINVAL)}}function _strerror(errnum){if(!_strerror.buffer)_strerror.buffer=_malloc(256);_strerror_r(errnum,_strerror.buffer,256);return _strerror.buffer}var _DtoIHigh=true;Module["_bitshift64Shl"]=_bitshift64Shl;function _abort(){Module["abort"]()}function _usleep(useconds){var msec=useconds/1e3;if((ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&self["performance"]&&self["performance"]["now"]){var start=self["performance"]["now"]();while(self["performance"]["now"]()-start<msec){}}else{var start=Date.now();while(Date.now()-start<msec){}}return 0}function _sleep(seconds){return _usleep(seconds*1e6)}function _close(fildes){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{FS.close(stream);return 0}catch(e){FS.handleFSError(e);return-1}}function _access(path,amode){path=Pointer_stringify(path);if(amode&~7){___setErrNo(ERRNO_CODES.EINVAL);return-1}var node;try{var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}catch(e){FS.handleFSError(e);return-1}var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){___setErrNo(ERRNO_CODES.EACCES);return-1}return 0}function _unlink(path){path=Pointer_stringify(path);try{FS.unlink(path);return 0}catch(e){FS.handleFSError(e);return-1}}Module["_i64Add"]=_i64Add;function _open(path,oflag,varargs){var mode=HEAP32[varargs>>2];path=Pointer_stringify(path);try{var stream=FS.open(path,oflag,mode);return stream.fd}catch(e){FS.handleFSError(e);return-1}}function _getuid(){return 0}function _geteuid(){return _getuid.apply(null,arguments)}function _mknod(path,mode,dev){path=Pointer_stringify(path);switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:___setErrNo(ERRNO_CODES.EINVAL);return-1}try{FS.mknod(path,mode,dev);return 0}catch(e){FS.handleFSError(e);return-1}}function _mkdir(path,mode){path=Pointer_stringify(path);path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);try{FS.mkdir(path,mode,0);return 0}catch(e){FS.handleFSError(e);return-1}}function _mkport(){throw"TODO"}var SOCKFS={mount:(function(mount){Module["websocket"]=Module["websocket"]&&"object"===typeof Module["websocket"]?Module["websocket"]:{};Module["websocket"]._callbacks={};Module["websocket"]["on"]=(function(event,callback){if("function"===typeof callback){this._callbacks[event]=callback}return this});Module["websocket"].emit=(function(event,param){if("function"===typeof this._callbacks[event]){this._callbacks[event].call(this,param)}});return FS.createNode(null,"/",16384|511,0)}),createSocket:(function(family,type,protocol){var streaming=type==1;if(protocol){assert(streaming==(protocol==6))}var sock={family:family,type:type,protocol:protocol,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops};var name=SOCKFS.nextname();var node=FS.createNode(SOCKFS.root,name,49152,0);node.sock=sock;var stream=FS.createStream({path:name,node:node,flags:FS.modeStringToFlags("r+"),seekable:false,stream_ops:SOCKFS.stream_ops});sock.stream=stream;return sock}),getSocket:(function(fd){var stream=FS.getStream(fd);if(!stream||!FS.isSocket(stream.node.mode)){return null}return stream.node.sock}),stream_ops:{poll:(function(stream){var sock=stream.node.sock;return sock.sock_ops.poll(sock)}),ioctl:(function(stream,request,varargs){var sock=stream.node.sock;return sock.sock_ops.ioctl(sock,request,varargs)}),read:(function(stream,buffer,offset,length,position){var sock=stream.node.sock;var msg=sock.sock_ops.recvmsg(sock,length);if(!msg){return 0}buffer.set(msg.buffer,offset);return msg.buffer.length}),write:(function(stream,buffer,offset,length,position){var sock=stream.node.sock;return sock.sock_ops.sendmsg(sock,buffer,offset,length)}),close:(function(stream){var sock=stream.node.sock;sock.sock_ops.close(sock)})},nextname:(function(){if(!SOCKFS.nextname.current){SOCKFS.nextname.current=0}return"socket["+SOCKFS.nextname.current++ +"]"}),websocket_sock_ops:{createPeer:(function(sock,addr,port){var ws;if(typeof addr==="object"){ws=addr;addr=null;port=null}if(ws){if(ws._socket){addr=ws._socket.remoteAddress;port=ws._socket.remotePort}else{var result=/ws[s]?:\/\/([^:]+):(\d+)/.exec(ws.url);if(!result){throw new Error("WebSocket URL must be in the format ws(s)://address:port")}addr=result[1];port=parseInt(result[2],10)}}else{try{var runtimeConfig=Module["websocket"]&&"object"===typeof Module["websocket"];var url="ws:#".replace("#","//");if(runtimeConfig){if("string"===typeof Module["websocket"]["url"]){url=Module["websocket"]["url"]}}if(url==="ws://"||url==="wss://"){var parts=addr.split("/");url=url+parts[0]+":"+port+"/"+parts.slice(1).join("/")}var subProtocols="binary";if(runtimeConfig){if("string"===typeof Module["websocket"]["subprotocol"]){subProtocols=Module["websocket"]["subprotocol"]}}subProtocols=subProtocols.replace(/^ +| +$/g,"").split(/ *, */);var opts=ENVIRONMENT_IS_NODE?{"protocol":subProtocols.toString()}:subProtocols;var WebSocket=ENVIRONMENT_IS_NODE?require("ws"):window["WebSocket"];ws=new WebSocket(url,opts);ws.binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EHOSTUNREACH)}}var peer={addr:addr,port:port,socket:ws,dgram_send_queue:[]};SOCKFS.websocket_sock_ops.addPeer(sock,peer);SOCKFS.websocket_sock_ops.handlePeerEvents(sock,peer);if(sock.type===2&&typeof sock.sport!=="undefined"){peer.dgram_send_queue.push(new Uint8Array([255,255,255,255,"p".charCodeAt(0),"o".charCodeAt(0),"r".charCodeAt(0),"t".charCodeAt(0),(sock.sport&65280)>>8,sock.sport&255]))}return peer}),getPeer:(function(sock,addr,port){return sock.peers[addr+":"+port]}),addPeer:(function(sock,peer){sock.peers[peer.addr+":"+peer.port]=peer}),removePeer:(function(sock,peer){delete sock.peers[peer.addr+":"+peer.port]}),handlePeerEvents:(function(sock,peer){var first=true;var handleOpen=(function(){Module["websocket"].emit("open",sock.stream.fd);try{var queued=peer.dgram_send_queue.shift();while(queued){peer.socket.send(queued);queued=peer.dgram_send_queue.shift()}}catch(e){peer.socket.close()}});function handleMessage(data){assert(typeof data!=="string"&&data.byteLength!==undefined);data=new Uint8Array(data);var wasfirst=first;first=false;if(wasfirst&&data.length===10&&data[0]===255&&data[1]===255&&data[2]===255&&data[3]===255&&data[4]==="p".charCodeAt(0)&&data[5]==="o".charCodeAt(0)&&data[6]==="r".charCodeAt(0)&&data[7]==="t".charCodeAt(0)){var newport=data[8]<<8|data[9];SOCKFS.websocket_sock_ops.removePeer(sock,peer);peer.port=newport;SOCKFS.websocket_sock_ops.addPeer(sock,peer);return}sock.recv_queue.push({addr:peer.addr,port:peer.port,data:data});Module["websocket"].emit("message",sock.stream.fd)}if(ENVIRONMENT_IS_NODE){peer.socket.on("open",handleOpen);peer.socket.on("message",(function(data,flags){if(!flags.binary){return}handleMessage((new Uint8Array(data)).buffer)}));peer.socket.on("close",(function(){Module["websocket"].emit("close",sock.stream.fd)}));peer.socket.on("error",(function(error){sock.error=ERRNO_CODES.ECONNREFUSED;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])}))}else{peer.socket.onopen=handleOpen;peer.socket.onclose=(function(){Module["websocket"].emit("close",sock.stream.fd)});peer.socket.onmessage=function peer_socket_onmessage(event){handleMessage(event.data)};peer.socket.onerror=(function(error){sock.error=ERRNO_CODES.ECONNREFUSED;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])})}}),poll:(function(sock){if(sock.type===1&&sock.server){return sock.pending.length?64|1:0}var mask=0;var dest=sock.type===1?SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport):null;if(sock.recv_queue.length||!dest||dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=64|1}if(!dest||dest&&dest.socket.readyState===dest.socket.OPEN){mask|=4}if(dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=16}return mask}),ioctl:(function(sock,request,arg){switch(request){case 21531:var bytes=0;if(sock.recv_queue.length){bytes=sock.recv_queue[0].data.length}HEAP32[arg>>2]=bytes;return 0;default:return ERRNO_CODES.EINVAL}}),close:(function(sock){if(sock.server){try{sock.server.close()}catch(e){}sock.server=null}var peers=Object.keys(sock.peers);for(var i=0;i<peers.length;i++){var peer=sock.peers[peers[i]];try{peer.socket.close()}catch(e){}SOCKFS.websocket_sock_ops.removePeer(sock,peer)}return 0}),bind:(function(sock,addr,port){if(typeof sock.saddr!=="undefined"||typeof sock.sport!=="undefined"){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}sock.saddr=addr;sock.sport=port||_mkport();if(sock.type===2){if(sock.server){sock.server.close();sock.server=null}try{sock.sock_ops.listen(sock,0)}catch(e){if(!(e instanceof FS.ErrnoError))throw e;if(e.errno!==ERRNO_CODES.EOPNOTSUPP)throw e}}}),connect:(function(sock,addr,port){if(sock.server){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}if(typeof sock.daddr!=="undefined"&&typeof sock.dport!=="undefined"){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(dest){if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(ERRNO_CODES.EALREADY)}else{throw new FS.ErrnoError(ERRNO_CODES.EISCONN)}}}var peer=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port);sock.daddr=peer.addr;sock.dport=peer.port;throw new FS.ErrnoError(ERRNO_CODES.EINPROGRESS)}),listen:(function(sock,backlog){if(!ENVIRONMENT_IS_NODE){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}if(sock.server){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var WebSocketServer=require("ws").Server;var host=sock.saddr;sock.server=new WebSocketServer({host:host,port:sock.sport});Module["websocket"].emit("listen",sock.stream.fd);sock.server.on("connection",(function(ws){if(sock.type===1){var newsock=SOCKFS.createSocket(sock.family,sock.type,sock.protocol);var peer=SOCKFS.websocket_sock_ops.createPeer(newsock,ws);newsock.daddr=peer.addr;newsock.dport=peer.port;sock.pending.push(newsock);Module["websocket"].emit("connection",newsock.stream.fd)}else{SOCKFS.websocket_sock_ops.createPeer(sock,ws);Module["websocket"].emit("connection",sock.stream.fd)}}));sock.server.on("closed",(function(){Module["websocket"].emit("close",sock.stream.fd);sock.server=null}));sock.server.on("error",(function(error){sock.error=ERRNO_CODES.EHOSTUNREACH;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"EHOSTUNREACH: Host is unreachable"])}))}),accept:(function(listensock){if(!listensock.server){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var newsock=listensock.pending.shift();newsock.stream.flags=listensock.stream.flags;return newsock}),getname:(function(sock,peer){var addr,port;if(peer){if(sock.daddr===undefined||sock.dport===undefined){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}addr=sock.daddr;port=sock.dport}else{addr=sock.saddr||0;port=sock.sport||0}return{addr:addr,port:port}}),sendmsg:(function(sock,buffer,offset,length,addr,port){if(sock.type===2){if(addr===undefined||port===undefined){addr=sock.daddr;port=sock.dport}if(addr===undefined||port===undefined){throw new FS.ErrnoError(ERRNO_CODES.EDESTADDRREQ)}}else{addr=sock.daddr;port=sock.dport}var dest=SOCKFS.websocket_sock_ops.getPeer(sock,addr,port);if(sock.type===1){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}else if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}var data;if(buffer instanceof Array||buffer instanceof ArrayBuffer){data=buffer.slice(offset,offset+length)}else{data=buffer.buffer.slice(buffer.byteOffset+offset,buffer.byteOffset+offset+length)}if(sock.type===2){if(!dest||dest.socket.readyState!==dest.socket.OPEN){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){dest=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port)}dest.dgram_send_queue.push(data);return length}}try{dest.socket.send(data);return length}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}}),recvmsg:(function(sock,length){if(sock.type===1&&sock.server){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}var queued=sock.recv_queue.shift();if(!queued){if(sock.type===1){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(!dest){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}else if(dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){return null}else{throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}else{throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}var queuedLength=queued.data.byteLength||queued.data.length;var queuedOffset=queued.data.byteOffset||0;var queuedBuffer=queued.data.buffer||queued.data;var bytesRead=Math.min(length,queuedLength);var res={buffer:new Uint8Array(queuedBuffer,queuedOffset,bytesRead),addr:queued.addr,port:queued.port};if(sock.type===1&&bytesRead<queuedLength){var bytesRemaining=queuedLength-bytesRead;queued.data=new Uint8Array(queuedBuffer,queuedOffset+bytesRead,bytesRemaining);sock.recv_queue.unshift(queued)}return res})}};function _send(fd,buf,len,flags){var sock=SOCKFS.getSocket(fd);if(!sock){___setErrNo(ERRNO_CODES.EBADF);return-1}return _write(fd,buf,len)}function _pwrite(fildes,buf,nbyte,offset){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.write(stream,slab,buf,nbyte,offset)}catch(e){FS.handleFSError(e);return-1}}function _write(fildes,buf,nbyte){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.write(stream,slab,buf,nbyte)}catch(e){FS.handleFSError(e);return-1}}var _SItoD=true;function _chmod(path,mode,dontResolveLastLink){path=typeof path!=="string"?Pointer_stringify(path):path;try{FS.chmod(path,mode);return 0}catch(e){FS.handleFSError(e);return-1}}function _fchmod(fildes,mode){try{FS.fchmod(fildes,mode);return 0}catch(e){FS.handleFSError(e);return-1}}function _emscripten_set_main_loop_timing(mode,value){Browser.mainLoop.timingMode=mode;Browser.mainLoop.timingValue=value;if(!Browser.mainLoop.func){console.error("emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.");return 1}if(mode==0){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler(){setTimeout(Browser.mainLoop.runner,value)};Browser.mainLoop.method="timeout"}else if(mode==1){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler(){Browser.requestAnimationFrame(Browser.mainLoop.runner)};Browser.mainLoop.method="rAF"}return 0}function _emscripten_set_main_loop(func,fps,simulateInfiniteLoop,arg,noSetTiming){Module["noExitRuntime"]=true;assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.");Browser.mainLoop.func=func;Browser.mainLoop.arg=arg;var thisMainLoopId=Browser.mainLoop.currentlyRunningMainloop;Browser.mainLoop.runner=function Browser_mainLoop_runner(){if(ABORT)return;if(Browser.mainLoop.queue.length>0){var start=Date.now();var blocker=Browser.mainLoop.queue.shift();blocker.func(blocker.arg);if(Browser.mainLoop.remainingBlockers){var remaining=Browser.mainLoop.remainingBlockers;var next=remaining%1==0?remaining-1:Math.floor(remaining);if(blocker.counted){Browser.mainLoop.remainingBlockers=next}else{next=next+.5;Browser.mainLoop.remainingBlockers=(8*remaining+next)/9}}console.log('main loop blocker "'+blocker.name+'" took '+(Date.now()-start)+" ms");Browser.mainLoop.updateStatus();setTimeout(Browser.mainLoop.runner,0);return}if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0;if(Browser.mainLoop.timingMode==1&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0){Browser.mainLoop.scheduler();return}if(Browser.mainLoop.method==="timeout"&&Module.ctx){Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!");Browser.mainLoop.method=""}Browser.mainLoop.runIter((function(){if(typeof arg!=="undefined"){Runtime.dynCall("vi",func,[arg])}else{Runtime.dynCall("v",func)}}));if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;if(typeof SDL==="object"&&SDL.audio&&SDL.audio.queueNewAudioData)SDL.audio.queueNewAudioData();Browser.mainLoop.scheduler()};if(!noSetTiming){if(fps&&fps>0)_emscripten_set_main_loop_timing(0,1e3/fps);else _emscripten_set_main_loop_timing(1,1);Browser.mainLoop.scheduler()}if(simulateInfiniteLoop){throw"SimulateInfiniteLoop"}}var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:(function(){Browser.mainLoop.scheduler=null;Browser.mainLoop.currentlyRunningMainloop++}),resume:(function(){Browser.mainLoop.currentlyRunningMainloop++;var timingMode=Browser.mainLoop.timingMode;var timingValue=Browser.mainLoop.timingValue;var func=Browser.mainLoop.func;Browser.mainLoop.func=null;_emscripten_set_main_loop(func,0,false,Browser.mainLoop.arg,true);_emscripten_set_main_loop_timing(timingMode,timingValue);Browser.mainLoop.scheduler()}),updateStatus:(function(){if(Module["setStatus"]){var message=Module["statusMessage"]||"Please wait...";var remaining=Browser.mainLoop.remainingBlockers;var expected=Browser.mainLoop.expectedBlockers;if(remaining){if(remaining<expected){Module["setStatus"](message+" ("+(expected-remaining)+"/"+expected+")")}else{Module["setStatus"](message)}}else{Module["setStatus"]("")}}}),runIter:(function(func){if(ABORT)return;if(Module["preMainLoop"]){var preRet=Module["preMainLoop"]();if(preRet===false){return}}try{func()}catch(e){if(e instanceof ExitStatus){return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}if(Module["postMainLoop"])Module["postMainLoop"]()})},isFullScreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:(function(){if(!Module["preloadPlugins"])Module["preloadPlugins"]=[];if(Browser.initted)return;Browser.initted=true;try{new Blob;Browser.hasBlobConstructor=true}catch(e){Browser.hasBlobConstructor=false;console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Browser.BlobBuilder=typeof MozBlobBuilder!="undefined"?MozBlobBuilder:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:!Browser.hasBlobConstructor?console.log("warning: no BlobBuilder"):null;Browser.URLObject=typeof window!="undefined"?window.URL?window.URL:window.webkitURL:undefined;if(!Module.noImageDecoding&&typeof Browser.URLObject==="undefined"){console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");Module.noImageDecoding=true}var imagePlugin={};imagePlugin["canHandle"]=function imagePlugin_canHandle(name){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(name)};imagePlugin["handle"]=function imagePlugin_handle(byteArray,name,onload,onerror){var b=null;if(Browser.hasBlobConstructor){try{b=new Blob([byteArray],{type:Browser.getMimetype(name)});if(b.size!==byteArray.length){b=new Blob([(new Uint8Array(byteArray)).buffer],{type:Browser.getMimetype(name)})}}catch(e){Runtime.warnOnce("Blob constructor present but fails: "+e+"; falling back to blob builder")}}if(!b){var bb=new Browser.BlobBuilder;bb.append((new Uint8Array(byteArray)).buffer);b=bb.getBlob()}var url=Browser.URLObject.createObjectURL(b);assert(typeof url=="string","createObjectURL must return a url as a string");var img=new Image;img.onload=function img_onload(){assert(img.complete,"Image "+name+" could not be decoded");var canvas=document.createElement("canvas");canvas.width=img.width;canvas.height=img.height;var ctx=canvas.getContext("2d");ctx.drawImage(img,0,0);Module["preloadedImages"][name]=canvas;Browser.URLObject.revokeObjectURL(url);if(onload)onload(byteArray)};img.onerror=function img_onerror(event){console.log("Image "+url+" could not be decoded");if(onerror)onerror()};img.src=url};Module["preloadPlugins"].push(imagePlugin);var audioPlugin={};audioPlugin["canHandle"]=function audioPlugin_canHandle(name){return!Module.noAudioDecoding&&name.substr(-4)in{".ogg":1,".wav":1,".mp3":1}};audioPlugin["handle"]=function audioPlugin_handle(byteArray,name,onload,onerror){var done=false;function finish(audio){if(done)return;done=true;Module["preloadedAudios"][name]=audio;if(onload)onload(byteArray)}function fail(){if(done)return;done=true;Module["preloadedAudios"][name]=new Audio;if(onerror)onerror()}if(Browser.hasBlobConstructor){try{var b=new Blob([byteArray],{type:Browser.getMimetype(name)})}catch(e){return fail()}var url=Browser.URLObject.createObjectURL(b);assert(typeof url=="string","createObjectURL must return a url as a string");var audio=new Audio;audio.addEventListener("canplaythrough",(function(){finish(audio)}),false);audio.onerror=function audio_onerror(event){if(done)return;console.log("warning: browser could not fully decode audio "+name+", trying slower base64 approach");function encode64(data){var BASE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var PAD="=";var ret="";var leftchar=0;var leftbits=0;for(var i=0;i<data.length;i++){leftchar=leftchar<<8|data[i];leftbits+=8;while(leftbits>=6){var curr=leftchar>>leftbits-6&63;leftbits-=6;ret+=BASE[curr]}}if(leftbits==2){ret+=BASE[(leftchar&3)<<4];ret+=PAD+PAD}else if(leftbits==4){ret+=BASE[(leftchar&15)<<2];ret+=PAD}return ret}audio.src="data:audio/x-"+name.substr(-3)+";base64,"+encode64(byteArray);finish(audio)};audio.src=url;Browser.safeSetTimeout((function(){finish(audio)}),1e4)}else{return fail()}};Module["preloadPlugins"].push(audioPlugin);var canvas=Module["canvas"];function pointerLockChange(){Browser.pointerLock=document["pointerLockElement"]===canvas||document["mozPointerLockElement"]===canvas||document["webkitPointerLockElement"]===canvas||document["msPointerLockElement"]===canvas}if(canvas){canvas.requestPointerLock=canvas["requestPointerLock"]||canvas["mozRequestPointerLock"]||canvas["webkitRequestPointerLock"]||canvas["msRequestPointerLock"]||(function(){});canvas.exitPointerLock=document["exitPointerLock"]||document["mozExitPointerLock"]||document["webkitExitPointerLock"]||document["msExitPointerLock"]||(function(){});canvas.exitPointerLock=canvas.exitPointerLock.bind(document);document.addEventListener("pointerlockchange",pointerLockChange,false);document.addEventListener("mozpointerlockchange",pointerLockChange,false);document.addEventListener("webkitpointerlockchange",pointerLockChange,false);document.addEventListener("mspointerlockchange",pointerLockChange,false);if(Module["elementPointerLock"]){canvas.addEventListener("click",(function(ev){if(!Browser.pointerLock&&canvas.requestPointerLock){canvas.requestPointerLock();ev.preventDefault()}}),false)}}}),createContext:(function(canvas,useWebGL,setInModule,webGLContextAttributes){if(useWebGL&&Module.ctx&&canvas==Module.canvas)return Module.ctx;var ctx;var contextHandle;if(useWebGL){var contextAttributes={antialias:false,alpha:false};if(webGLContextAttributes){for(var attribute in webGLContextAttributes){contextAttributes[attribute]=webGLContextAttributes[attribute]}}contextHandle=GL.createContext(canvas,contextAttributes);if(contextHandle){ctx=GL.getContext(contextHandle).GLctx}canvas.style.backgroundColor="black"}else{ctx=canvas.getContext("2d")}if(!ctx)return null;if(setInModule){if(!useWebGL)assert(typeof GLctx==="undefined","cannot set in module if GLctx is used, but we are a non-GL context that would replace it");Module.ctx=ctx;if(useWebGL)GL.makeContextCurrent(contextHandle);Module.useWebGL=useWebGL;Browser.moduleContextCreatedCallbacks.forEach((function(callback){callback()}));Browser.init()}return ctx}),destroyContext:(function(canvas,useWebGL,setInModule){}),fullScreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullScreen:(function(lockPointer,resizeCanvas,vrDevice){Browser.lockPointer=lockPointer;Browser.resizeCanvas=resizeCanvas;Browser.vrDevice=vrDevice;if(typeof Browser.lockPointer==="undefined")Browser.lockPointer=true;if(typeof Browser.resizeCanvas==="undefined")Browser.resizeCanvas=false;if(typeof Browser.vrDevice==="undefined")Browser.vrDevice=null;var canvas=Module["canvas"];function fullScreenChange(){Browser.isFullScreen=false;var canvasContainer=canvas.parentNode;if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvasContainer){canvas.cancelFullScreen=document["cancelFullScreen"]||document["mozCancelFullScreen"]||document["webkitCancelFullScreen"]||document["msExitFullscreen"]||document["exitFullscreen"]||(function(){});canvas.cancelFullScreen=canvas.cancelFullScreen.bind(document);if(Browser.lockPointer)canvas.requestPointerLock();Browser.isFullScreen=true;if(Browser.resizeCanvas)Browser.setFullScreenCanvasSize()}else{canvasContainer.parentNode.insertBefore(canvas,canvasContainer);canvasContainer.parentNode.removeChild(canvasContainer);if(Browser.resizeCanvas)Browser.setWindowedCanvasSize()}if(Module["onFullScreen"])Module["onFullScreen"](Browser.isFullScreen);Browser.updateCanvasDimensions(canvas)}if(!Browser.fullScreenHandlersInstalled){Browser.fullScreenHandlersInstalled=true;document.addEventListener("fullscreenchange",fullScreenChange,false);document.addEventListener("mozfullscreenchange",fullScreenChange,false);document.addEventListener("webkitfullscreenchange",fullScreenChange,false);document.addEventListener("MSFullscreenChange",fullScreenChange,false)}var canvasContainer=document.createElement("div");canvas.parentNode.insertBefore(canvasContainer,canvas);canvasContainer.appendChild(canvas);canvasContainer.requestFullScreen=canvasContainer["requestFullScreen"]||canvasContainer["mozRequestFullScreen"]||canvasContainer["msRequestFullscreen"]||(canvasContainer["webkitRequestFullScreen"]?(function(){canvasContainer["webkitRequestFullScreen"](Element["ALLOW_KEYBOARD_INPUT"])}):null);if(vrDevice){canvasContainer.requestFullScreen({vrDisplay:vrDevice})}else{canvasContainer.requestFullScreen()}}),nextRAF:0,fakeRequestAnimationFrame:(function(func){var now=Date.now();if(Browser.nextRAF===0){Browser.nextRAF=now+1e3/60}else{while(now+2>=Browser.nextRAF){Browser.nextRAF+=1e3/60}}var delay=Math.max(Browser.nextRAF-now,0);setTimeout(func,delay)}),requestAnimationFrame:function requestAnimationFrame(func){if(typeof window==="undefined"){Browser.fakeRequestAnimationFrame(func)}else{if(!window.requestAnimationFrame){window.requestAnimationFrame=window["requestAnimationFrame"]||window["mozRequestAnimationFrame"]||window["webkitRequestAnimationFrame"]||window["msRequestAnimationFrame"]||window["oRequestAnimationFrame"]||Browser.fakeRequestAnimationFrame}window.requestAnimationFrame(func)}},safeCallback:(function(func){return(function(){if(!ABORT)return func.apply(null,arguments)})}),allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:(function(){Browser.allowAsyncCallbacks=false}),resumeAsyncCallbacks:(function(){Browser.allowAsyncCallbacks=true;if(Browser.queuedAsyncCallbacks.length>0){var callbacks=Browser.queuedAsyncCallbacks;Browser.queuedAsyncCallbacks=[];callbacks.forEach((function(func){func()}))}}),safeRequestAnimationFrame:(function(func){return Browser.requestAnimationFrame((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}else{Browser.queuedAsyncCallbacks.push(func)}}))}),safeSetTimeout:(function(func,timeout){Module["noExitRuntime"]=true;return setTimeout((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}else{Browser.queuedAsyncCallbacks.push(func)}}),timeout)}),safeSetInterval:(function(func,timeout){Module["noExitRuntime"]=true;return setInterval((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}}),timeout)}),getMimetype:(function(name){return{"jpg":"image/jpeg","jpeg":"image/jpeg","png":"image/png","bmp":"image/bmp","ogg":"audio/ogg","wav":"audio/wav","mp3":"audio/mpeg"}[name.substr(name.lastIndexOf(".")+1)]}),getUserMedia:(function(func){if(!window.getUserMedia){window.getUserMedia=navigator["getUserMedia"]||navigator["mozGetUserMedia"]}window.getUserMedia(func)}),getMovementX:(function(event){return event["movementX"]||event["mozMovementX"]||event["webkitMovementX"]||0}),getMovementY:(function(event){return event["movementY"]||event["mozMovementY"]||event["webkitMovementY"]||0}),getMouseWheelDelta:(function(event){var delta=0;switch(event.type){case"DOMMouseScroll":delta=event.detail;break;case"mousewheel":delta=event.wheelDelta;break;case"wheel":delta=event["deltaY"];break;default:throw"unrecognized mouse wheel event: "+event.type}return delta}),mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:(function(event){if(Browser.pointerLock){if(event.type!="mousemove"&&"mozMovementX"in event){Browser.mouseMovementX=Browser.mouseMovementY=0}else{Browser.mouseMovementX=Browser.getMovementX(event);Browser.mouseMovementY=Browser.getMovementY(event)}if(typeof SDL!="undefined"){Browser.mouseX=SDL.mouseX+Browser.mouseMovementX;Browser.mouseY=SDL.mouseY+Browser.mouseMovementY}else{Browser.mouseX+=Browser.mouseMovementX;Browser.mouseY+=Browser.mouseMovementY}}else{var rect=Module["canvas"].getBoundingClientRect();var cw=Module["canvas"].width;var ch=Module["canvas"].height;var scrollX=typeof window.scrollX!=="undefined"?window.scrollX:window.pageXOffset;var scrollY=typeof window.scrollY!=="undefined"?window.scrollY:window.pageYOffset;assert(typeof scrollX!=="undefined"&&typeof scrollY!=="undefined","Unable to retrieve scroll position, mouse positions likely broken.");if(event.type==="touchstart"||event.type==="touchend"||event.type==="touchmove"){var touch=event.touch;if(touch===undefined){return}var adjustedX=touch.pageX-(scrollX+rect.left);var adjustedY=touch.pageY-(scrollY+rect.top);adjustedX=adjustedX*(cw/rect.width);adjustedY=adjustedY*(ch/rect.height);var coords={x:adjustedX,y:adjustedY};if(event.type==="touchstart"){Browser.lastTouches[touch.identifier]=coords;Browser.touches[touch.identifier]=coords}else if(event.type==="touchend"||event.type==="touchmove"){Browser.lastTouches[touch.identifier]=Browser.touches[touch.identifier];Browser.touches[touch.identifier]={x:adjustedX,y:adjustedY}}return}var x=event.pageX-(scrollX+rect.left);var y=event.pageY-(scrollY+rect.top);x=x*(cw/rect.width);y=y*(ch/rect.height);Browser.mouseMovementX=x-Browser.mouseX;Browser.mouseMovementY=y-Browser.mouseY;Browser.mouseX=x;Browser.mouseY=y}}),xhrLoad:(function(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)}),asyncLoad:(function(url,onload,onerror,noRunDep){Browser.xhrLoad(url,(function(arrayBuffer){assert(arrayBuffer,'Loading data file "'+url+'" failed (no arrayBuffer).');onload(new Uint8Array(arrayBuffer));if(!noRunDep)removeRunDependency("al "+url)}),(function(event){if(onerror){onerror()}else{throw'Loading data file "'+url+'" failed.'}}));if(!noRunDep)addRunDependency("al "+url)}),resizeListeners:[],updateResizeListeners:(function(){var canvas=Module["canvas"];Browser.resizeListeners.forEach((function(listener){listener(canvas.width,canvas.height)}))}),setCanvasSize:(function(width,height,noUpdates){var canvas=Module["canvas"];Browser.updateCanvasDimensions(canvas,width,height);if(!noUpdates)Browser.updateResizeListeners()}),windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags|8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),setWindowedCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags&~8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),updateCanvasDimensions:(function(canvas,wNative,hNative){if(wNative&&hNative){canvas.widthNative=wNative;canvas.heightNative=hNative}else{wNative=canvas.widthNative;hNative=canvas.heightNative}var w=wNative;var h=hNative;if(Module["forcedAspectRatio"]&&Module["forcedAspectRatio"]>0){if(w/h<Module["forcedAspectRatio"]){w=Math.round(h*Module["forcedAspectRatio"])}else{h=Math.round(w/Module["forcedAspectRatio"])}}if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvas.parentNode&&typeof screen!="undefined"){var factor=Math.min(screen.width/w,screen.height/h);w=Math.round(w*factor);h=Math.round(h*factor)}if(Browser.resizeCanvas){if(canvas.width!=w)canvas.width=w;if(canvas.height!=h)canvas.height=h;if(typeof canvas.style!="undefined"){canvas.style.removeProperty("width");canvas.style.removeProperty("height")}}else{if(canvas.width!=wNative)canvas.width=wNative;if(canvas.height!=hNative)canvas.height=hNative;if(typeof canvas.style!="undefined"){if(w!=wNative||h!=hNative){canvas.style.setProperty("width",w+"px","important");canvas.style.setProperty("height",h+"px","important")}else{canvas.style.removeProperty("width");canvas.style.removeProperty("height")}}}}),wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:(function(){var handle=Browser.nextWgetRequestHandle;Browser.nextWgetRequestHandle++;return handle})};function _rmdir(path){path=Pointer_stringify(path);try{FS.rmdir(path);return 0}catch(e){FS.handleFSError(e);return-1}}function _time(ptr){var ret=Date.now()/1e3|0;if(ptr){HEAP32[ptr>>2]=ret}return ret}function _munmap(start,num){if(!_mmap.mappings)_mmap.mappings={};var info=_mmap.mappings[start];if(!info)return 0;if(num==info.num){_mmap.mappings[start]=null;if(info.allocated){_free(info.malloc)}}return 0}function _stat(path,buf,dontResolveLastLink){path=typeof path!=="string"?Pointer_stringify(path):path;try{var stat=dontResolveLastLink?FS.lstat(path):FS.stat(path);HEAP32[buf>>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;HEAP32[buf+36>>2]=stat.size;HEAP32[buf+40>>2]=4096;HEAP32[buf+44>>2]=stat.blocks;HEAP32[buf+48>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+52>>2]=0;HEAP32[buf+56>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ino;return 0}catch(e){if(e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){e.setErrno(ERRNO_CODES.ENOTDIR)}FS.handleFSError(e);return-1}}function _fstat(fildes,buf){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}return _stat(stream.path,buf)}var ___tm_current=allocate(44,"i8",ALLOC_STATIC);var ___tm_timezone=allocate(intArrayFromString("GMT"),"i8",ALLOC_STATIC);var _tzname=allocate(8,"i32*",ALLOC_STATIC);var _daylight=allocate(1,"i32*",ALLOC_STATIC);var _timezone=allocate(1,"i32*",ALLOC_STATIC);function _tzset(){if(_tzset.called)return;_tzset.called=true;HEAP32[_timezone>>2]=-(new Date).getTimezoneOffset()*60;var winter=new Date(2e3,0,1);var summer=new Date(2e3,6,1);HEAP32[_daylight>>2]=Number(winter.getTimezoneOffset()!=summer.getTimezoneOffset());function extractZone(date){var match=date.toTimeString().match(/\(([A-Za-z ]+)\)$/);return match?match[1]:"GMT"}var winterName=extractZone(winter);var summerName=extractZone(summer);var winterNamePtr=allocate(intArrayFromString(winterName),"i8",ALLOC_NORMAL);var summerNamePtr=allocate(intArrayFromString(summerName),"i8",ALLOC_NORMAL);if(summer.getTimezoneOffset()<winter.getTimezoneOffset()){HEAP32[_tzname>>2]=winterNamePtr;HEAP32[_tzname+4>>2]=summerNamePtr}else{HEAP32[_tzname>>2]=summerNamePtr;HEAP32[_tzname+4>>2]=winterNamePtr}}function _localtime_r(time,tmPtr){_tzset();var date=new Date(HEAP32[time>>2]*1e3);HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getFullYear()-1900;HEAP32[tmPtr+24>>2]=date.getDay();var start=new Date(date.getFullYear(),0,1);var yday=(date.getTime()-start.getTime())/(1e3*60*60*24)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr+36>>2]=-(date.getTimezoneOffset()*60);var summerOffset=(new Date(2e3,6,1)).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dst=date.getTimezoneOffset()==Math.min(winterOffset,summerOffset)|0;HEAP32[tmPtr+32>>2]=dst;var zonePtr=HEAP32[_tzname+(dst?Runtime.QUANTUM_SIZE:0)>>2];HEAP32[tmPtr+40>>2]=zonePtr;return tmPtr}function _localtime(time){return _localtime_r(time,___tm_current)}function _fcntl(fildes,cmd,varargs,dup2){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}switch(cmd){case 0:var arg=HEAP32[varargs>>2];if(arg<0){___setErrNo(ERRNO_CODES.EINVAL);return-1}var newStream;try{newStream=FS.open(stream.path,stream.flags,0,arg)}catch(e){FS.handleFSError(e);return-1}return newStream.fd;case 1:case 2:return 0;case 3:return stream.flags;case 4:var arg=HEAP32[varargs>>2];stream.flags|=arg;return 0;case 12:case 12:var arg=HEAP32[varargs>>2];var offset=0;HEAP16[arg+offset>>1]=2;return 0;case 13:case 14:case 13:case 14:return 0;case 8:case 9:___setErrNo(ERRNO_CODES.EINVAL);return-1;default:___setErrNo(ERRNO_CODES.EINVAL);return-1}return-1}function _sysconf(name){switch(name){case 30:return PAGE_SIZE;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 79:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:{if(typeof navigator==="object")return navigator["hardwareConcurrency"]||1;return 1}}___setErrNo(ERRNO_CODES.EINVAL);return-1}function _recv(fd,buf,len,flags){var sock=SOCKFS.getSocket(fd);if(!sock){___setErrNo(ERRNO_CODES.EBADF);return-1}return _read(fd,buf,len)}function _pread(fildes,buf,nbyte,offset){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.read(stream,slab,buf,nbyte,offset)}catch(e){FS.handleFSError(e);return-1}}function _read(fildes,buf,nbyte){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.read(stream,slab,buf,nbyte)}catch(e){FS.handleFSError(e);return-1}}var _BDtoIHigh=true;function _getcwd(buf,size){if(size==0){___setErrNo(ERRNO_CODES.EINVAL);return 0}var cwd=FS.cwd();if(size<cwd.length+1){___setErrNo(ERRNO_CODES.ERANGE);return 0}else{writeAsciiToMemory(cwd,buf);return buf}}var PROCINFO={ppid:1,pid:42,sid:42,pgid:42};function _getpid(){return PROCINFO.pid}var _environ=allocate(1,"i32*",ALLOC_STATIC);var ___environ=_environ;function ___buildEnvironment(env){var MAX_ENV_VALUES=64;var TOTAL_ENV_SIZE=1024;var poolPtr;var envPtr;if(!___buildEnvironment.called){___buildEnvironment.called=true;ENV["USER"]="web_user";ENV["PATH"]="/";ENV["PWD"]="/";ENV["HOME"]="/home/web_user";ENV["LANG"]="C";ENV["_"]=Module["thisProgram"];poolPtr=allocate(TOTAL_ENV_SIZE,"i8",ALLOC_STATIC);envPtr=allocate(MAX_ENV_VALUES*4,"i8*",ALLOC_STATIC);HEAP32[envPtr>>2]=poolPtr;HEAP32[_environ>>2]=envPtr}else{envPtr=HEAP32[_environ>>2];poolPtr=HEAP32[envPtr>>2]}var strings=[];var totalSize=0;for(var key in env){if(typeof env[key]==="string"){var line=key+"="+env[key];strings.push(line);totalSize+=line.length}}if(totalSize>TOTAL_ENV_SIZE){throw new Error("Environment size exceeded TOTAL_ENV_SIZE!")}var ptrSize=4;for(var i=0;i<strings.length;i++){var line=strings[i];writeAsciiToMemory(line,poolPtr);HEAP32[envPtr+i*ptrSize>>2]=poolPtr;poolPtr+=line.length+1}HEAP32[envPtr+strings.length*ptrSize>>2]=0}var ENV={};function _getenv(name){if(name===0)return 0;name=Pointer_stringify(name);if(!ENV.hasOwnProperty(name))return 0;if(_getenv.ret)_free(_getenv.ret);_getenv.ret=allocate(intArrayFromString(ENV[name]),"i8",ALLOC_NORMAL);return _getenv.ret}function _gettimeofday(ptr){var now=Date.now();HEAP32[ptr>>2]=now/1e3|0;HEAP32[ptr+4>>2]=now%1e3*1e3|0;return 0}function _chown(path,owner,group,dontResolveLastLink){if(typeof path!=="string")path=Pointer_stringify(path);try{FS.chown(path,owner,group);return 0}catch(e){FS.handleFSError(e);return-1}}function _fchown(fildes,owner,group){try{FS.fchown(fildes,owner,group);return 0}catch(e){FS.handleFSError(e);return-1}}function _dlclose(handle){if(!DLFCN.loadedLibs[handle]){DLFCN.errorMsg="Tried to dlclose() unopened handle: "+handle;return 1}else{var lib_record=DLFCN.loadedLibs[handle];if(--lib_record.refcount==0){if(lib_record.module.cleanups){lib_record.module.cleanups.forEach((function(cleanup){cleanup()}))}delete DLFCN.loadedLibNames[lib_record.name];delete DLFCN.loadedLibs[handle]}return 0}}function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);return dest}Module["_memcpy"]=_memcpy;function _dlopen(filename,flag){filename=filename===0?"__self__":(ENV["LD_LIBRARY_PATH"]||"/")+Pointer_stringify(filename);abort("need to build with DLOPEN_SUPPORT=1 to get dlopen support in asm.js");if(DLFCN.loadedLibNames[filename]){var handle=DLFCN.loadedLibNames[filename];DLFCN.loadedLibs[handle].refcount++;return handle}if(filename==="__self__"){var handle=-1;var lib_module=Module;var cached_functions=SYMBOL_TABLE}else{var target=FS.findObject(filename);if(!target||target.isFolder||target.isDevice){DLFCN.errorMsg="Could not find dynamic lib: "+filename;return 0}else{FS.forceLoadFile(target);var lib_data=FS.readFile(filename,{encoding:"utf8"})}try{var lib_module=eval(lib_data)(DLFCN.functionTable.length,Module)}catch(e){Module.printErr("Error in loading dynamic library: "+e);DLFCN.errorMsg="Could not evaluate dynamic lib: "+filename;return 0}var handle=1;for(var key in DLFCN.loadedLibs){if(DLFCN.loadedLibs.hasOwnProperty(key))handle++}if(flag&256){for(var ident in lib_module){if(lib_module.hasOwnProperty(ident)){Module[ident]=lib_module[ident]}}}var cached_functions={}}DLFCN.loadedLibs[handle]={refcount:1,name:filename,module:lib_module,cached_functions:cached_functions};DLFCN.loadedLibNames[filename]=handle;return handle}function _fsync(fildes){var stream=FS.getStream(fildes);if(stream){return 0}else{___setErrNo(ERRNO_CODES.EBADF);return-1}}function _sbrk(bytes){var self=_sbrk;if(!self.called){DYNAMICTOP=alignMemoryPage(DYNAMICTOP);self.called=true;assert(Runtime.dynamicAlloc);self.alloc=Runtime.dynamicAlloc;Runtime.dynamicAlloc=(function(){abort("cannot dynamically allocate, sbrk now has control")})}var ret=DYNAMICTOP;if(bytes!=0){var success=self.alloc(bytes);if(!success)return-1>>>0}return ret}Module["_memmove"]=_memmove;function _dlerror(){if(DLFCN.errorMsg===null){return 0}else{if(DLFCN.error)_free(DLFCN.error);var msgArr=intArrayFromString(DLFCN.errorMsg);DLFCN.error=allocate(msgArr,"i8",ALLOC_NORMAL);DLFCN.errorMsg=null;return DLFCN.error}}function ___errno_location(){return ___errno_state}var _BItoD=true;Module["_bitshift64Lshr"]=_bitshift64Lshr;Module["_llvm_bswap_i32"]=_llvm_bswap_i32;function _mmap(start,num,prot,flags,fd,offset){var MAP_PRIVATE=2;var ptr;var allocated=false;if(!_mmap.mappings)_mmap.mappings={};if(fd==-1){ptr=_malloc(num);if(!ptr)return-1;_memset(ptr,0,num);allocated=true}else{var info=FS.getStream(fd);if(!info)return-1;try{var res=FS.mmap(info,HEAPU8,start,num,offset,prot,flags);ptr=res.ptr;allocated=res.allocated}catch(e){FS.handleFSError(e);return-1}}_mmap.mappings[ptr]={malloc:ptr,num:num,allocated:allocated};return ptr}function _truncate(path,length){if(typeof path!=="string")path=Pointer_stringify(path);try{FS.truncate(path,length);return 0}catch(e){FS.handleFSError(e);return-1}}function _ftruncate(fildes,length){try{FS.ftruncate(fildes,length);return 0}catch(e){FS.handleFSError(e);return-1}}function _utimes(path,times){var time;if(times){var offset=8+0;time=HEAP32[times+offset>>2]*1e3;offset=8+4;time+=HEAP32[times+offset>>2]/1e3}else{time=Date.now()}path=Pointer_stringify(path);try{FS.utime(path,time,time);return 0}catch(e){FS.handleFSError(e);return-1}}FS.staticInit();__ATINIT__.unshift({func:(function(){if(!Module["noFSInit"]&&!FS.init.initialized)FS.init()})});__ATMAIN__.push({func:(function(){FS.ignorePermissions=false})});__ATEXIT__.push({func:(function(){FS.quit()})});Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;___errno_state=Runtime.staticAlloc(4);HEAP32[___errno_state>>2]=0;__ATINIT__.unshift({func:(function(){TTY.init()})});__ATEXIT__.push({func:(function(){TTY.shutdown()})});if(ENVIRONMENT_IS_NODE){var fs=require("fs");var NODEJS_PATH=require("path");NODEFS.staticInit()}__ATINIT__.push({func:(function(){SOCKFS.root=FS.mount(SOCKFS,{},null)})});Module["requestFullScreen"]=function Module_requestFullScreen(lockPointer,resizeCanvas,vrDevice){Browser.requestFullScreen(lockPointer,resizeCanvas,vrDevice)};Module["requestAnimationFrame"]=function Module_requestAnimationFrame(func){Browser.requestAnimationFrame(func)};Module["setCanvasSize"]=function Module_setCanvasSize(width,height,noUpdates){Browser.setCanvasSize(width,height,noUpdates)};Module["pauseMainLoop"]=function Module_pauseMainLoop(){Browser.mainLoop.pause()};Module["resumeMainLoop"]=function Module_resumeMainLoop(){Browser.mainLoop.resume()};Module["getUserMedia"]=function Module_getUserMedia(){Browser.getUserMedia()};___buildEnvironment(ENV);STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);staticSealed=true;STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=DYNAMICTOP=Runtime.alignMemory(STACK_MAX);assert(DYNAMIC_BASE<TOTAL_MEMORY,"TOTAL_MEMORY not big enough for stack");var cttz_i8=allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",ALLOC_DYNAMIC);function nullFunc_iiiiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_vi(x){Module["printErr"]("Invalid function pointer called with signature 'vi'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_dii(x){Module["printErr"]("Invalid function pointer called with signature 'dii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_vid(x){Module["printErr"]("Invalid function pointer called with signature 'vid'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_di(x){Module["printErr"]("Invalid function pointer called with signature 'di'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_i(x){Module["printErr"]("Invalid function pointer called with signature 'i'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiiiiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_vii(x){Module["printErr"]("Invalid function pointer called with signature 'vii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_ii(x){Module["printErr"]("Invalid function pointer called with signature 'ii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viii(x){Module["printErr"]("Invalid function pointer called with signature 'viii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_v(x){Module["printErr"]("Invalid function pointer called with signature 'v'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiiiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iii(x){Module["printErr"]("Invalid function pointer called with signature 'iii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiid(x){Module["printErr"]("Invalid function pointer called with signature 'iiid'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function invoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){try{return Module["dynCall_iiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiii(index,a1,a2,a3){try{return Module["dynCall_iiii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){try{Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_vi(index,a1){try{Module["dynCall_vi"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){try{Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_dii(index,a1,a2){try{return Module["dynCall_dii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_vid(index,a1,a2){try{Module["dynCall_vid"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_di(index,a1){try{return Module["dynCall_di"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_i(index){try{return Module["dynCall_i"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){try{return Module["dynCall_iiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_vii(index,a1,a2){try{Module["dynCall_vii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){try{return Module["dynCall_iiiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_ii(index,a1){try{return Module["dynCall_ii"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viii(index,a1,a2,a3){try{Module["dynCall_viii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_v(index){try{Module["dynCall_v"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){try{return Module["dynCall_iiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){try{return Module["dynCall_iiiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiii(index,a1,a2,a3,a4){try{Module["dynCall_viiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iii(index,a1,a2){try{return Module["dynCall_iii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiid(index,a1,a2,a3){try{return Module["dynCall_iiid"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){try{return Module["dynCall_iiiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}Module.asmGlobalArg={"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array,"NaN":NaN,"Infinity":Infinity};Module.asmLibraryArg={"abort":abort,"assert":assert,"nullFunc_iiiiiiii":nullFunc_iiiiiiii,"nullFunc_iiii":nullFunc_iiii,"nullFunc_viiiiii":nullFunc_viiiiii,"nullFunc_vi":nullFunc_vi,"nullFunc_viiiii":nullFunc_viiiii,"nullFunc_dii":nullFunc_dii,"nullFunc_vid":nullFunc_vid,"nullFunc_di":nullFunc_di,"nullFunc_i":nullFunc_i,"nullFunc_iiiiiiiiii":nullFunc_iiiiiiiiii,"nullFunc_vii":nullFunc_vii,"nullFunc_iiiiiii":nullFunc_iiiiiii,"nullFunc_ii":nullFunc_ii,"nullFunc_viii":nullFunc_viii,"nullFunc_v":nullFunc_v,"nullFunc_iiiiiiiii":nullFunc_iiiiiiiii,"nullFunc_iiiii":nullFunc_iiiii,"nullFunc_viiii":nullFunc_viiii,"nullFunc_iii":nullFunc_iii,"nullFunc_iiid":nullFunc_iiid,"nullFunc_iiiiii":nullFunc_iiiiii,"invoke_iiiiiiii":invoke_iiiiiiii,"invoke_iiii":invoke_iiii,"invoke_viiiiii":invoke_viiiiii,"invoke_vi":invoke_vi,"invoke_viiiii":invoke_viiiii,"invoke_dii":invoke_dii,"invoke_vid":invoke_vid,"invoke_di":invoke_di,"invoke_i":invoke_i,"invoke_iiiiiiiiii":invoke_iiiiiiiiii,"invoke_vii":invoke_vii,"invoke_iiiiiii":invoke_iiiiiii,"invoke_ii":invoke_ii,"invoke_viii":invoke_viii,"invoke_v":invoke_v,"invoke_iiiiiiiii":invoke_iiiiiiiii,"invoke_iiiii":invoke_iiiii,"invoke_viiii":invoke_viiii,"invoke_iii":invoke_iii,"invoke_iiid":invoke_iiid,"invoke_iiiiii":invoke_iiiiii,"_dlerror":_dlerror,"_utimes":_utimes,"_getuid":_getuid,"_send":_send,"_dlsym":_dlsym,"_mknod":_mknod,"_chown":_chown,"_lseek":_lseek,"_emscripten_set_main_loop_timing":_emscripten_set_main_loop_timing,"_access":_access,"_fstat":_fstat,"_chmod":_chmod,"_rmdir":_rmdir,"___assert_fail":___assert_fail,"_usleep":_usleep,"___buildEnvironment":___buildEnvironment,"_fflush":_fflush,"_pwrite":_pwrite,"_strerror_r":_strerror_r,"_localtime_r":_localtime_r,"_tzset":_tzset,"_open":_open,"_getpid":_getpid,"_sbrk":_sbrk,"_fcntl":_fcntl,"_emscripten_memcpy_big":_emscripten_memcpy_big,"_unlink":_unlink,"_sysconf":_sysconf,"_fchmod":_fchmod,"___setErrNo":___setErrNo,"_ftruncate":_ftruncate,"_mkdir":_mkdir,"_pread":_pread,"_mkport":_mkport,"_dlopen":_dlopen,"_dlclose":_dlclose,"_write":_write,"_fsync":_fsync,"___errno_location":___errno_location,"_stat":_stat,"_recv":_recv,"_geteuid":_geteuid,"_getenv":_getenv,"_sleep":_sleep,"_emscripten_set_main_loop":_emscripten_set_main_loop,"_abort":_abort,"_time":_time,"_fchown":_fchown,"_strerror":_strerror,"_gettimeofday":_gettimeofday,"_munmap":_munmap,"_mmap":_mmap,"_localtime":_localtime,"_getcwd":_getcwd,"_close":_close,"_read":_read,"_truncate":_truncate,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"cttz_i8":cttz_i8};// EMSCRIPTEN_START_ASM
var asm=(function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;var n=0;var o=0;var p=0;var q=0;var r=global.NaN,s=global.Infinity;var t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0.0;var C=0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=global.Math.floor;var N=global.Math.abs;var O=global.Math.sqrt;var P=global.Math.pow;var Q=global.Math.cos;var R=global.Math.sin;var S=global.Math.tan;var T=global.Math.acos;var U=global.Math.asin;var V=global.Math.atan;var W=global.Math.atan2;var X=global.Math.exp;var Y=global.Math.log;var Z=global.Math.ceil;var _=global.Math.imul;var $=global.Math.min;var aa=global.Math.clz32;var ba=env.abort;var ca=env.assert;var da=env.nullFunc_iiiiiiii;var ea=env.nullFunc_iiii;var fa=env.nullFunc_viiiiii;var ga=env.nullFunc_vi;var ha=env.nullFunc_viiiii;var ia=env.nullFunc_dii;var ja=env.nullFunc_vid;var ka=env.nullFunc_di;var la=env.nullFunc_i;var ma=env.nullFunc_iiiiiiiiii;var na=env.nullFunc_vii;var oa=env.nullFunc_iiiiiii;var pa=env.nullFunc_ii;var qa=env.nullFunc_viii;var ra=env.nullFunc_v;var sa=env.nullFunc_iiiiiiiii;var ta=env.nullFunc_iiiii;var ua=env.nullFunc_viiii;var va=env.nullFunc_iii;var wa=env.nullFunc_iiid;var xa=env.nullFunc_iiiiii;var ya=env.invoke_iiiiiiii;var za=env.invoke_iiii;var Aa=env.invoke_viiiiii;var Ba=env.invoke_vi;var Ca=env.invoke_viiiii;var Da=env.invoke_dii;var Ea=env.invoke_vid;var Fa=env.invoke_di;var Ga=env.invoke_i;var Ha=env.invoke_iiiiiiiiii;var Ia=env.invoke_vii;var Ja=env.invoke_iiiiiii;var Ka=env.invoke_ii;var La=env.invoke_viii;var Ma=env.invoke_v;var Na=env.invoke_iiiiiiiii;var Oa=env.invoke_iiiii;var Pa=env.invoke_viiii;var Qa=env.invoke_iii;var Ra=env.invoke_iiid;var Sa=env.invoke_iiiiii;var Ta=env._dlerror;var Ua=env._utimes;var Va=env._getuid;var Wa=env._send;var Xa=env._dlsym;var Ya=env._mknod;var Za=env._chown;var _a=env._lseek;var $a=env._emscripten_set_main_loop_timing;var ab=env._access;var bb=env._fstat;var cb=env._chmod;var db=env._rmdir;var eb=env.___assert_fail;var fb=env._usleep;var gb=env.___buildEnvironment;var hb=env._fflush;var ib=env._pwrite;var jb=env._strerror_r;var kb=env._localtime_r;var lb=env._tzset;var mb=env._open;var nb=env._getpid;var ob=env._sbrk;var pb=env._fcntl;var qb=env._emscripten_memcpy_big;var rb=env._unlink;var sb=env._sysconf;var tb=env._fchmod;var ub=env.___setErrNo;var vb=env._ftruncate;var wb=env._mkdir;var xb=env._pread;var yb=env._mkport;var zb=env._dlopen;var Ab=env._dlclose;var Bb=env._write;var Cb=env._fsync;var Db=env.___errno_location;var Eb=env._stat;var Fb=env._recv;var Gb=env._geteuid;var Hb=env._getenv;var Ib=env._sleep;var Jb=env._emscripten_set_main_loop;var Kb=env._abort;var Lb=env._time;var Mb=env._fchown;var Nb=env._strerror;var Ob=env._gettimeofday;var Pb=env._munmap;var Qb=env._mmap;var Rb=env._localtime;var Sb=env._getcwd;var Tb=env._close;var Ub=env._read;var Vb=env._truncate;var Wb=0.0;
// EMSCRIPTEN_START_FUNCS
function dh(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=c[d>>2]|0;l=c[d+80>>2]|0;h=d+44|0;do if(!(c[h>>2]|0)){c[k+52>>2]=l;e=c[k+236>>2]|0;if(e){d=e+8|0;if(!(b[d>>1]&9312)){b[d>>1]=1;break}else{rg(e);break}}}else{i=k+65|0;j=a[i>>0]|0;d=c[3164]|0;if(d)jc[d&3]();g=k+236|0;d=c[g>>2]|0;do if(!d){d=ih(k,40,0)|0;if(!d){c[g>>2]=d;break}else{e=d+0|0;f=e+40|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(f|0));b[d+8>>1]=1;c[d+32>>2]=k;c[g>>2]=d;f=8;break}}else f=8;while(0);if((f|0)==8)Tg(d,c[h>>2]|0,-1,1,-1)|0;d=c[3166]|0;if(d)jc[d&3]();a[i>>0]=j;c[k+52>>2]=l}while(0);return l|0}function eh(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o;c[g>>2]=0;if(!((Dh(a)|0)==0|(b|0)==0)){k=c[a+20>>2]|0;if((k|0)>0){l=c[a+16>>2]|0;n=0;do{m=c[l+(n<<4)+4>>2]|0;if(m)c[(c[m+4>>2]|0)+4>>2]=c[m>>2];n=n+1|0}while((n|0)!=(k|0))}k=Bn(a,b,d,e,f,g,h)|0;if((k|0)==17){id(c[g>>2]|0)|0;k=Bn(a,b,d,e,f,g,h)|0}}else{c[k>>2]=105892;c[k+4>>2]=10788;Zc(21,13648,k);k=21}i=o;return k|0}function fh(a,d){a=a|0;d=d|0;var e=0,f=0;f=a+68|0;if((b[f>>1]|0)>0){e=d+60|0;d=a+60|0;a=0;do{Wl((c[e>>2]|0)+(a*40|0)|0,(c[d>>2]|0)+(a*40|0)|0);a=a+1|0}while((a|0)<(b[f>>1]|0))}return}function gh(b,c){b=b|0;c=c|0;var d=0,e=0;if(c){d=c;while(1)if(!(a[d>>0]|0))break;else d=d+1|0;e=(d-c&1073741823)+1|0;d=ih(b,e,0)|0;if(d)gw(d|0,c|0,e|0)|0;else d=0}else d=0;return d|0}function hh(a,d){a=a|0;d=d|0;var e=0,f=0;f=c[a+8>>2]|0;if((d|0)>=1){bh(f,d)|0;b[f+8>>1]=8192;c[f>>2]=c[a+4>>2];e=f+16|0;a=c[e>>2]|0;if(!a)e=0;else{bw(a|0,0,d|0)|0;e=c[e>>2]|0}}else{e=f+8|0;if(!(b[e>>1]&9312))b[e>>1]=1;else rg(f);c[f+16>>2]=0;e=0}return e|0}function ih(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0;a:do if(b){i=b+65|0;if(!(a[i>>0]|0)){do if(a[b+250>>0]|0){if(0<f>>>0|(0==(f|0)?(e[b+248>>1]|0)>>>0<d>>>0:0)){g=b+264|0;c[g>>2]=(c[g>>2]|0)+1;break}h=b+272|0;g=c[h>>2]|0;if(!g){g=b+268|0;c[g>>2]=(c[g>>2]|0)+1;break}c[h>>2]=c[g>>2];f=b+252|0;h=c[f>>2]|0;d=h+1|0;c[f>>2]=d;f=b+260|0;c[f>>2]=(c[f>>2]|0)+1;f=b+256|0;if((h|0)>=(c[f>>2]|0))c[f>>2]=d;break a}while(0);g=mg(d,f)|0;if(!g){a[i>>0]=1;g=0}}else g=0}else g=mg(d,f)|0;while(0);return g|0}function jh(a,d){a=a|0;d=d|0;var f=0,g=0;do if(a){f=c[a+20>>2]|0;if((f|0)!=0?((d|0)>-1?(e[a+84>>1]|0|0)>(d|0):0):0){f=f+(d*40|0)|0;break}f=c[a>>2]|0;if((f|0)!=0?(c[f+52>>2]=25,g=c[f+236>>2]|0,(g|0)!=0):0){f=g+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;f=41496;break}else{rg(g);f=41496;break}}else f=41496}else f=41496;while(0);return f|0}function kh(a,e,f,g,h,i){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0;j=lh(a,e)|0;if(!j)if(!f)j=0;else{e=(c[a+60>>2]|0)+((e+-1|0)*40|0)|0;j=Tg(e,f,g,i,h)|0;if((j|0)!=0|i<<24>>24==0)e=j;else e=Ul(e,d[(c[a>>2]|0)+62>>0]|0)|0;j=c[a>>2]|0;c[j+52>>2]=e;h=c[j+236>>2]|0;do if(h){g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);j=c[a>>2]|0;break}}while(0);j=Kg(j,e)|0}else{g=h;if(!((g|0)==0|(g|0)==-1))_b[h&31](f)}return j|0}function lh(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;do if(!(Yg(a)|0)){if((c[a+40>>2]|0)==-1108210269?(c[a+76>>2]|0)<=-1:0){if((d|0)>=1?(b[a+68>>1]|0)>=(d|0):0){h=d+-1|0;g=c[a+60>>2]|0;f=g+(h*40|0)|0;e=g+(h*40|0)+8|0;if(!((b[e>>1]&9312)==0?(c[g+(h*40|0)+24>>2]|0)==0:0))Mg(f);b[e>>1]=1;f=c[a>>2]|0;c[f+52>>2]=0;f=c[f+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);g=a+88|0;e=b[g>>1]|0;if(!(e&256)){e=0;break}f=c[a+188>>2]|0;if((d|0)<33){if(!((f&1<<h|0)!=0|(f|0)==-1)){e=0;break}}else if((f|0)!=-1){e=0;break}b[g>>1]=e|8;e=0;break}e=c[a>>2]|0;c[e+52>>2]=25;e=c[e+236>>2]|0;if(!e){e=25;break}f=e+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;e=25;break}else{rg(e);e=25;break}}f=c[a>>2]|0;c[f+52>>2]=21;f=c[f+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);c[g>>2]=c[a+168>>2];Zc(21,41456,g);c[g>>2]=69987;c[g+4>>2]=10788;Zc(21,13648,g);e=21}else{c[g>>2]=69979;c[g+4>>2]=10788;Zc(21,13648,g);e=21}while(0);i=k;return e|0}function mh(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;a:do if(!((d|0)==0|(e|0)==0)?(i=b[d+70>>1]|0,i<<16>>16>0):0){g=c[d+64>>2]|0;d=0;while(1){h=c[g+(d<<2)>>2]|0;if(((h|0)!=0?(Xv(h,e,f)|0)==0:0)?(a[h+f>>0]|0)==0:0)break;d=d+1|0;if((d|0)>=(i<<16>>16|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function nh(d,f){d=d|0;f=f|0;var g=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o+8|0;m=o;g=a[d+10>>0]|0;k=d+16|0;l=d+12|0;do if(Pl(c[k>>2]|0,n,c[l>>2]|0,g)|0){if(!(Ql(c[k>>2]|0,m,c[l>>2]|0,g)|0)){l=m;k=c[l+4>>2]|0;g=d;c[g>>2]=c[l>>2];c[g+4>>2]=k;g=d+8|0;b[g>>1]=e[g>>1]|0|4;break}h[d>>3]=+h[n>>3];g=d+8|0;b[g>>1]=e[g>>1]|0|8;if(f)$l(d)}while(0);i=o;return}function oh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(Cn(b)|0)){g=Wh(c[b>>2]|0,e,f)|0;if(!g){g=(d|0)!=0?41368:41384;if(!f){c[h>>2]=g;c[h+4>>2]=e;ph(b,27680,h)}else{c[h>>2]=g;c[h+4>>2]=f;c[h+8>>2]=e;ph(b,27664,h)}a[b+17>>0]=1;g=0}}else g=0;i=k;return g|0}function ph(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();h=g;f=c[b>>2]|0;c[h>>2]=e;e=Sk(f,d,h)|0;if(!(a[f+68>>0]|0)){d=b+64|0;c[d>>2]=(c[d>>2]|0)+1;d=b+4|0;ig(f,c[d>>2]|0);c[d>>2]=e;c[b+12>>2]=1}else ig(f,e);i=g;return}function qh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();f=e;c[f>>2]=d;a=Sk(a,b,f)|0;i=e;return a|0}function rh(a){a=a|0;var b=0,d=0,e=0;d=c[a>>2]|0;b=ih(d,208,0)|0;if(!b)b=0;else{bw(b|0,0,208)|0;c[b>>2]=d;d=d+4|0;e=c[d>>2]|0;if(e)c[e+48>>2]=b;c[b+52>>2]=e;c[b+48>>2]=0;c[d>>2]=b;c[b+40>>2]=649915045;c[b+24>>2]=a}return b|0}function sh(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;i=b+32|0;h=c[i>>2]|0;if((c[(c[b+24>>2]|0)+84>>2]|0)<=(h|0))if(!(Dn(b)|0)){j=c[i>>2]|0;k=4}else h=1;else{j=h;k=4}if((k|0)==4){c[i>>2]=j+1;i=c[b+4>>2]|0;a[i+(h*20|0)>>0]=d;a[i+(h*20|0)+3>>0]=0;c[i+(h*20|0)+4>>2]=e;c[i+(h*20|0)+8>>2]=f;c[i+(h*20|0)+12>>2]=g;c[i+(h*20|0)+16>>2]=0;a[i+(h*20|0)+1>>0]=0}return h|0}function th(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;j=c[b>>2]|0;g=c[b+4>>2]|0;do if((g|0)!=0?(a[j+65>>0]|0)==0:0){if((d|0)<0)d=(c[b+32>>2]|0)+-1|0;i=g+(d*20|0)+1|0;h=g+(d*20|0)+16|0;En(j,a[i>>0]|0,c[h>>2]|0);c[h>>2]=0;if((f|0)==-14){c[h>>2]=e;a[i>>0]=-14;break}if(!e){c[h>>2]=0;a[i>>0]=0;break}if((f|0)==-6){c[h>>2]=e;a[i>>0]=-6;break}else if((f|0)==-10){c[h>>2]=e;a[i>>0]=-10;d=e+12|0;c[d>>2]=(c[d>>2]|0)+1;break}else{if((f|0)<0){c[h>>2]=e;a[i>>0]=f;break}if(!f){d=e;while(1)if(!(a[d>>0]|0))break;else d=d+1|0;g=d-e&1073741823}else g=f;b=c[b>>2]|0;d=fw(g|0,((g|0)<0)<<31>>31|0,1,0)|0;d=ih(b,d,C)|0;if(!d)d=0;else{gw(d|0,e|0,g|0)|0;a[d+g>>0]=0}c[h>>2]=d;a[i>>0]=-1;break}}else k=3;while(0);if((k|0)==3?(f|0)!=-10:0)En(j,f,e);return}function uh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=b+32|0;f=c[k>>2]|0;if((f+d|0)>(c[(c[b+24>>2]|0)+84>>2]|0))if(!(Dn(b)|0)){f=c[k>>2]|0;g=4}else f=0;else g=4;if((g|0)==4)if((d|0)>0){i=b+4|0;j=0;while(1){l=a[e+2>>0]|0;g=l<<24>>24;b=j+f|0;h=c[i>>2]|0;a[h+(b*20|0)>>0]=a[e>>0]|0;c[h+(b*20|0)+4>>2]=a[e+1>>0];if(l<<24>>24<0)g=f+~g|0;c[h+(b*20|0)+8>>2]=g;c[h+(b*20|0)+12>>2]=a[e+3>>0];a[h+(b*20|0)+1>>0]=0;c[h+(b*20|0)+16>>2]=0;a[h+(b*20|0)+3>>0]=0;j=j+1|0;if((j|0)==(d|0))break;else e=e+4|0}c[k>>2]=(c[k>>2]|0)+d}return f|0}function vh(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+32|0;if((c[e>>2]|0)>(d|0)?(f=c[b+4>>2]|0,En(c[b>>2]|0,a[f+(d*20|0)+1>>0]|0,c[f+(d*20|0)+16>>2]|0),b=f+(d*20|0)|0,c[b+0>>2]=0,c[b+4>>2]=0,c[b+8>>2]=0,c[b+12>>2]=0,c[b+16>>2]=0,a[b>>0]=-100,((c[e>>2]|0)+-1|0)==(d|0)):0)c[e>>2]=d;return}function wh(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;K=i;i=i+16|0;if((i|0)>=(j|0))ba();k=K;I=c[e>>2]|0;C=c[f+440>>2]|0;g=c[f+72>>2]|0;B=c[f+68>>2]|0;c[k>>2]=c[f+392>>2];A=c[f+80>>2]|0;A=(A|0)==0?1:A;g=B+g|0;m=c[e+4>>2]|0;l=m+((c[e+32>>2]|0)*20|0)|0;m=m+((c[f+84>>2]|0)*20|0)|0;Fn(e,k);if(!(a[f+20>>0]|0))h=0;else h=((a[f+21>>0]|0)!=0&1)<<5&65535;J=e+88|0;b[J>>1]=b[J>>1]&-33|h;H=f+450|0;E=(a[H>>0]|0)!=0&(g|0)<10?10:g;g=l;bw(l|0,0,m-g|0)|0;b[J>>1]=b[J>>1]&-9;D=e+8|0;v=E*40|0;w=e+60|0;x=C*40|0;y=e+12|0;n=(c[k>>2]<<2)+7&-8;z=e+64|0;o=(C<<2)+7&-8;p=e+56|0;q=(B<<2)+7&-8;r=e+200|0;s=A+7&-8;t=e+172|0;u=I+65|0;l=l+(g&7)|0;while(1){k=c[D>>2]|0;if(!k){h=l+v|0;g=h>>>0>m>>>0;k=g?0:l;l=g?l:h;g=g?v:0}else g=0;c[D>>2]=k;k=c[w>>2]|0;if(!k){L=l+x|0;h=L>>>0>m>>>0;k=h?0:l;l=h?l:L;g=(h?x:0)+g|0}c[w>>2]=k;k=c[y>>2]|0;if(!k){L=l+n|0;h=L>>>0>m>>>0;k=h?0:l;l=h?l:L;g=(h?n:0)+g|0}c[y>>2]=k;k=c[z>>2]|0;if(!k){L=l+o|0;h=L>>>0>m>>>0;k=h?0:l;l=h?l:L;g=(h?o:0)+g|0}c[z>>2]=k;k=c[p>>2]|0;if(!k){L=l+q|0;h=L>>>0>m>>>0;k=h?0:l;l=h?l:L;g=(h?q:0)+g|0}c[p>>2]=k;k=c[r>>2]|0;if(!k){h=(l+s|0)>>>0>m>>>0;k=h?0:l;g=(h?s:0)+g|0}c[r>>2]=k;if(!g)break;h=ih(I,g,((g|0)<0)<<31>>31)|0;if(!h)k=0;else{bw(h|0,0,g|0)|0;k=h}c[t>>2]=k;if(!(a[u>>0]|0)){l=h;m=h+g|0}else break}c[e+36>>2]=B;c[e+196>>2]=A;h=c[w>>2]|0;if((h|0)!=0?(b[e+68>>1]=C,(C|0)>0):0){g=0;do{b[h+(g*40|0)+8>>1]=1;c[h+(g*40|0)+32>>2]=I;g=g+1|0}while((g|0)!=(C|0))}h=c[z>>2]|0;if((h|0)!=0?(F=f+444|0,G=c[F>>2]|0,(G|0)>0):0){b[e+70>>1]=G;C=f+472|0;gw(h|0,c[C>>2]|0,G<<16>>14|0)|0;bw(c[C>>2]|0,0,c[F>>2]<<2|0)|0}h=c[D>>2]|0;if((h|0)!=0?(c[D>>2]=h+-40,c[e+28>>2]=E,(E|0)>=1):0){g=1;while(1){b[h+((g+-1|0)*40|0)+8>>1]=128;c[h+((g+-1|0)*40|0)+32>>2]=I;if((g|0)==(E|0))break;else g=g+1|0}}b[J>>1]=b[J>>1]&-4|d[H>>0]&3;c[e+76>>2]=-1;c[e+80>>2]=0;a[e+86>>0]=2;c[e+40>>2]=-1108210269;c[e+92>>2]=0;c[e+72>>2]=1;a[e+87>>0]=-1;c[e+104>>2]=0;D=e+144|0;c[D>>2]=0;c[D+4>>2]=0;i=K;return}function xh(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p;n=e+20|0;m=c[n>>2]|0;l=c[m+60>>2]|0;c[l>>2]=f;c[l+4>>2]=g;l=Od(m)|0;do if((l|0)!=100){k=c[n>>2]|0;if(k){l=id(k)|0;c[n>>2]=0;k=c[e+24>>2]|0;if(!l){l=o;c[l>>2]=f;c[l+4>>2]=g;l=1;k=qh(k,41432,o)|0;break}else{c[o>>2]=Oe(k)|0;k=qh(k,10344,o)|0;break}}else k=0}else{l=c[c[m+56>>2]>>2]|0;k=c[e+12>>2]|0;m=c[l+(k<<2)+84>>2]|0;if(m>>>0>=12){c[e+8>>2]=c[l+((b[l+20>>1]|0)+k<<2)+84>>2];c[e+4>>2]=(m+-12|0)>>>1;l=c[l>>2]|0;c[e+16>>2]=l;l=l+72|0;a[l>>0]=d[l>>0]|16;l=0;k=0;break}l=c[e+24>>2]|0;if(!m)k=20352;else k=(m|0)==7?20336:20320;c[o>>2]=k;k=qh(l,41400,o)|0;id(c[n>>2]|0)|0;c[n>>2]=0;l=1}while(0);c[h>>2]=k;i=p;return l|0}function yh(a){a=a|0;var b=0;if(a){b=c[a>>2]|0;ig(b,c[a+112>>2]|0);Jk(b,c[a+316>>2]|0)}return}function zh(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=a[b+73>>0]|0;do if(!(g<<24>>24))f=4;else{if((g&255)>2?(f=Gn(b)|0,(f|0)!=0):0)break;f=Hm(b,c,d,e,0)|0}while(0);return f|0}function Ah(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;if(!a){c[k>>2]=77646;c[k+4>>2]=10788;Zc(21,13648,k);f=21}else{l=c[a+24>>2]|0;k=a+20|0;h=c[k>>2]|0;do if((f|e|0)>=0?(o=fw(f|0,((f|0)<0)<<31>>31|0,e|0,((e|0)<0)<<31>>31|0)|0,q=C,n=c[a+4>>2]|0,p=((n|0)<0)<<31>>31,!((q|0)>(p|0)|(q|0)==(p|0)&o>>>0>n>>>0)):0)if(h){f=lc[g&31](c[a+16>>2]|0,(c[a+8>>2]|0)+f|0,e,d)|0;if((f|0)==4){Jg(h)|0;c[k>>2]=0;f=4;break}else{c[h+80>>2]=f;break}}else f=4;else f=1;while(0);c[l+52>>2]=f;h=c[l+236>>2]|0;do if(h){k=h+8|0;if(!(b[k>>1]&9312)){b[k>>1]=1;break}else{rg(h);break}}while(0);f=Kg(l,f)|0}i=m;return f|0}function Bh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=b+73|0;g=a[h>>0]|0;if((g&255)>2){g=Gn(b)|0;if(!g){g=a[h>>0]|0;i=4}}else i=4;if((i|0)==4)if(g<<24>>24==1){Hn(c[b+4>>2]|0,c[b+60>>2]|0,b)|0;if(!(a[b+72>>0]&1))g=8;else g=Hm(b,d,e,f,1)|0}else g=4;return g|0}function Ch(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y+4|0;x=y;c[w>>2]=b;c[x>>2]=e;r=d[f+1>>0]|0;s=d[f>>0]|0;v=a[f+3>>0]|0;u=(g|0)!=0;if(u)t=g;else t=d[f+2>>0]|0;o=v<<24>>24!=0;m=0;a:while(1){while(1){k=In(w)|0;if(!k){q=60;break a}if((k|0)==(s|0)){q=7;break a}if((k|0)!=(t|0))break;if(u){q=40;break}e=In(x)|0;if(!e){h=0;break a}l=In(w)|0;if((l|0)==94){l=In(w)|0;h=1}else h=0;if((l|0)==93){l=In(w)|0;n=(e|0)==93&1}else n=0;k=(l|0)==0;if((l|0)!=93&(k^1)){k=0;while(1){if(((l|0)==45?(p=a[c[w>>2]>>0]|0,p<<24>>24!=93):0)?p<<24>>24!=0&(k|0)!=0:0){l=e>>>0<k>>>0|e>>>0>(In(w)|0)>>>0;b=0;n=l?n:1}else{b=l;n=(e|0)==(l|0)?1:n}l=In(w)|0;k=(l|0)==0;if(!((l|0)!=93&(k^1))){l=k;break}else k=b}}else l=k;if(l|(n|0)==(h|0)){h=0;break a}}if((q|0)==40){q=0;k=In(w)|0;if(!k){h=0;break}m=c[w>>2]|0}l=In(x)|0;if((k|0)==(l|0))continue;if(o&k>>>0<128&l>>>0<128?(a[9328+(k&255)>>0]|0)==(a[9328+(l&255)>>0]|0):0)continue;if((k|0)!=(r|0)){h=0;break}if(!((l|0)!=0?(c[w>>2]|0)!=(m|0):0)){h=0;break}}b:do if((q|0)==7){e=In(w)|0;b=(e|0)==(r|0);if((e|0)==(s|0)|b)do{if(b?(In(x)|0)==0:0){h=0;break b}e=In(w)|0;b=(e|0)==(r|0)}while((e|0)==(s|0)|b);if(e){do if((e|0)==(t|0)){if(u){e=In(w)|0;if(!e){h=0;break b}else break}h=c[x>>2]|0;c:do if(!(a[h>>0]|0))h=0;else{b=c[w>>2]|0;while(1){if(Ch(b+-1|0,h,f,0)|0)break;e=h+1|0;c[x>>2]=e;if((d[h>>0]|0)>191?(a[e>>0]&-64)<<24>>24==-128:0){while(1){h=h+2|0;if((a[h>>0]&-64)<<24>>24==-128){q=e;e=h;h=q}else break}c[x>>2]=h}else h=e;if(!(a[h>>0]|0)){h=0;break c}}h=(a[h>>0]|0)!=0}while(0);h=h&1;break b}while(0);if(e>>>0>=129){h=In(x)|0;if(!h){h=0;break}b=c[w>>2]|0;while(1){if((h|0)==(e|0)?(Ch(b,c[x>>2]|0,f,g)|0)!=0:0){h=1;break b}h=In(x)|0;if(!h){h=0;break b}}}if(!(v<<24>>24)){n=e;m=e}else{m=e&255;n=d[9328+m>>0]|0;m=((d[10368+m>>0]|-33)^32)&e}b=c[x>>2]|0;h=b+1|0;c[x>>2]=h;e=a[b>>0]|0;if(!(e<<24>>24))h=0;else{l=c[w>>2]|0;k=e&255;while(1){if((k|0)==(n|0)|(k|0)==(m|0)?(Ch(l,h,f,g)|0)!=0:0){h=1;break b}e=b+2|0;c[x>>2]=e;b=a[h>>0]|0;if(!(b<<24>>24)){h=0;break}else{q=h;k=b&255;h=e;b=q}}}}else h=1}else if((q|0)==60)h=(a[c[x>>2]>>0]|0)==0&1;while(0);i=y;return h|0}function Dh(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;do if(a){a=c[a+76>>2]|0;if((a|0)==-1607883113){a=1;break}else if((a|0)==1266094736|(a|0)==-264537850){c[b>>2]=41352;Zc(21,15256,b);a=0;break}else{c[b>>2]=15248;Zc(21,15256,b);a=0;break}}else{c[b>>2]=20304;Zc(21,15256,b);a=0}while(0);i=d;return a|0}function Eh(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;l=n+8|0;c[l>>2]=0;c[g>>2]=0;if((Dh(b)|0)==0|(d|0)==0){c[k>>2]=106003;c[k+4>>2]=10788;Zc(21,13648,k);f=21}else{a:do if((e|0)>-1)if((e|0)>0){k=0;do{if((a[d+k>>0]|0)==0?(a[d+(k|1)>>0]|0)==0:0)break a;k=k+2|0}while((k|0)<(e|0))}else k=0;else k=e;while(0);m=Nh(b,d,k)|0;if(m){f=eh(b,m,-1,f,0,g,l)|0;k=c[l>>2]|0;if((k|0)!=0&(h|0)!=0){g=Jn(m,k-m|0)|0;if((g|0)>0){e=0;k=d;do{k=(a[k+1>>0]&-8)<<24>>24==-40?k+4|0:k+2|0;e=e+1|0}while((e|0)!=(g|0))}else k=d;c[h>>2]=d+(k-d)}}else f=0;ig(b,m);f=Kg(b,f)|0}i=n;return f|0}function Fh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();o=r;p=b+12|0;h=c[p>>2]|0;n=(e|0)!=0;g=d<<((h|0)==0&n&1);q=b+20|0;l=b+8|0;k=c[l>>2]|0;if((g+(c[q>>2]|0)|0)>>>0>k>>>0){g=g+(k<<1)|0;c[l>>2]=g;h=c[b>>2]|0;if((Hc()|0)==0?(m=ng(h,g<<2,0)|0,(m|0)!=0):0){c[b>>2]=m;h=c[p>>2]|0;m=5}else m=21}else m=5;a:do if((m|0)==5){g=b+16|0;if(!h){c[g>>2]=d;if((d|0)>0){g=0;do{c[o>>2]=c[f+(g<<2)>>2];h=Wc(10344,o)|0;if(!h){m=21;break a}l=c[q>>2]|0;c[q>>2]=l+1;c[(c[b>>2]|0)+(l<<2)>>2]=h;g=g+1|0}while((g|0)<(d|0))}}else if((c[g>>2]|0)!=(d|0)){g=b+4|0;Sc(c[g>>2]|0);c[g>>2]=Wc(40912,o)|0;c[b+24>>2]=1;g=1;break}if(n){if((d|0)>0){l=0;do{k=e+(l<<2)|0;g=c[k>>2]|0;if(!g)g=0;else{h=g;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=(h-g&1073741823)+1|0;g=Pc(h)|0;if(!g){m=21;break a}gw(g|0,c[k>>2]|0,h|0)|0}o=c[q>>2]|0;c[q>>2]=o+1;c[(c[b>>2]|0)+(o<<2)>>2]=g;l=l+1|0}while((l|0)<(d|0))}c[p>>2]=(c[p>>2]|0)+1;g=0}else g=0}while(0);if((m|0)==21){c[b+24>>2]=7;g=1}i=r;return g|0}function Gh(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();m=o;if(!d)k=0;else{h=d;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;k=h-d&1073741823}l=b+308|0;h=Zm(l,d,m)|0;if((h|0)!=0?(c[h+8>>2]|0)!=0:0){c[m>>2]=114188;c[m+4>>2]=10788;Zc(21,13648,m);h=21}else{h=ih(b,k+17|0,0)|0;if((h|0)!=0?(n=h+16|0,gw(n|0,d|0,k+1|0)|0,c[h+4>>2]=n,c[h>>2]=e,c[h+8>>2]=f,c[h+12>>2]=g,n=Ek(l,n,h)|0,(n|0)!=0):0){a[b+65>>0]=1;ig(b,n);h=0}else h=0}h=Kg(b,h)|0;if((h|0)!=0&(g|0)!=0)_b[g&31](f);i=o;return h|0}function Hh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))ba();x=A;n=A+8|0;y=c[b>>2]|0;l=c[y+92>>2]|0;if(!(c[y+148>>2]|0))c[y+240>>2]=0;z=b+12|0;c[z>>2]=0;p=b+480|0;c[p>>2]=d;t=mg(1612,0)|0;if(t){c[t>>2]=-1;q=y+250|0;r=a[q>>0]|0;if(c[y+276>>2]|0)a[q>>0]=1;s=y+65|0;o=b+504|0;f=b+508|0;m=y+240|0;k=0;h=-1;a:while(1){while(1){if(a[s>>0]|0){v=19;break a}g=d+k|0;if(!(a[g>>0]|0)){v=19;break a}c[o>>2]=g;g=yn(g,n)|0;c[f>>2]=g;k=g+k|0;if((k|0)>(l|0)){v=12;break a}g=c[n>>2]|0;if((g|0)==150){v=16;break a}else if((g|0)==1){h=g;v=17;break}else if((g|0)!=151){h=g;break}if(c[m>>2]|0){v=15;break a}}if((v|0)==17){v=0;c[p>>2]=d+k};c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,h,x,b);h=c[n>>2]|0;if(c[z>>2]|0){v=19;break}}if((v|0)==12){c[z>>2]=18;v=19}else if((v|0)==15){ph(b,20384,x);c[z>>2]=9;v=19}else if((v|0)==16){ig(y,c[e>>2]|0);c[x>>2]=o;c[e>>2]=qh(y,20400,x)|0;f=1}if((v|0)==19){k=d+k|0;if((a[k>>0]|0)==0?(c[z>>2]|0)==0:0){if((h|0)!=1){c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,1,x,b);c[p>>2]=k};c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,0,x,b);f=0}else f=0}if((c[t>>2]|0)>-1)do Ln(t);while((c[t>>2]|0)>-1);Sc(t);a[q>>0]=r;if(!(a[s>>0]|0)){h=c[z>>2]|0;if(!((h|0)==101|(h|0)==0)){u=h;v=29}}else{c[z>>2]=7;u=7;v=29}if((v|0)==29?(w=b+4|0,(c[w>>2]|0)==0):0){if((u|0)!=516){h=u&255;if(h>>>0>26|(h|0)==2)h=16328;else h=c[15488+(h<<2)>>2]|0}else h=16344;c[x>>2]=h;$g(w,y,10344,x)}h=b+4|0;g=c[h>>2]|0;if(g){c[e>>2]=g;e=c[z>>2]|0;c[x>>2]=g;Zc(e,10344,x);c[h>>2]=0;f=f+1|0}h=b+8|0;g=c[h>>2]|0;if(((g|0)!=0?(c[b+64>>2]|0)>0:0)?(a[b+18>>0]|0)==0:0){Ll(g);c[h>>2]=0}if(!(a[b+18>>0]|0)){e=b+400|0;ig(y,c[e>>2]|0);c[e>>2]=0;c[b+396>>2]=0}Sc(c[b+520>>2]|0);if(!(a[b+451>>0]|0))gg(y,c[b+484>>2]|0);if(a[b+449>>0]|0)Mn(y,c[b+532>>2]|0);fg(y,c[b+488>>2]|0);h=c[b+444>>2]|0;k=b+472|0;g=c[k>>2]|0;if((h|0)>0)do{h=h+-1|0;ig(y,c[g+(h<<2)>>2]|0);g=c[k>>2]|0}while((h|0)>0);ig(y,g);h=b+404|0;g=c[h>>2]|0;if(g)do{c[h>>2]=c[g>>2];ig(y,g);g=c[h>>2]|0}while((g|0)!=0);h=b+524|0;g=c[h>>2]|0;if(g)do{c[h>>2]=c[g+72>>2];gg(y,g);g=c[h>>2]|0}while((g|0)!=0);if((f|0)>0?(c[z>>2]|0)==0:0)c[z>>2]=1}else{a[y+65>>0]=1;f=7}i=A;return f|0}function Ih(a){a=a|0;if(a){if(!((b[a+8>>1]&9312)==0?(c[a+24>>2]|0)==0:0))Mg(a);ig(c[a+32>>2]|0,a)}return}function Jh(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(!(c[d+252>>2]|0)){n=d+251|0;if(a[n>>0]|0)Sc(c[d+276>>2]|0);j=f&-8;h=(j|0)<5?0:j;i=(g|0)<0?0:g;if(!((h|0)==0|(i|0)==0))if(!e){f=c[3164]|0;if(f)jc[f&3]();f=_(h,i)|0;f=mg(f,((f|0)<0)<<31>>31)|0;g=c[3166]|0;if(g)jc[g&3]();if(!f)f=0;else i=(hc[c[8744+48>>2]&127](f)|0)/(j|0)|0}else f=e;else{h=0;f=0}g=d+276|0;c[g>>2]=f;m=d+272|0;c[m>>2]=0;b[d+248>>1]=h;if(!f){c[g>>2]=d;c[d+280>>2]=d;a[d+250>>0]=0;f=0}else{if((i|0)>0){g=_(h,i)|0;l=f+(_(h,i+-1|0)|0)|0;k=0;j=f;while(1){i=i+-1|0;c[j>>2]=k;if((i|0)<=0)break;else{k=j;j=j+h|0}}c[m>>2]=l;f=f+g|0}c[d+280>>2]=f;a[d+250>>0]=1;f=(e|0)==0&1}a[n>>0]=f;f=0}else f=5;return f|0}function Kh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q;do if(!b)e=0;else{l=b+76|0;n=c[l>>2]|0;if(!((n|0)==1266094736|(n|0)==-1607883113|(n|0)==-264537850)){c[p>>2]=15248;Zc(21,15256,p);c[p>>2]=128509;c[p+4>>2]=10788;Zc(21,13648,p);e=21;break}m=b+20|0;e=c[m>>2]|0;a:do if((e|0)>0){n=b+16|0;f=c[n>>2]|0;h=0;do{g=c[f+(h<<4)+4>>2]|0;if(g)c[(c[g+4>>2]|0)+4>>2]=c[g>>2];h=h+1|0}while((h|0)!=(e|0));k=0;while(1){e=c[f+(k<<4)+12>>2]|0;if((e|0)!=0?(o=c[e+16>>2]|0,(o|0)!=0):0){e=o;do{f=c[e+8>>2]|0;b:do if(a[f+44>>0]&16){g=f+60|0;while(1){f=c[g>>2]|0;if(!f)break b;h=f+24|0;if((c[f>>2]|0)==(b|0))break;else g=h}c[g>>2]=c[h>>2];wn(f)}while(0);e=c[e>>2]|0}while((e|0)!=0)}e=k+1|0;if((e|0)>=(c[m>>2]|0))break a;f=c[n>>2]|0;k=e}}while(0);nl(b);Nn(b,68);if((d|0)==0?(Fl(b)|0)!=0:0){qg(b,5,16368,p);e=5;break}c[l>>2]=1691352191;Ig(b);e=0}while(0);i=q;return e|0}function Lh(a,b){a=a|0;b=b|0;if(((b*1e3|0)+1e3|0)>(c[a+492>>2]|0))b=0;else{b=c[a>>2]|0;nc[c[b+60>>2]&127](b,1e6)|0;b=1}return b|0}function Mh(d,f,g,h,k,l,m,n,o){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();t=v;do if(f){r=(l|0)!=0;p=(n|0)!=0;if(r)if(p|(m|0)!=0){u=8;break}else{p=0;q=0}else{q=(m|0)!=0;if(!(q|p^1)){u=8;break}}if(!(q&((r|p)^1)|(g|0)<-1|(g|0)>127)){p=f;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;q=p-f&1073741823;if(q>>>0<=255){s=h&2048;p=h&7;if((p|0)!=4){if((p|0)==5){p=Mh(d,f,g,s|1,k,l,m,n,o)|0;if(p)break;p=Mh(d,f,g,s|2,k,l,m,n,o)|0;if(!p)p=3;else break}}else p=2;r=p&255;h=Oh(d,f,q,g,r,0)|0;if(((h|0)!=0?(e[h+2>>1]&3|0)==(p|0):0)?(b[h>>1]|0)==(g|0):0){if(c[d+148>>2]|0){qg(d,5,15424,t);p=5;break}p=c[d+4>>2]|0;if(p)do{t=p+88|0;b[t>>1]=b[t>>1]|8;p=c[p+52>>2]|0}while((p|0)!=0)}p=Oh(d,f,q,g,r,1)|0;if(!p)p=7;else{Jl(d,p);if(o)c[o>>2]=(c[o>>2]|0)+1;c[p+32>>2]=o;o=p+2|0;b[o>>1]=e[o>>1]&3|s;c[p+12>>2]=l;c[p+16>>2]=m;c[p+20>>2]=n;c[p+4>>2]=k;b[p>>1]=g;p=0}}else u=8}else u=8}else u=8;while(0);if((u|0)==8){c[t>>2]=129075;c[t+4>>2]=10788;Zc(21,13648,t);p=21}i=v;return p|0}function Nh(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))ba();k=l;g=k+0|0;h=g+40|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));c[k+32>>2]=d;Tg(k,e,f,2,0)|0;f=k+8|0;e=c[f>>2]|0;if(!((e&2|0)==0|(e&16711680|0)==65536))xn(k,1)|0;if(!(a[d+65>>0]|0))f=c[k+16>>2]|0;else{if(!((b[f>>1]&9312)==0?(c[k+24>>2]|0)==0:0))Mg(k);c[k+16>>2]=0;f=0}i=l;return f|0}function Oh(e,f,g,h,i,j){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=((d[9328+(d[f>>0]|0)>>0]|0)+g|0)%23|0;o=e+336|0;l=Nk(o,n,f,g)|0;if(!l){m=0;k=0}else{m=0;k=0;do{q=On(l,h,i)|0;p=(q|0)>(m|0);m=p?q:m;k=p?l:k;l=c[l+8>>2]|0}while((l|0)!=0)}do if(!(j<<24>>24)){if((k|0)!=0?(c[e+24>>2]&2097152|0)==0:0){l=0;n=12;break}l=Nk(10840,n,f,g)|0;if(!l){m=0;n=8}else{m=0;do{p=On(l,h,i)|0;n=(p|0)>(m|0);m=n?p:m;k=n?l:k;l=c[l+8>>2]|0}while((l|0)!=0);n=8}}else n=8;while(0);do if((n|0)==8){l=j<<24>>24!=0;if(l&(m|0)<6){l=g+37|0;k=ih(e,l,0)|0;if(!k){n=14;break}bw(k|0,0,l|0)|0;l=k+36|0;c[k+24>>2]=l;b[k>>1]=h;b[k+2>>1]=i&255;gw(l|0,f|0,g|0)|0;a[k+(g+36)>>0]=0;jg(o,k);l=1}if(!k)n=14;else n=12}while(0);if((n|0)==12)if((c[k+16>>2]|0)==0?!((c[k+12>>2]|0)!=0|l):0)n=14;if((n|0)==14)k=0;return k|0}function Ph(b,d,e){b=b|0;d=d|0;e=e|0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();e=d;c[e>>2]=c[(c[b+4>>2]|0)+24>>2];e=Wc(15304,e)|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,e,-1,1,-1)|0;Sc(e);i=d;return}function Qh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if((a|0)<=(e|0)){e=c[3164]|0;if(e)jc[e&3]();Gf(b,d,0,0,0)|0;e=c[3166]|0;if(e)jc[e&3]()}return 0}function Rh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;g=e-d&1073741823;f=c[b+20>>2]|0;e=f+-1|0;if((f|0)>0){h=e;f=(c[b+16>>2]|0)+(e<<4)|0;while(1){b=c[f>>2]|0;if(!b)e=0;else{e=b;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-b&1073741823}if((g|0)==(e|0)?($c(b,d)|0)==0:0){e=h;break a}e=h+-1|0;if((h|0)>0){h=e;f=f+-16|0}else break}}}else e=-1;while(0);return e|0}function Sh(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=b+20|0;i=c[q>>2]|0;if((i|0)>0){r=(e|0)==10;o=b+16|0;p=(f|0)==0;m=g;b=i;g=0;n=0;while(1){if((n|0)==(e|0)|r){j=c[(c[o>>2]|0)+(n<<4)+4>>2]|0;if(j){i=c[j+4>>2]|0;c[i+4>>2]=c[j>>2];if(!(a[i+20>>0]|0)){j=c[i>>2]|0;k=c[j+208>>2]|0;if(!k)k=0;else{if(p)i=0;else i=c[j+176>>2]|0;k=Pn(k,f,i,c[j+180>>2]|0,d[j+9>>0]|0,c[j+152>>2]|0,c[j+200>>2]|0,m,h)|0;b=c[q>>2]|0}}else k=6}else k=0;h=(k|0)==5;l=0;j=0;i=b;g=h?1:g;h=h?0:k}else{l=h;j=m;i=b;h=0}n=n+1|0;b=(h|0)==0;if(!((n|0)<(i|0)&b))break;else{m=j;h=l;b=i}}}else{b=1;g=0;h=0}return (b&(g|0)!=0?5:h)|0}function Th(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))ba();s=w;t=w+20|0;o=w+16|0;n=w+12|0;m=w+8|0;c[o>>2]=f;c[n>>2]=0;c[m>>2]=0;c[e>>2]=0;h=Hc()|0;do if(!h){if(!(1<<(f&7)&70)){c[s>>2]=130207;c[s+4>>2]=10788;Zc(21,13648,s);h=21;break}if((c[2187]|0)!=0&(f&32768|0)==0)l=(f&65536|0)==0?c[2188]|0:1;else l=0;if(!(f&262144)){if(c[2241]|0){f=f|131072;c[o>>2]=f}}else{f=f&-131073;c[o>>2]=f}f=f&-655129;c[o>>2]=f;v=mg(528,0)|0;a:do if(v){bw(v|0,0,528)|0;if(l)c[v+12>>2]=8;c[v+56>>2]=255;c[v+20>>2]=2;p=v+76|0;c[p>>2]=-264537850;q=v+16|0;c[q>>2]=v+456;k=v+88|0;l=11088;h=k+44|0;do{c[k>>2]=c[l>>2];k=k+4|0;l=l+4|0}while((k|0)<(h|0));c[v+132>>2]=0;a[v+63>>0]=1;a[v+67>>0]=-1;k=8920;r=c[k+4>>2]|0;l=v+40|0;c[l>>2]=c[k>>2];c[l+4>>2]=r;c[v+72>>2]=0;c[v+136>>2]=2147483647;c[v+24>>2]=9437264;l=v+428|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;r=v+308|0;c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;c[r+12>>2]=0;Uh(v,11152,1,0,21,0)|0;Uh(v,11152,3,0,21,0)|0;Uh(v,11152,2,0,21,0)|0;Uh(v,13752,1,0,22,0)|0;Uh(v,13760,1,1,21,0)|0;r=v+65|0;if(!(a[r>>0]|0)){l=Zm(l,11152,s)|0;if(!l)l=0;else l=c[l+8>>2]|0;c[v+8>>2]=l;c[v+48>>2]=f;l=Sn(g,d,o,v,n,m)|0;if((l|0)==7)a[r>>0]=1;else if(!l){d=c[n>>2]|0;h=vm(c[v>>2]|0,d,v,(c[q>>2]|0)+4|0,0,c[o>>2]|256)|0;if(!h){f=c[(c[q>>2]|0)+4>>2]|0;c[(c[f+4>>2]|0)+4>>2]=c[f>>2];f=Tn(v,f)|0;c[(c[q>>2]|0)+12>>2]=f;if(!(a[r>>0]|0))a[v+62>>0]=a[f+77>>0]|0;f=mg(84,0)|0;if(!f){a[r>>0]=1;f=0}else{k=f+0|0;h=k+84|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));l=f+77|0;k=f+8|0;h=k+64|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(h|0));a[l>>0]=1}o=c[q>>2]|0;c[o+28>>2]=f;c[o>>2]=13768;a[o+8>>0]=3;c[o+16>>2]=10728;a[o+24>>0]=1;c[p>>2]=-1607883113;if(a[r>>0]|0){h=v;break}k=v+52|0;c[k>>2]=0;l=v+236|0;f=c[l>>2]|0;do if(f){h=f+8|0;if(!(b[h>>1]&9312)){b[h>>1]=1;break}else{rg(f);break}}while(0);if((yf(v,14632,2)|0)==7)a[r>>0]=1;f=Jf(v)|0;do if(!f){f=c[2656]|0;if(f){b:do if((f|0)>0){k=0;while(1){f=c[(c[2658]|0)+(k<<2)>>2]|0;c[t>>2]=0;if(f){h=Yb[f&63](v,t,13776)|0;f=c[t>>2]|0;if(h)break}else f=0;Sc(f);k=k+1|0;if((k|0)>=(c[2656]|0)){u=40;break b}}c[s>>2]=f;qg(v,h,14592,s);h=c[t>>2]|0}else u=40;while(0);if((u|0)==40){c[t>>2]=0;h=0}Sc(h)}if(Jf(v)|0){h=v;break a}}else{c[k>>2]=f;h=c[l>>2]|0;if(h){f=h+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;break}else{rg(h);break}}}while(0);Jh(v,0,c[2193]|0,c[2194]|0)|0;c[v+216>>2]=21;c[v+220>>2]=1e3;h=v;break}else if((h|0)==3082)h=7;c[v+52>>2]=h;f=c[v+236>>2]|0;if(!f){h=v;break}h=f+8|0;if(!(b[h>>1]&9312)){b[h>>1]=1;h=v;break}else{rg(f);h=v;break}}d=c[m>>2]|0;c[s>>2]=d;qg(v,l,(d|0)!=0?10344:0,s);Sc(d);d=c[n>>2]|0;h=v}else{d=0;h=v}}else{d=0;h=0}while(0);Sc(d);f=Jf(h)|0;if((f|0)==7){Kh(h,0)|0;h=0}else if(f)c[v+76>>2]=1266094736;c[e>>2]=h;h=f&255}while(0);i=w;return h|0}function Uh(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();m=s;r=g&255;if(!(g<<24>>24==4|g<<24>>24==8))if((r+-1|0)>>>0>2){c[m>>2]=129758;c[m+4>>2]=10788;Zc(21,13648,m);m=21}else{q=r;n=4}else{q=2;n=4}do if((n|0)==4){p=q&255;n=Un(e,p,f,0)|0;if((n|0)!=0?(c[n+12>>2]|0)!=0:0){if(c[e+148>>2]|0){qg(e,5,13680,m);m=5;break}g=c[e+4>>2]|0;if(g)do{o=g+88|0;b[o>>1]=b[o>>1]|8;g=c[g+52>>2]|0}while((g|0)!=0);o=n+4|0;if((d[o>>0]&247|0)==(q|0)){g=Zm(e+428|0,f,m)|0;if(!g)n=0;else n=c[g+8>>2]|0;m=0;do{if((a[n+(m*20|0)+4>>0]|0)==(a[o>>0]|0)){g=c[n+(m*20|0)+16>>2]|0;if(g)_b[g&31](c[n+(m*20|0)+8>>2]|0);c[n+(m*20|0)+12>>2]=0}m=m+1|0}while((m|0)!=3)}}g=Un(e,p,f,1)|0;if(g){c[g+12>>2]=k;c[g+8>>2]=h;c[g+16>>2]=l;a[g+4>>0]=q|r&8;c[e+52>>2]=0;m=c[e+236>>2]|0;if(m){g=m+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;m=0;break}else{rg(m);m=0;break}}else m=0}else m=7}while(0);i=s;return m|0}function Vh(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;l=d+24|0;m=c[l>>2]&2;n=d+145|0;a[n>>0]=1;k=d+16|0;i=c[k>>2]|0;a[d+62>>0]=a[(c[i+12>>2]|0)+77>>0]|0;h=d+20|0;g=0;while(1){if((g|0)>=(c[h>>2]|0)){g=i;i=6;break}if(!((g|0)==1?1:(b[(c[i+(g<<4)+12>>2]|0)+78>>1]&1)!=0)?(f=Vn(d,g,e)|0,(f|0)!=0):0){i=9;break}i=c[k>>2]|0;g=g+1|0}if((i|0)==6)if((b[(c[g+28>>2]|0)+78>>1]&1)==0?(j=Vn(d,1,e)|0,(j|0)!=0):0){ml(c[(c[k>>2]|0)+28>>2]|0);f=j}else f=0;else if((i|0)==9)rm(d,g);a[n>>0]=0;if(!(f|m))c[l>>2]=c[l>>2]&-3;return f|0}function Wh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;k=a+20|0;a:do if((c[k>>2]|0)>0){l=(d|0)==0;g=a+16|0;h=0;a=0;do{f=(h|0)<2^h;e=c[g>>2]|0;if(!(!l?($c(d,c[e+(f<<4)>>2]|0)|0)!=0:0)){a=Zm((c[e+(f<<4)+12>>2]|0)+8|0,b,m)|0;if(a){a=c[a+8>>2]|0;if(a)break a}else a=0}h=h+1|0}while((h|0)<(c[k>>2]|0))}else a=0;while(0);i=n;return a|0}function Xh(a){a=a|0;if(($c(a,12936)|0)!=0?($c(a,12944)|0)!=0:0)a=($c(a,12952)|0)==0&1;else a=1;return a|0}function Yh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=c[a+20>>2]|0;a:do if((g|0)>0){d=c[a+16>>2]|0;e=(b|0)==0;f=0;while(1){a=c[d+(f<<4)+4>>2]|0;if(a){if(e)break a;if(!($c(b,c[d+(f<<4)>>2]|0)|0))break a}f=f+1|0;if((f|0)>=(g|0)){a=0;break}}}else a=0;while(0);return a|0}function Zh(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:do if(!b)e=0;else{e=e+-1|0;b:do if((c[b>>2]|0)>>>0>4e3){g=b;f=e;while(1){e=g+8|0;h=c[e>>2]|0;if(!h){j=b;break}e=(f>>>0)%(h>>>0)|0;f=g+12+(((f>>>0)/(h>>>0)|0)<<2)|0;b=c[f>>2]|0;if(!b){b=mg(512,0)|0;if(!b){e=b;l=21;break}bw(b|0,0,512)|0;c[b>>2]=h;c[f>>2]=b}if((c[b>>2]|0)>>>0>4e3){g=b;f=e}else break b}if((l|0)==21){c[f>>2]=e;e=7;break a}k=f+1|0;f=(f>>>0)%125|0;i=g+12|0;b=c[g+(f<<2)+12>>2]|0;if(!b){b=c[g+4>>2]|0;if(b>>>0<124){e=g;l=20}}else{do{if((b|0)==(k|0)){e=0;break a}f=f+1|0;f=f>>>0>124?0:f;b=c[g+(f<<2)+12>>2]|0}while((b|0)!=0);b=c[g+4>>2]|0;if(b>>>0<=61){e=g;l=20}}if((l|0)==20){c[g+4>>2]=b+1;c[e+(f<<2)+12>>2]=k;e=0;break a}h=mg(500,0)|0;if(!h){e=7;break a}gw(h|0,i|0,500)|0;bw(i|0,0,500)|0;c[e>>2]=(((c[j>>2]|0)+124|0)>>>0)/125|0;b=0;e=Zh(g,k)|0;do{f=c[h+(b<<2)>>2]|0;if(f)e=Zh(g,f)|0|e;b=b+1|0}while((b|0)!=125);Sc(h);break a}while(0);b=b+12+(e>>>3)|0;a[b>>0]=d[b>>0]|0|1<<(e&7);e=0}while(0);return e|0}function _h(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;a:do if(b){g=e+-1|0;while(1){e=c[b+8>>2]|0;if(!e)break;b=c[b+12+(((g>>>0)/(e>>>0)|0)<<2)>>2]|0;if(!b)break a;else g=(g>>>0)%(e>>>0)|0}if((c[b>>2]|0)>>>0<4001){b=b+12+(g>>>3)|0;a[b>>0]=(d[b>>0]|0)&(1<<(g&7)^255);break}k=b+12|0;gw(f|0,k|0,500)|0;bw(k|0,0,500)|0;k=b+4|0;c[k>>2]=0;h=g+1|0;j=0;do{i=f+(j<<2)|0;e=c[i>>2]|0;if(!((e|0)==0|(e|0)==(h|0))){g=((e+-1|0)>>>0)%125|0;c[k>>2]=(c[k>>2]|0)+1;e=b+(g<<2)+12|0;if(c[e>>2]|0)do{e=g+1|0;g=e>>>0>124?0:e;e=b+(g<<2)+12|0}while((c[e>>2]|0)!=0);c[e>>2]=c[i>>2]}j=j+1|0}while((j|0)!=125)}while(0);return}function $h(a,b){a=a|0;b=b|0;var e=0,f=0;a:do if((a|0)!=0?(e=b+-1|0,e>>>0<(c[a>>2]|0)>>>0):0){while(1){b=c[a+8>>2]|0;if(!b)break;a=c[a+12+(((e>>>0)/(b>>>0)|0)<<2)>>2]|0;if(!a){e=0;break a}else e=(e>>>0)%(b>>>0)|0}if((c[a>>2]|0)>>>0<4001){e=((d[a+12+(e>>>3)>>0]|0)&1<<(e&7)|0)!=0&1;break}f=e+1|0;e=(e>>>0)%125|0;b=c[a+(e<<2)+12>>2]|0;if(b)while(1){if((b|0)==(f|0)){e=1;break a}e=((e+1|0)>>>0)%125|0;b=c[a+(e<<2)+12>>2]|0;if(!b){e=0;break}}else e=0}else e=0;while(0);return e|0}function ai(a){a=a|0;var b=0,d=0;if(a){if(c[a+8>>2]|0){b=a+12|0;d=0;do{ai(c[b+(d<<2)>>2]|0);d=d+1|0}while((d|0)!=125)}Sc(a)}return}function bi(b,c){b=b|0;c=c|0;var f=0;a:do if((c|0)>=2?(f=a[11824+(((d[9328+(d[b>>0]|0)>>0]|0)<<2^c^(d[9328+(d[b+(c+-1)>>0]|0)>>0]|0)*3|0)%127|0)>>0]|0,f<<24>>24!=0):0){f=f&255;while(1){f=f+-1|0;if((d[12080+f>>0]|0|0)==(c|0)?(Bc(11264+(e[12208+(f<<1)>>1]|0)|0,b,c)|0)==0:0)break;f=a[11952+f>>0]|0;if(!(f<<24>>24)){f=27;break a}else f=f&255}f=d[12456+f>>0]|0}else f=27;while(0);return f|0}function ci(a){a=a|0;var b=0,d=0,e=0;c[2174]=a;if((c[2184]|0)>>>0<a>>>0)c[2184]=a;d=c[2264]|0;if((d|0)==0|(c[2235]|0)<(a|0)){b=mg(a,((a|0)<0)<<31>>31)|0;if((c[2186]|0)!=0&(b|0)!=0?(e=hc[c[8744+48>>2]&127](b)|0,e=(c[2170]|0)+e|0,c[2170]=e,e>>>0>(c[2180]|0)>>>0):0)c[2180]=e}else{b=c[2263]|0;c[2263]=c[b>>2];c[2264]=d+-1;a=(c[2169]|0)+1|0;c[2169]=a;if(a>>>0>(c[2179]|0)>>>0)c[2179]=a}return b|0}function di(a){a=a|0;var b=0;do if(a){if((c[2234]|0)>>>0<=a>>>0&(c[2262]|0)>>>0>a>>>0){c[a>>2]=c[2263];c[2263]=a;c[2264]=(c[2264]|0)+1;c[2169]=(c[2169]|0)+-1;break}if(!(c[2186]|0)){_b[c[8744+40>>2]&31](a);break}else{b=hc[c[8744+48>>2]&127](a)|0;c[2170]=(c[2170]|0)-b;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;_b[c[8744+40>>2]&31](a);break}}while(0);return}function ei(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;g=a[b>>0]|0;a:do if(((g&255)+-48|0)>>>0>=10){k=g;g=b;while(1){h=g+1|0;if(!(k<<24>>24))break;k=a[h>>0]|0;g=h}k=g-b&1073741823;g=7-e|0;if((g|0)>0){h=0;while(1){if((d[11248+h>>0]|0|0)==(k|0)?(Bc(11216+(d[11240+h>>0]|0)|0,b,k)|0)==0:0){f=h;break}h=h+1|0;if((h|0)>=(g|0))break a}f=a[11256+f>>0]|0}}else{c[h>>2]=0;zn(b,h)|0;f=c[h>>2]&255}while(0);i=l;return f|0}function fi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=a[b>>0]|0;do if(e<<24>>24==48){f=a[b+1>>0]|0;if(!(f<<24>>24==88|f<<24>>24==120))if(!b){e=0;k=15;break}else{g=e;e=b;k=12;break}e=a[b+2>>0]|0;if(!(a[10368+(e&255)>>0]&8)){g=48;e=b;k=12}else{g=2;while(1){f=g+1|0;if(e<<24>>24!=48)break;e=a[b+f>>0]|0;g=f}if(!(a[10368+(e&255)>>0]&8)){h=b+g|0;i=0;e=0;f=g}else{i=0;h=0;f=g;while(1){i=ew(i|0,h|0,4)|0;j=C;h=e<<24>>24;i=(0-(h>>>6&1)&9)+h&15|i;f=f+1|0;h=b+f|0;e=a[h>>0]|0;if(!(a[10368+(e&255)>>0]&8)){e=j;break}else h=j}}j=d;c[j>>2]=i;c[j+4>>2]=e;if(!(a[h>>0]|0))e=(f-g|0)<17;else e=0;e=e&1^1}}else{g=e;e=b;k=12}while(0);if((k|0)==12){while(1){f=e+1|0;if(!(g<<24>>24))break;g=a[f>>0]|0;e=f;k=12}e=e-b&1073741823;k=15}if((k|0)==15)e=Ql(b,d,e,1)|0;return e|0}function gi(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+1264|0;if((i|0)>=(j|0))ba();B=D;A=D+152|0;u=D+742|0;v=D+76|0;r=D+228|0;o=h&-256;s=h&16;z=h&8;t=h&4;n=h&1;w=h&2;if((t|0)!=0?(o|0)==524288|(o|0)==2048|(o|0)==16384:0)y=1;else y=0;x=c[12114]|0;if((x|0)!=(nb()|0)?(c[12114]=nb()|0,(Hc()|0)==0):0)a[9064]=0;p=g+0|0;q=p+44|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(q|0));x=(o|0)==256;do if(x){a:do if((nc[c[47552+52>>2]&127](f,B)|0)==0?(l=c[12178]|0,(l|0)!=0):0){o=c[B>>2]|0;p=c[B+72>>2]|0;while(1){if((c[l>>2]|0)==(o|0)?(c[l+4>>2]|0)==(p|0):0)break;l=c[l+32>>2]|0;if(!l){C=18;break a}}o=l+28|0;l=c[o>>2]|0;if(l){while(1){q=o;o=l+8|0;p=l;l=c[o>>2]|0;if((c[p+4>>2]|0)==(h|0)){o=q;break}if(!l){C=18;break a}}c[o>>2]=l;r=c[p>>2]|0;l=p}else C=18}else C=18;while(0);if((C|0)==18){l=Pc(12)|0;if(!l){l=7;break}else r=-1}c[g+28>>2]=l;o=t<<4|w;l=(s|0)!=0;if((r|0)<0){t=l;s=l?o|131200:o;l=f;C=23}else{q=r;l=f;C=36}}else{if(!f){l=Wn(514,r)|0;if(!l)l=r;else break}else l=f;C=t<<4|w;s=(s|0)!=0;t=s;s=s?C|131200:C;C=23}while(0);b:do if((C|0)==23){if(!(h&526336)){o=(z|0)==0?0:384;r=0;q=0}else{if(!l)o=0;else{o=l;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-l&1073741823}do o=o+-1|0;while((a[l+o>>0]|0)!=45);gw(u|0,l|0,o|0)|0;a[u+o>>0]=0;if(nc[c[47552+52>>2]&127](u,v)|0){l=1802;break}o=c[v+12>>2]&511;r=c[v+20>>2]|0;q=c[v+24>>2]|0}p=Xn(l,s,o)|0;do if((p|0)<0){if(!(t|((w|0)==0|(c[(Db()|0)>>2]|0)==21))?(m=Xn(l,s&131200,o)|0,(m|0)>=0):0){h=h&-8|1;n=1;break}c[B>>2]=31186;c[B+4>>2]=10788;Zc(14,14848,B);l=_n(14,47896,l,31186)|0;if(!l){l=0;break b}m=g+28|0;C=70;break b}else m=p;while(0);if(!(h&526336)){q=m;C=36}else{Yb[c[47552+244>>2]&63](m,r,q)|0;q=m;C=36}}while(0);c:do if((C|0)==36){if(k)c[k>>2]=h;r=g+28|0;m=c[r>>2]|0;if(m){c[m>>2]=q;c[m+4>>2]=h}if(z)hc[c[47552+196>>2]&127](l)|0;l=z<<2;l=(n|0)==0?l:l|2;l=x?l:l|128;l=y?l|8:l;z=l|h&64;c[g+12>>2]=q;c[g+4>>2]=d;c[g+32>>2]=f;m=g+18|0;b[m>>1]=z&255;if(bg((z&64|0)!=0?f:0,48496,1)|0)b[m>>1]=e[m>>1]|16;if(!(Wv(c[d+16>>2]|0,1e4)|0))b[m>>1]=e[m>>1]|1;d:do if(!(l&128)){l=nc[c[c[d+20>>2]>>2]&127](f,g)|0;if((l|0)!=48504){if((l|0)!=47472){C=64;break}m=(cw(f|0)|0)+6|0;l=Pc(m)|0;if(l){c[B>>2]=f;Yc(m,l,48584,B)|0;c[g+24>>2]=l;c[g+20>>2]=0;l=47472;break}c[g+24>>2]=0;c[g+20>>2]=0;if((q|0)<=-1){m=r;l=7;C=70;break c}Yn(g,q,30794);m=r;l=7;C=70;break c}do if(!(nc[c[47552+64>>2]&127](c[g+12>>2]|0,A)|0)){l=B;c[l>>2]=0;c[l+4>>2]=0;c[B>>2]=c[A>>2];c[B+4>>2]=c[A+72>>2];l=c[12178]|0;e:do if(!l)C=53;else{while(1){if(!(Vv(B,l,8)|0))break;l=c[l+32>>2]|0;if(!l){C=53;break e}}B=l+16|0;c[B>>2]=(c[B>>2]|0)+1}while(0);if((C|0)==53){m=Pc(40)|0;if(!m){l=7;m=g+20|0;break}p=m+0|0;q=p+40|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(q|0));C=c[B+4>>2]|0;l=m;c[l>>2]=c[B>>2];c[l+4>>2]=C;c[m+16>>2]=1;c[m+32>>2]=c[12178];c[m+36>>2]=0;l=c[12178]|0;if(l)c[l+36>>2]=m;c[12178]=m;l=m}c[g+8>>2]=l;l=48504;C=64;break d}else{l=c[(Db()|0)>>2]|0;m=g+20|0;c[m>>2]=l;l=(l|0)==75?22:10}while(0);Yn(g,q,30709);c[m>>2]=0;m=r;C=70;break c}else{l=48376;C=64}while(0);if((C|0)==64)c[g+20>>2]=0;c[g>>2]=l;Zn(g);l=0}while(0);if((C|0)==70)Sc(c[m>>2]|0);i=D;return l|0}function hi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;do if((hc[c[47552+196>>2]&127](b)|0)==-1)if((c[(Db()|0)>>2]|0)==2)a=5898;else a=_n(2570,48032,b,31314)|0;else if(d&1){a=nc[c[47552+208>>2]&127](b,e)|0;if((a|0)==14){a=0;break}else if(a)break;if(!(Cb(c[e>>2]|0)|0))a=0;else a=_n(1290,48488,b,31329)|0;if(hc[c[47552+16>>2]&127](c[e>>2]|0)|0)_n(4106,47856,0,31331)|0}else a=0;while(0);i=f;return a|0}function ii(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+80|0;if((i|0)>=(j|0))ba();f=g;if((d|0)==2)a=4;else if((d|0)==1)a=6;else a=0;a=(nc[c[47552+28>>2]&127](b,a)|0)==0;c[e>>2]=a&1;if((!((d|0)!=0|a^1)?(nc[c[47552+52>>2]&127](b,f)|0)==0:0)?(c[f+36>>2]|0)==0:0)c[e>>2]=0;i=g;return 0}function ji(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;b=e+-1|0;a[f+b>>0]=0;do if((a[d>>0]|0)!=47)if(!(nc[c[47552+40>>2]&127](f,b)|0)){c[g>>2]=31416;c[g+4>>2]=10788;Zc(14,14848,g);b=_n(14,47904,d,31416)|0;break}else{b=cw(f|0)|0;c[g>>2]=d;Yc(e-b|0,f+b|0,48480,g)|0;b=0;break}else{c[g>>2]=d;Yc(e,f,10344,g)|0;b=0}while(0);i=h;return b|0}function ki(a,b){a=a|0;b=b|0;return zb(b|0,258)|0}function li(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;a=Ta()|0;if(a){c[e>>2]=a;Yc(b,d,10344,e)|0}i=f;return}function mi(a,b,c){a=a|0;b=b|0;c=c|0;return Xa(b|0,c|0)|0}function ni(a,b){a=a|0;b=b|0;Ab(b|0)|0;return}function oi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;bw(e|0,0,d|0)|0;c[12114]=nb()|0;b=Xn(48464,0,0)|0;if((b|0)>=0){do if((Yb[c[47552+100>>2]&63](b,e,d)|0)>=0)break;while((c[(Db()|0)>>2]|0)==4);if(hc[c[47552+16>>2]&127](b)|0)_n(4106,47856,0,31521)|0}else{Lb(f|0)|0;d=c[f>>2]|0;a[e>>0]=d;a[e+1>>0]=d>>8;a[e+2>>0]=d>>16;a[e+3>>0]=d>>24;d=e+4|0;b=c[12114]|0;a[d>>0]=b;a[d+1>>0]=b>>8;a[d+2>>0]=b>>16;a[d+3>>0]=b>>24;d=8}i=g;return d|0}function pi(a,b){a=a|0;b=b|0;a=(b+999999|0)/1e6|0;Ib(a|0)|0;return a*1e6|0}function qi(a,b){a=a|0;b=b|0;var d=0,e=0;a=i;i=i+16|0;if((i|0)>=(j|0))ba();e=a;d=e;c[d>>2]=0;c[d+4>>2]=0;d=si(0,e)|0;h[b>>3]=(+((c[e>>2]|0)>>>0)+4294967296.0*+(c[e+4>>2]|0))/864.0e5;i=a;return d|0}function ri(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function si(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();a=d;if(!(Ob(a|0,0)|0)){f=c[a>>2]|0;f=ow(f|0,((f|0)<0)<<31>>31|0,1e3,0)|0;f=fw(f|0,C|0,1045635584,49096)|0;e=(c[a+4>>2]|0)/1e3|0;e=fw(f|0,C|0,e|0,((e|0)<0)<<31>>31|0)|0;a=b;c[a>>2]=e;c[a+4>>2]=C;a=0}else a=1;i=d;return a|0}function ti(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a:do if(!b){a=0;do{b=c[47560+(a*12|0)>>2]|0;if(b)c[47556+(a*12|0)>>2]=b;a=a+1|0}while((a|0)!=25);b=0}else{a=0;while(1){if(!(Wv(b,c[47552+(a*12|0)>>2]|0)|0)){e=a;break}a=a+1|0;if(a>>>0>=25){b=12;break a}}b=47560+(e*12|0)|0;a=c[b>>2]|0;if(!a){a=c[47556+(e*12|0)>>2]|0;c[b>>2]=a}c[47556+(e*12|0)>>2]=(d|0)==0?a:d;b=0}while(0);return b|0}function ui(a,b){a=a|0;b=b|0;var d=0;a=0;while(1){if(!(Wv(b,c[47552+(a*12|0)>>2]|0)|0)){d=4;break}a=a+1|0;if(a>>>0>=25){a=0;break}}if((d|0)==4)a=c[47556+(a*12|0)>>2]|0;return a|0}function vi(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)a=-1;else{d=0;while(1){a=d+1|0;if(!(Wv(b,c[47552+(d*12|0)>>2]|0)|0)){a=d;break a}if((a|0)<24)d=a;else break}}while(0);while(1){a=a+1|0;if((a|0)>=25){a=0;break}if(c[47556+(a*12|0)>>2]|0){e=6;break}}if((e|0)==6)a=c[47552+(a*12|0)>>2]|0;return a|0}function wi(a,b){a=a|0;b=b|0;return 48504}function xi(a,b){a=a|0;b=b|0;return 48376}function yi(a,b){a=a|0;b=b|0;return 47472}function zi(a){a=a|0;var b=0,d=0;b=c[a+4>>2]|0;if(b)do{d=b;b=c[b>>2]|0;Sc(d)}while((b|0)!=0);b=a+0|0;d=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));c[a>>2]=14696;return 0}function Ai(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=a+24|0;k=l;if(((c[k>>2]|0)!=(e|0)?1:(c[k+4>>2]|0)!=(f|0))|(e|0)==0&(f|0)==0){g=c[a+4>>2]|0;if(!((g|0)==0|((f|0)<0|(f|0)==0&e>>>0<1020))){h=1020;i=0;do{h=fw(h|0,i|0,1020,0)|0;i=C;g=c[g>>2]|0}while(!((g|0)==0|((i|0)>(f|0)|(i|0)==(f|0)&h>>>0>e>>>0)))}}else g=c[a+32>>2]|0;j=nw(e|0,f|0,1020,0)|0;k=d;h=b;while(1){b=1020-j|0;i=(k|0)<(b|0)?k:b;gw(h|0,g+j+4|0,i|0)|0;k=k-b|0;if((k|0)<=-1)break;g=c[g>>2]|0;if(!((g|0)!=0&(k|0)>0))break;else{j=0;h=h+i|0}}f=fw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0;d=l;c[d>>2]=f;c[d+4>>2]=C;c[a+32>>2]=g;return 0}function Bi(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;a:do if((d|0)>0){i=a+8|0;j=a+16|0;h=a+4|0;e=i;f=c[e>>2]|0;e=c[e+4>>2]|0;while(1){a=c[j>>2]|0;e=nw(f|0,e|0,1020,0)|0;g=1020-e|0;g=(d|0)<(g|0)?d:g;if(!e){f=Pc(1024)|0;if(!f){e=3082;break a}c[f>>2]=0;if(!a){c[h>>2]=f;a=f}else{c[a>>2]=f;a=f}c[j>>2]=a}gw(a+e+4|0,b|0,g|0)|0;d=d-g|0;f=i;f=fw(c[f>>2]|0,c[f+4>>2]|0,g|0,((g|0)<0)<<31>>31|0)|0;e=C;a=i;c[a>>2]=f;c[a+4>>2]=e;if((d|0)<=0){e=0;break}else b=b+g|0}}else e=0;while(0);return e|0}function Ci(a,b,d){a=a|0;b=b|0;d=d|0;b=c[a+4>>2]|0;if(b)do{d=b;b=c[b>>2]|0;Sc(d)}while((b|0)!=0);d=a+0|0;b=d+40|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(b|0));c[a>>2]=14696;return 0}function Di(a,b){a=a|0;b=b|0;return 0}function Ei(a,b){a=a|0;b=b|0;var d=0,e=0;e=a+8|0;d=c[e+4>>2]|0;a=b;c[a>>2]=c[e>>2];c[a+4>>2]=d;return 0}function Fi(a){a=a|0;var b=0;a=12584|0;b=a+68|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(b|0));if(c[2187]|0){c[3146]=8;c[3159]=8}c[3149]=10;c[3153]=1;return 0}function Gi(a){a=a|0;var b=0;a=12584|0;b=a+68|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function Hi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=mg(48,0)|0;if(f){g=f+0|0;h=g+48|0;do{a[g>>0]=0;g=g+1|0}while((g|0)<(h|0));c[f>>2]=12584;c[f+4>>2]=b;c[f+8>>2]=d;e=(e|0)!=0;c[f+12>>2]=e&1;$n(f);if(e){c[f+16>>2]=10;e=c[3148]|0;c[3148]=e+10;c[3149]=(c[3147]|0)+10+(-10-e)}if(!(c[f+40>>2]|0)){Oi(f);f=0}}else f=0;return f|0}function Ii(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(c[a+12>>2]|0){d=c[a>>2]|0;e=a+20|0;g=d+4|0;f=(c[g>>2]|0)+(b-(c[e>>2]|0))|0;c[g>>2]=f;c[d+12>>2]=f+10-(c[d+8>>2]|0);c[e>>2]=b;c[a+24>>2]=((b*9|0)>>>0)/10|0;ao(d)}return}function Ji(a){a=a|0;return c[a+36>>2]|0}function Ki(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=c[(c[b+44>>2]|0)+(((d>>>0)%((c[b+40>>2]|0)>>>0)|0)<<2)>>2]|0;a:do if(f){while(1){if((c[f+8>>2]|0)==(d|0))break;f=c[f+16>>2]|0;if(!f){g=6;break a}}if(!(a[f+12>>0]|0))bo(f)}else g=6;while(0);if((g|0)==6)if(!e)f=0;else f=co(b,d,e)|0;return f|0}function Li(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[b>>2]|0;if((e|0)==0?(c[g+16>>2]|0)>>>0<=(c[g+4>>2]|0)>>>0:0){e=g+20|0;f=c[e>>2]|0;if(!f)c[g+24>>2]=d;else{c[f+28>>2]=d;c[d+24>>2]=f}c[e>>2]=d;f=b+32|0;c[f>>2]=(c[f>>2]|0)+1;a[d+12>>0]=0}else{g=c[d+20>>2]|0;e=(c[g+44>>2]|0)+((((c[d+8>>2]|0)>>>0)%((c[g+40>>2]|0)>>>0)|0)<<2)|0;while(1){b=c[e>>2]|0;f=b+16|0;if((b|0)==(d|0))break;else e=f}c[e>>2]=c[f>>2];f=g+36|0;c[f>>2]=(c[f>>2]|0)+-1;eo(d)}return}function Mi(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=c[a+40>>2]|0;h=a+44|0;d=(c[h>>2]|0)+(((d>>>0)%(g>>>0)|0)<<2)|0;while(1){f=c[d>>2]|0;if((f|0)==(b|0))break;else d=f+16|0}f=b+16|0;c[d>>2]=c[f>>2];c[b+8>>2]=e;d=(c[h>>2]|0)+(((e>>>0)%(g>>>0)|0)<<2)|0;c[f>>2]=c[d>>2];c[d>>2]=b;d=a+28|0;if((c[d>>2]|0)>>>0<e>>>0)c[d>>2]=e;return}function Ni(a,b){a=a|0;b=b|0;var d=0;d=a+28|0;if((c[d>>2]|0)>>>0>=b>>>0){fo(a,b);c[d>>2]=b+-1}return}function Oi(a){a=a|0;var b=0,d=0,e=0,f=0;b=c[a>>2]|0;fo(a,0);f=b+4|0;e=(c[f>>2]|0)-(c[a+20>>2]|0)|0;c[f>>2]=e;f=b+8|0;d=(c[f>>2]|0)-(c[a+16>>2]|0)|0;c[f>>2]=d;c[b+12>>2]=e+10-d;ao(b);Sc(c[a+44>>2]|0);Sc(a);return}function Pi(a){a=a|0;var b=0,d=0;if(c[a+12>>2]|0){d=c[a>>2]|0;a=d+4|0;b=c[a>>2]|0;c[a>>2]=0;ao(d);c[a>>2]=b}return}function Qi(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;b=a+7&-8;a=Sv(b+8|0)|0;if(!a){c[d>>2]=b;Zc(7,16568,d)}else{d=a;c[d>>2]=b;c[d+4>>2]=((b|0)<0)<<31>>31;a=a+8|0}i=e;return a|0}function Ri(a){a=a|0;Tv(a+-8|0);return}function Si(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=a+-8|0;d=Uv(e,b+8|0)|0;if(!d){if(!a)e=0;else e=c[e>>2]|0;c[f>>2]=e;c[f+4>>2]=b;Zc(7,16528,f)}else{e=d;c[e>>2]=b;c[e+4>>2]=((b|0)<0)<<31>>31;d=d+8|0}i=g;return d|0}function Ti(a){a=a|0;if(!a)a=0;else a=c[a+-8>>2]|0;return a|0}function Ui(a){a=a|0;return a+7&-8|0}function Vi(a){a=a|0;return 0}function Wi(a){a=a|0;return}function Xi(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i=c[g>>2]|0;do if((-1431655766>>>(e[i+8>>1]&31)&1|0)==0?(h=Og(i,1)|0,(h|0)!=0):0){i=Pg(c[g>>2]|0,1)|0;if((f|0)!=1){o=Og(c[g+4>>2]|0,1)|0;if(!o)break;f=a[o>>0]|0;if(f<<24>>24){g=0;j=o;while(1){k=j+1|0;if((f&255)>191)while(1){f=a[k>>0]|0;if((f&-64)<<24>>24==-128){n=k;k=j+2|0;j=n}else{j=k;break}}else{f=a[k>>0]|0;j=k}k=g+1|0;if(!(f<<24>>24)){f=k;break}else g=k}if((g|0)>-1){m=ow(f|0,((f|0)<0)<<31>>31|0,5,0)|0;m=go(b,m,C)|0;if(!m)break;l=m+(f<<2)|0;if(a[o>>0]|0){f=o;g=0;while(1){c[m+(g<<2)>>2]=f;k=f+1|0;if((d[f>>0]|0)>191){j=f;while(1)if((a[k>>0]&-64)<<24>>24==-128){n=k;k=j+2|0;j=n}else break}a[l+g>>0]=k-f;j=g+1|0;if(!(a[k>>0]|0))break;else{f=k;g=j}}if((g|0)>-1){n=j;p=17}}}}}else{l=20360;m=20368;n=1;o=0;p=17}if((p|0)==17){f=c[(c[b+4>>2]|0)+4>>2]|0;a:do if((f&1|0)!=0&(i|0)>0){g=(n|0)>0;do{if(g)j=0;else{p=24;break a}while(1){k=d[l+j>>0]|0;if((i|0)>=(k|0)?(Vv(h,c[m+(j<<2)>>2]|0,k)|0)==0:0)break;j=j+1|0;if((j|0)>=(n|0)){p=24;break a}}h=h+k|0;i=i-k|0}while((i|0)>0)}else p=24;while(0);b:do if((p|0)==24)if((f&2|0)!=0&(i|0)>0){g=(n|0)>0;do{if(g)j=0;else break b;while(1){k=d[l+j>>0]|0;if((i|0)>=(k|0)?(q=i-k|0,(Vv(h+q|0,c[m+(j<<2)>>2]|0,k)|0)==0):0){i=q;break}j=j+1|0;if((j|0)>=(n|0))break b}}while((i|0)>0)}while(0);if(o)Sc(m)}Sg(b,h,i,1,-1)}while(0);return}function Yi(a,b,d){a=a|0;b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0;j=((c[(c[a+4>>2]|0)+4>>2]|0)!=0)<<31>>31;i=c[(c[(c[a+12>>2]|0)+4>>2]|0)+(((c[a+16>>2]|0)+-1|0)*20|0)+16>>2]|0;f=c[d>>2]|0;a:do if(!(-1431655766>>>((e[f+8>>1]|0)&31)&1)){if((b|0)>1){h=1;f=0;do{g=c[d+(h<<2)>>2]|0;if(-1431655766>>>((e[g+8>>1]|0)&31)&1)break a;g=((dm(c[d+(f<<2)>>2]|0,g,i)|0)^j|0)>-1;f=g?h:f;h=h+1|0}while((h|0)<(b|0));f=c[d+(f<<2)>>2]|0}Wg(c[a>>2]|0,f)|0}while(0);return}function Zi(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0;i=c[g>>2]|0;f=c[d+8>>2]|0;if(!(b[f+8>>1]&8192))f=hh(d,40)|0;else f=c[f+16>>2]|0;do if(f){h=(b[f+8>>1]|0)!=0;if(-1431655766>>>(e[(c[g>>2]|0)+8>>1]&31)&1){if(!h)break;a[d+24>>0]=1;break}if(!h){c[f+32>>2]=c[(c[d>>2]|0)+32>>2];Wg(f,i)|0;break}h=(c[(c[d+4>>2]|0)+4>>2]|0)!=0;g=dm(f,i,c[(c[(c[d+12>>2]|0)+4>>2]|0)+(((c[d+16>>2]|0)+-1|0)*20|0)+16>>2]|0)|0;if(!(h&(g|0)<0)?!((g|0)>0&(h^1)):0){a[d+24>>0]=1;break}Wg(f,i)|0}while(0);return}function _i(a){a=a|0;var d=0,e=0,f=0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;do if(d){e=d+8|0;if(!((b[e>>1]|0)!=0?(Wg(c[a>>2]|0,d)|0,(b[e>>1]&9312)!=0):0))f=7;if((f|0)==7?(c[d+24>>2]|0)==0:0)break;Mg(d)}while(0);return}function $i(a,b,f){a=a|0;b=b|0;f=f|0;b=d[10064+((e[(c[f>>2]|0)+8>>1]|0)&31)>>0]|0;if((b|0)==2)b=20336;else if((b|0)==4)b=20344;else if((b|0)==1)b=20320;else if((b|0)==3)b=20328;else b=20352;Sg(a,b,-1,1,0);return}function aj(f,g,h){f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;g=c[h>>2]|0;h=d[10064+((e[g+8>>1]|0)&31)>>0]|0;do if((h|0)==2|(h|0)==1|(h|0)==4){j=Pg(g,1)|0;i=c[f>>2]|0;g=((j|0)<0)<<31>>31;h=i+8|0;if(!(b[h>>1]&9312)){c[i>>2]=j;c[i+4>>2]=g;b[h>>1]=4;break}else{Vg(i,j,g);break}}else if((h|0)==3){i=Og(g,1)|0;if(i){g=a[i>>0]|0;if(!(g<<24>>24)){j=0;i=0}else{h=g;g=0;do{g=g+1|0;k=i+1|0;if((h&255)>191){j=i;i=k;while(1){h=a[i>>0]|0;if((h&-64)<<24>>24==-128){h=i;i=j+2|0;j=h}else break}}else{h=a[k>>0]|0;i=k}}while(h<<24>>24!=0);j=g;i=((g|0)<0)<<31>>31}g=c[f>>2]|0;h=g+8|0;if(!(b[h>>1]&9312)){c[g>>2]=j;c[g+4>>2]=i;b[h>>1]=4;break}else{Vg(g,j,i);break}}}else{h=c[f>>2]|0;g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);break}}while(0);return}function bj(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[f>>2]|0;h=b[g+8>>1]|0;i=f+4|0;e=b[(c[i>>2]|0)+8>>1]|0;do if(!((-1431655766>>>(e&31)|-1431655766>>>(h&31))&1)){j=Pg(g,1)|0;l=Pg(c[i>>2]|0,1)|0;f=c[f>>2]|0;if(!((e|h)&15)){e=ld(f)|0;f=0;k=ld(c[i>>2]|0)|0}else{e=Og(f,1)|0;f=1;k=Og(c[i>>2]|0,1)|0}a:do if((l|0)>(j|0)){e=1;g=1}else{g=1;h=j;while(1){if(!(Vv(e,k,l)|0)){e=0;break a}g=g+1|0;i=(f|0)==0;do{h=h+-1|0;e=e+1|0;if(i){f=0;break}}while((a[e>>0]&-64)<<24>>24==-128);if((l|0)>(h|0)){e=1;break}}}while(0);h=c[d>>2]|0;f=e?0:g;e=e?0:((g|0)<0)<<31>>31;g=h+8|0;if(!(b[g>>1]&9312)){c[h>>2]=f;c[h+4>>2]=e;b[g>>1]=4;break}else{Vg(h,f,e);break}}while(0);return}function cj(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=c[g+4>>2]|0;do if(!(-1431655766>>>((e[h+8>>1]|0)&31)&1)){n=(f|0)==3;if(n?(-1431655766>>>((e[(c[g+8>>2]|0)+8>>1]|0)&31)&1|0)!=0:0)break;p=b[(c[g>>2]|0)+8>>1]|0;k=Rg(h)|0;l=((k|0)<0)<<31>>31;p=(p&15)==0;i=c[g>>2]|0;if(p){i=Pg(i,1)|0;j=ld(c[g>>2]|0)|0;if(!j)break;else o=i}else{j=Og(i,1)|0;if(!j)break;if((k|0)<0?(m=a[j>>0]|0,m<<24>>24!=0):0){i=0;h=j;do{f=h+1|0;if((m&255)>191)while(1){m=a[f>>0]|0;if((m&-64)<<24>>24==-128){o=f;f=h+2|0;h=o}else{h=f;break}}else{m=a[f>>0]|0;h=f}i=i+1|0}while(m<<24>>24!=0);o=i}else o=0}if(n){n=Rg(c[g+8>>2]|0)|0;f=((n|0)<0)<<31>>31;g=(n|0)<0;h=$v(0,0,n|0,f|0)|0;h=g?h:n;f=g?C:f;n=n>>>31}else{f=c[(c[(c[d>>2]|0)+32>>2]|0)+88>>2]|0;h=f;f=((f|0)<0)<<31>>31;n=0}do if((k|0)<0){k=fw(o|0,((o|0)<0)<<31>>31|0,k|0,l|0)|0;l=C;if((l|0)<0){h=fw(h|0,f|0,k|0,l|0)|0;f=C;g=(f|0)<0;k=0;l=0;h=g?0:h;f=g?0:f}}else if((k|0)>0){k=fw(k|0,l|0,-1,-1)|0;l=C;break}else{g=((f|0)>0|(f|0)==0&h>>>0>0)<<31>>31;h=fw(g|0,((g|0)<0)<<31>>31|0,h|0,f|0)|0;f=C;break}while(0);if(!n){n=k;m=l}else{n=$v(k|0,l|0,h|0,f|0)|0;m=C;g=(m|0)<0;n=g?0:n;m=g?0:m;h=g?k:h;f=g?l:f}if(p){g=fw(h|0,f|0,n|0,m|0)|0;l=C;i=((o|0)<0)<<31>>31;if((l|0)>(i|0)|(l|0)==(i|0)&g>>>0>o>>>0){h=$v(o|0,i|0,n|0,m|0)|0;f=C;g=(f|0)<0;h=g?0:h;f=g?0:f}xd(d,j+n|0,h,f,-1);break}i=a[j>>0]|0;if(((n|0)!=0|(m|0)!=0)&i<<24>>24!=0)do{l=j+1|0;if((i&255)>191){k=j;j=l;while(1){i=a[j>>0]|0;if((i&-64)<<24>>24==-128){g=j;j=k+2|0;k=g}else break}}else{i=a[l>>0]|0;j=l}n=fw(n|0,m|0,-1,-1)|0;m=C}while(((n|0)!=0|(m|0)!=0)&i<<24>>24!=0);if(i<<24>>24!=0&((h|0)!=0|(f|0)!=0)){m=f;f=j;do{k=f+1|0;if((i&255)>191)while(1){i=a[k>>0]|0;if((i&-64)<<24>>24==-128){g=k;k=f+2|0;f=g}else{f=k;break}}else{i=a[k>>0]|0;f=k}h=fw(h|0,m|0,-1,-1)|0;m=C}while(i<<24>>24!=0&((h|0)!=0|(m|0)!=0))}else f=j;g=f-j|0;Fd(d,j,g,((g|0)<0)<<31>>31,-1,1)}while(0);return}function dj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))ba();h=l;k=l+32|0;g=l+4|0;if((d|0)>0?(f=Og(c[e>>2]|0,1)|0,(f|0)!=0):0){c[k>>2]=d+-1;c[k+4>>2]=0;c[k+8>>2]=e+4;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[g+16>>2]=0;c[g+20>>2]=1e9;a[g+24>>0]=1;a[g+25>>0]=0;c[g>>2]=c[(c[b>>2]|0)+32>>2];c[h>>2]=k;An(g,2,f,h);f=c[g+12>>2]|0;Sg(b,pg(g)|0,f,1,75)}i=l;return}function ej(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();e=h;f=Og(c[f>>2]|0,1)|0;c[e>>2]=f;do if((f|0)!=0?(a[f>>0]|0)!=0:0){g=In(e)|0;e=c[d>>2]|0;d=((g|0)<0)<<31>>31;f=e+8|0;if(!(b[f>>1]&9312)){c[e>>2]=g;c[e+4>>2]=d;b[f>>1]=4;break}else{Vg(e,g,d);break}}while(0);i=h;return}function fj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=Pc(d<<2|1)|0;if(!i)Nd(b);else{if((d|0)>0){h=0;f=i;do{g=Rg(c[e+(h<<2)>>2]|0)|0;j=C;g=j>>>0>0|(j|0)==0&g>>>0>1114111?65533:g&2097151;do if(g>>>0>=128){if(g>>>0<2048){a[f>>0]=g>>>6&31|192;a[f+1>>0]=g&63|128;f=f+2|0;break}if(g>>>0<65536){a[f>>0]=g>>>12&15|224;a[f+1>>0]=g>>>6&63|128;a[f+2>>0]=g&63|128;f=f+3|0;break}else{a[f>>0]=g>>>18|240;a[f+1>>0]=g>>>12&63|128;a[f+2>>0]=g>>>6&63|128;a[f+3>>0]=g&63|128;f=f+4|0;break}}else{a[f>>0]=g;f=f+1|0}while(0);h=h+1|0}while((h|0)!=(d|0))}else f=i;f=f-i|0;Fd(b,i,f,((f|0)<0)<<31>>31,1,1)}return}function gj(f,g,h){f=f|0;g=g|0;h=h|0;var i=0.0,j=0,k=0;g=c[h>>2]|0;h=d[10064+((e[g+8>>1]|0)&31)>>0]|0;a:do if((h|0)==5){h=c[f>>2]|0;g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);break}}else if((h|0)==1){g=Rg(g)|0;j=C;do if((j|0)<0)if((g|0)==0&(j|0)==-2147483648){c[f+20>>2]=1;a[f+25>>0]=1;Tg(c[f>>2]|0,20248,-1,1,-1)|0;break a}else{g=$v(0,0,g|0,j|0)|0;k=C;break}else k=j;while(0);h=c[f>>2]|0;j=h+8|0;if(!(b[j>>1]&9312)){c[h>>2]=g;c[h+4>>2]=k;b[j>>1]=4;break}else{Vg(h,g,k);break}}else{i=+Qg(g);if(i<0.0)i=-i;Ug(c[f>>2]|0,i)}while(0);return}function hj(b,d,f){b=b|0;d=d|0;f=f|0;var g=0.0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))ba();o=q+8|0;p=q;if((d|0)==2){d=c[f+4>>2]|0;if(!(-1431655766>>>(e[d+8>>1]&31)&1)){n=Rg(d)|0;n=(n|0)>30?30:n;n=(n|0)<0?0:n;m=4}}else{n=0;m=4}a:do if((m|0)==4?(l=c[f>>2]|0,(-1431655766>>>(e[l+8>>1]&31)&1|0)==0):0){g=+Qg(l);h[p>>3]=g;d=(n|0)==0;do if(d&g>=0.0&g<9223372036854775808.0){g=g+.5;g=+(~~g>>>0>>>0)+4294967296.0*+((+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0)|0);h[p>>3]=g}else{if(d&g<0.0&g>-9223372036854775808.0){g=.5-g;g=-(+(~~g>>>0>>>0)+4294967296.0*+((+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0)|0));h[p>>3]=g;break}c[o>>2]=n;d=o+4|0;h[k>>3]=g;c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];d=Wc(20312,o)|0;if(!d){Nd(b);break a}else l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;Pl(d,p,l-d&1073741823,1)|0;Sc(d);g=+h[p>>3]}while(0);Ug(c[b>>2]|0,g)}while(0);i=q;return}function ij(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Og(c[f>>2]|0,1)|0;e=Pg(c[f>>2]|0,1)|0;if((g|0)!=0?(h=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0,h=go(b,h,C)|0,(h|0)!=0):0){if((e|0)>0){f=0;do{i=d[g+f>>0]|0;a[h+f>>0]=((d[10368+i>>0]|0|223)^32)&i;f=f+1|0}while((f|0)!=(e|0))}Sg(b,h,e,1,1)}return}function jj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0;g=Og(c[f>>2]|0,1)|0;e=Pg(c[f>>2]|0,1)|0;if((g|0)!=0?(h=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0,h=go(b,h,C)|0,(h|0)!=0):0){if((e|0)>0){f=0;do{a[h+f>>0]=a[9328+(d[g+f>>0]|0)>>0]|0;f=f+1|0}while((f|0)!=(e|0))}Sg(b,h,e,1,1)}return}function kj(a,b,c){a=a|0;b=b|0;c=c|0;Sg(a,8632,-1,1,0);return}function lj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;e=ld(c[f>>2]|0)|0;i=Pg(c[f>>2]|0,1)|0;j=ew(i|0,((i|0)<0)<<31>>31|0,1)|0;j=go(b,j|1,C)|0;if(j){if((i|0)>0){g=i<<1;h=0;f=j;while(1){k=d[e>>0]|0;a[f>>0]=a[20288+(k>>>4)>>0]|0;a[f+1>>0]=a[20288+(k&15)>>0]|0;h=h+1|0;if((h|0)==(i|0))break;else{e=e+1|0;f=f+2|0}}f=j+g|0}else f=j;a[f>>0]=0;Sg(b,j,i<<1,1,1)}return}function mj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();d=h;_c(8,d);f=d;e=c[f>>2]|0;f=c[f+4>>2]|0;if((f|0)<0){g=$v(0,0,e|0,f&2147483647|0)|0;f=C;c[d>>2]=g;c[d+4>>2]=f}else g=e;e=c[a>>2]|0;d=e+8|0;if(!(b[d>>1]&9312)){c[e>>2]=g;c[e+4>>2]=f;b[d>>1]=4}else Vg(e,g,f);i=h;return}function nj(a,b,d){a=a|0;b=b|0;d=d|0;d=Rg(c[d>>2]|0)|0;d=(d|0)<1?1:d;b=go(a,d,((d|0)<0)<<31>>31)|0;if(b){_c(d,b);Sg(a,b,d,0,1)}return}function oj(a,b,d){a=a|0;b=b|0;d=d|0;if(dm(c[d>>2]|0,c[d+4>>2]|0,c[(c[(c[a+12>>2]|0)+4>>2]|0)+(((c[a+16>>2]|0)+-1|0)*20|0)+16>>2]|0)|0)Wg(c[a>>2]|0,c[d>>2]|0)|0;return}function pj(a,b,c){a=a|0;b=b|0;c=c|0;Sg(a,10768,-1,1,0);return}function qj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;b=i;i=i+16|0;if((i|0)>=(j|0))ba();a=b;e=Rg(c[d>>2]|0)|0;c[a>>2]=Og(c[d+4>>2]|0,1)|0;Zc(e,10344,a);i=b;return}function rj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;d=Og(c[e>>2]|0,1)|0;do if(d){f=Ac(d)|0;e=c[a>>2]|0;d=((f|0)<0)<<31>>31;a=e+8|0;if(!(b[a>>1]&9312)){c[e>>2]=f;c[e+4>>2]=d;b[a>>1]=4;break}else{Vg(e,f,d);break}}while(0);return}function sj(a,b,d){a=a|0;b=b|0;d=d|0;b=Rg(c[d>>2]|0)|0;if(b>>>0<4)b=c[8648+(b<<2)>>2]|0;else b=0;Sg(a,b,-1,1,0);return}function tj(b,f,g){b=b|0;f=f|0;g=g|0;var l=0,m=0.0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+80|0;if((i|0)>=(j|0))ba();f=s+8|0;l=s;p=s+16|0;o=c[g>>2]|0;n=d[10064+(e[o+8>>1]&31)>>0]|0;if((n|0)==3){r=Og(o,1)|0;if(r){f=0;l=0;n=0;while(1){o=a[r+n>>0]|0;if(o<<24>>24==39){o=fw(f|0,l|0,1,0)|0;l=C}else if(!(o<<24>>24)){o=l;break}else o=f;f=o;n=n+1|0}q=fw(f|0,o|0,3,0)|0;q=fw(q|0,C|0,n|0,((n|0)<0)<<31>>31|0)|0;q=go(b,q,C)|0;if(q){a[q>>0]=39;l=a[r>>0]|0;f=q+1|0;if(!(l<<24>>24))n=2;else{p=r;n=2;o=0;g=1;do{a[f>>0]=l;if((a[p>>0]|0)==39){a[q+n>>0]=39;g=g+2|0}else g=n;o=o+1|0;p=r+o|0;l=a[p>>0]|0;n=g+1|0;f=q+g|0}while(l<<24>>24!=0)}a[f>>0]=39;a[q+n>>0]=0;Sg(b,q,n,1,1)}}}else if((n|0)==1)Wg(c[b>>2]|0,o)|0;else if((n|0)==2){m=+Qg(o);h[k>>3]=m;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Yc(50,p,20272,f)|0;Pl(p,l,20,1)|0;if(m!=+h[l>>3]){h[k>>3]=m;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Yc(50,p,20280,f)|0}Sg(b,p,-1,1,-1)}else if((n|0)==4){o=ld(o)|0;f=Pg(c[g>>2]|0,1)|0;l=ew(f|0,((f|0)<0)<<31>>31|0,1)|0;l=fw(l|0,C|0,4,0)|0;l=go(b,l,C)|0;if(l){if((f|0)>0){n=0;do{g=o+n|0;p=n<<1;a[l+(p+2)>>0]=a[20288+((d[g>>0]|0)>>>4)>>0]|0;a[l+(p+3)>>0]=a[20288+(d[g>>0]&15)>>0]|0;n=n+1|0}while((n|0)!=(f|0))}f=f<<1;a[l+(f+2)>>0]=39;a[l+(f+3)>>0]=0;a[l>>0]=88;a[l+1>>0]=39;Sg(b,l,-1,1,-1);Sc(l)}}else Sg(b,20304,4,1,0);i=s;return}function uj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[a>>2]|0;f=(c[a+32>>2]|0)+32|0;d=c[f>>2]|0;f=c[f+4>>2]|0;e=a+8|0;if(!(b[e>>1]&9312)){c[a>>2]=d;c[a+4>>2]=f;b[e>>1]=4}else Vg(a,d,f);return}function vj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[a>>2]|0;e=c[(c[a+32>>2]|0)+80>>2]|0;d=((e|0)<0)<<31>>31;f=a+8|0;if(!(b[f>>1]&9312)){c[a>>2]=e;c[a+4>>2]=d;b[f>>1]=4}else Vg(a,e,d);return}function wj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[a>>2]|0;e=c[(c[a+32>>2]|0)+84>>2]|0;d=((e|0)<0)<<31>>31;f=a+8|0;if(!(b[f>>1]&9312)){c[a>>2]=e;c[a+4>>2]=d;b[f>>1]=4}else Vg(a,e,d);return}function xj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;t=Og(c[e>>2]|0,1)|0;a:do if((t|0)!=0?(u=Pg(c[e>>2]|0,1)|0,g=e+4|0,s=Og(c[g>>2]|0,1)|0,(s|0)!=0):0){if(!(a[s>>0]|0)){Wg(c[b>>2]|0,c[e>>2]|0)|0;break}q=Pg(c[g>>2]|0,1)|0;g=e+8|0;p=Og(c[g>>2]|0,1)|0;if((p|0)!=0?(r=Pg(c[g>>2]|0,1)|0,h=u+1|0,i=((h|0)<0)<<31>>31,f=go(b,h,i)|0,(f|0)!=0):0){l=u-q|0;b:do if((l|0)>=0){m=r-q|0;n=((m|0)<0)<<31>>31;o=q+-1|0;e=0;k=0;while(1){g=t+e|0;d=a[g>>0]|0;if(d<<24>>24==(a[s>>0]|0)?(Vv(g,s,q)|0)==0:0){d=c[b>>2]|0;j=c[d+32>>2]|0;h=fw(h|0,i|0,m|0,n|0)|0;i=C;g=fw(h|0,i|0,-1,-1)|0;w=C;j=c[j+88>>2]|0;v=((j|0)<0)<<31>>31;if((w|0)>(v|0)|(w|0)==(v|0)&g>>>0>j>>>0){g=13;break}j=Tc(f,h)|0;if(!j){g=15;break}gw(j+k|0,p|0,r|0)|0;g=o+e|0;d=k+r|0;f=j}else{a[f+k>>0]=d;g=e;d=k+1|0}e=g+1|0;if((g|0)<(l|0))k=d;else break b}if((g|0)==13){c[b+20>>2]=18;a[b+25>>0]=1;Tg(d,10096,-1,1,0)|0;Sc(f);break a}else if((g|0)==15){Nd(b);Sc(f);break a}}else{e=0;d=0}while(0);m=u-e|0;gw(f+d|0,t+e|0,m|0)|0;m=d+m|0;a[f+m>>0]=0;Sg(b,f,m,1,1)}}while(0);return}function yj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=c[(c[b>>2]|0)+32>>2]|0;d=Rg(c[e>>2]|0)|0;g=C;e=c[f+88>>2]|0;f=((e|0)<0)<<31>>31;if((g|0)>(f|0)|(g|0)==(f|0)&d>>>0>e>>>0){c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0}else Xg(c[b>>2]|0,d);return}function zj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;f=Og(c[e>>2]|0,1)|0;g=c[(c[b>>2]|0)+32>>2]|0;c[h>>2]=0;if((d|0)==2)d=Og(c[e+4>>2]|0,1)|0;else d=0;if((f|0)!=0?(Pe(g,f,d,h)|0)!=0:0){d=c[h>>2]|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,d,-1,1,-1)|0;Sc(c[h>>2]|0)}i=k;return}function Aj(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,i=0,j=0,k=0,l=0.0,m=0,n=0,o=0;e=c[d+8>>2]|0;if(!(b[e+8>>1]&8192))g=hh(d,32)|0;else g=c[e+16>>2]|0;d=De(c[f>>2]|0)|0;do if((g|0)!=0&(d|0)!=5){e=g+16|0;i=e;i=fw(c[i>>2]|0,c[i+4>>2]|0,1,0)|0;c[e>>2]=i;c[e+4>>2]=C;e=c[f>>2]|0;if((d|0)!=1){l=+Qg(e);h[g>>3]=l+ +h[g>>3];a[g+25>>0]=1;break}i=Rg(e)|0;j=C;h[g>>3]=+h[g>>3]+(+(i>>>0)+4294967296.0*+(j|0));k=g+24|0;if(!((a[k>>0]|a[g+25>>0])<<24>>24)){g=g+8|0;d=g;f=c[d>>2]|0;d=c[d+4>>2]|0;if((j|0)>-1|(j|0)==-1&i>>>0>4294967295){e=$v(-1,2147483647,f|0,d|0)|0;m=C;if(((d|0)>0|(d|0)==0&f>>>0>0)&((m|0)<(j|0)|(m|0)==(j|0)&e>>>0<i>>>0))e=12;else e=11}else if((d|0)<0?(m=$v(1,-2147483648,f|0,d|0)|0,o=C,e=fw(i|0,j|0,1,0)|0,n=C,(o|0)>(n|0)|(o|0)==(n|0)&m>>>0>e>>>0):0)e=12;else e=11;if((e|0)==11){d=fw(f|0,d|0,i|0,j|0)|0;e=g;c[e>>2]=d;c[e+4>>2]=C;break}else if((e|0)==12){a[k>>0]=1;break}}}while(0);return}function Bj(d){d=d|0;var e=0,f=0,g=0;e=c[d+8>>2]|0;if(!(b[e+8>>1]&8192))e=hh(d,0)|0;else e=c[e+16>>2]|0;do if((e|0)!=0?(f=e+16|0,g=c[f+4>>2]|0,(g|0)>0|(g|0)==0&(c[f>>2]|0)>>>0>0):0){if(a[e+24>>0]|0){c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20248,-1,1,-1)|0;break}if(a[e+25>>0]|0){Ug(c[d>>2]|0,+h[e>>3]);break}g=e+8|0;f=c[g>>2]|0;g=c[g+4>>2]|0;e=c[d>>2]|0;d=e+8|0;if(!(b[d>>1]&9312)){c[e>>2]=f;c[e+4>>2]=g;b[d>>1]=4;break}else{Vg(e,f,g);break}}while(0);return}function Cj(a){a=a|0;var d=0,e=0.0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;if(!d)e=0.0;else e=+h[d>>3];Ug(c[a>>2]|0,e);return}function Dj(a){a=a|0;var d=0,e=0,f=0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;if((d|0)!=0?(f=d+16|0,e=c[f>>2]|0,f=c[f+4>>2]|0,(f|0)>0|(f|0)==0&e>>>0>0):0)Ug(c[a>>2]|0,+h[d>>3]/(+(e>>>0)+4294967296.0*+(f|0)));return}function Ej(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;g=c[a+8>>2]|0;if(!(b[g+8>>1]&8192))g=hh(a,8)|0;else g=c[g+16>>2]|0;if(!d){if(g)h=7}else if((g|0)!=0?(1431655765>>>((e[(c[f>>2]|0)+8>>1]|0)&31)&1|0)!=0:0)h=7;if((h|0)==7){a=g;a=fw(c[a>>2]|0,c[a+4>>2]|0,1,0)|0;c[g>>2]=a;c[g+4>>2]=C}return}function Fj(a){a=a|0;var d=0,e=0,f=0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;if(!d){e=0;f=0}else{f=d;e=c[f>>2]|0;f=c[f+4>>2]|0}d=c[a>>2]|0;a=d+8|0;if(!(b[a>>1]&9312)){c[d>>2]=e;c[d+4>>2]=f;b[a>>1]=4}else Vg(d,e,f);return}function Gj(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;if(!(-1431655766>>>(e[(c[g>>2]|0)+8>>1]&31)&1)){h=c[d+8>>2]|0;if(!(b[h+8>>1]&8192))i=hh(d,28)|0;else i=c[h+16>>2]|0;if(i){d=c[(c[d>>2]|0)+32>>2]|0;j=i+24|0;h=(a[j>>0]|0)==0;a[j>>0]=2;c[i+20>>2]=c[d+88>>2];do if(!h){if((f|0)==2){f=g+4|0;h=Og(c[f>>2]|0,1)|0;f=Pg(c[f>>2]|0,1)|0;if(!f)break}else{f=1;h=20240}Ok(i,h,f)}while(0);h=Og(c[g>>2]|0,1)|0;f=Pg(c[g>>2]|0,1)|0;if(h)Ok(i,h,f)}}return}function Hj(d){d=d|0;var e=0,f=0;e=c[d+8>>2]|0;if(!(b[e+8>>1]&8192))e=hh(d,0)|0;else e=c[e+16>>2]|0;do if(e){f=a[e+25>>0]|0;if(f<<24>>24==2){c[d+20>>2]=18;a[d+25>>0]=1;Tg(c[d>>2]|0,10096,-1,1,0)|0;break}else if(f<<24>>24==1){Nd(d);break}else{Sg(d,pg(e)|0,-1,1,1);break}}while(0);return}function Ij(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;m=c[(c[d>>2]|0)+32>>2]|0;g=Og(c[f>>2]|0,1)|0;k=Og(c[f+4>>2]|0,1)|0;n=Pg(c[f>>2]|0,1)|0;a:do if((n|0)<=(c[m+120>>2]|0)){do if((e|0)==3){f=Og(c[f+8>>2]|0,1)|0;c[h>>2]=f;if(!f)break a;if((Jn(f,-1)|0)==1){f=In(h)|0;break}else{c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20192,-1,1,-1)|0;break a}}else f=0;while(0);if((k|0)!=0&(g|0)!=0){e=Ch(g,k,c[(c[d+4>>2]|0)+4>>2]|0,f)|0;g=c[d>>2]|0;h=((e|0)<0)<<31>>31;f=g+8|0;if(!(b[f>>1]&9312)){c[g>>2]=e;c[g+4>>2]=h;b[f>>1]=4;break}else{Vg(g,e,h);break}}}else{c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20152,-1,1,-1)|0}while(0);i=l;return}function Jj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p;k=p+16|0;n=Og(c[e>>2]|0,1)|0;l=Og(c[e+4>>2]|0,1)|0;m=c[(c[b>>2]|0)+32>>2]|0;a:do if((n|0)!=0?(a[n>>0]|0)!=0:0){d=0;e=n;b:while(1){g=d;f=e;while(1){f=f+g|0;h=yn(f,k)|0;g=c[k>>2]|0;if((g|0)==22|(g|0)==125)break b;else if((g|0)==151)g=h;else{e=f;d=h;break}}if(!(a[e>>0]|0))break a}c[o>>2]=e-n;c[o+4>>2]=n;c[o+8>>2]=l;c[o+12>>2]=e+d;Sg(b,qh(m,19464,o)|0,-1,1,75)}while(0);i=p;return}function Kj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))ba();q=r;m=r+16|0;p=Og(c[e>>2]|0,1)|0;n=Og(c[e+4>>2]|0,1)|0;o=c[(c[b>>2]|0)+32>>2]|0;a:do if((p|0)!=0?(a[p>>0]|0)!=0:0){l=3;d=0;e=p;while(1){g=d;f=e;do{f=f+g|0;g=yn(f,m)|0;h=c[m>>2]|0}while((h|0)==151);k=g;g=(h|0)==122|(h|0)==107?0:l+1|0;if((g|0)==2)if((h|0)==5|(h|0)==46|(h|0)==137)break;else e=2;else e=g;if(!(a[f>>0]|0))break a;else{l=e;d=k;e=f}}c[q>>2]=e-p;c[q+4>>2]=p;c[q+8>>2]=n;c[q+12>>2]=e+d;Sg(b,qh(o,19464,q)|0,-1,1,75)}while(0);i=r;return}function Lj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;if((i|0)>=(j|0))ba();q=r;o=r+16|0;p=c[(c[b>>2]|0)+32>>2]|0;f=Og(c[e>>2]|0,1)|0;n=Og(c[e+4>>2]|0,1)|0;m=Og(c[e+8>>2]|0,1)|0;if(!((f|0)==0|(n|0)==0)){a:do if(!(a[f>>0]|0))d=0;else{g=f;d=0;do{e=yn(g,o)|0;if((c[o>>2]|0)==105){k=g;while(1){g=k+e|0;h=yn(g,o)|0;if((c[o>>2]|0)==151){e=h;k=g}else break}if(!g)break a;l=fw(h|0,((h|0)<0)<<31>>31|0,1,0)|0;l=ih(p,l,C)|0;if(!l)break a;gw(l|0,g|0,h|0)|0;a[l+h>>0]=0;ho(l);if(!($c(n,l)|0)){c[q>>2]=(d|0)!=0?d:10360;c[q+4>>2]=g-f;c[q+8>>2]=f;c[q+12>>2]=m;s=qh(p,19440,q)|0;ig(p,d);f=k+(h+e)|0;d=s}ig(p,l);e=h}g=g+e|0}while((a[g>>0]|0)!=0)}while(0);c[q>>2]=(d|0)!=0?d:10360;c[q+4>>2]=f;Sg(b,qh(p,19456,q)|0,-1,1,75);ig(p,d)}i=r;return}function Mj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+48|0;if((i|0)>=(j|0))ba();e=f;if(!(io(a,b,d,e)|0)){jo(e);b=e;Ug(c[a>>2]|0,(+((c[b>>2]|0)>>>0)+4294967296.0*+(c[b+4>>2]|0))/864.0e5)}i=f;return}function Nj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))ba();e=h+48|0;f=h;g=h+60|0;if(!(io(a,b,d,f)|0)){ko(f);d=c[f+12>>2]|0;b=c[f+16>>2]|0;c[e>>2]=c[f+8>>2];c[e+4>>2]=d;c[e+8>>2]=b;Yc(100,g,20136,e)|0;Sg(a,g,-1,1,-1)}i=h;return}function Oj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,k=0;k=i;i=i+160|0;if((i|0)>=(j|0))ba();e=k+48|0;f=k;g=k+60|0;if(!(io(a,b,d,f)|0)){lo(f);d=c[f+24>>2]|0;b=~~+h[f+32>>3];c[e>>2]=c[f+20>>2];c[e+4>>2]=d;c[e+8>>2]=b;Yc(100,g,20120,e)|0;Sg(a,g,-1,1,-1)}i=k;return}function Pj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,k=0,l=0,m=0,n=0;k=i;i=i+176|0;if((i|0)>=(j|0))ba();e=k+48|0;f=k;g=k+72|0;if(!(io(a,b,d,f)|0)){ko(f);lo(f);n=c[f+12>>2]|0;m=c[f+16>>2]|0;l=c[f+20>>2]|0;d=c[f+24>>2]|0;b=~~+h[f+32>>3];c[e>>2]=c[f+8>>2];c[e+4>>2]=n;c[e+8>>2]=m;c[e+12>>2]=l;c[e+16>>2]=d;c[e+20>>2]=b;Yc(100,g,20088,e)|0;Sg(a,g,-1,1,-1)}i=k;return}function Qj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0.0;D=i;i=i+208|0;if((i|0)>=(j|0))ba();y=D+96|0;z=D+48|0;B=D+104|0;A=D;a:do if(((d|0)!=0?(x=Og(c[e>>2]|0,1)|0,(x|0)!=0):0)?(io(b,d+-1|0,e+4|0,z)|0)==0:0){m=c[b>>2]|0;l=c[m+32>>2]|0;e=1;d=0;g=0;b:while(1){f=a[x+g>>0]|0;c:do if(f<<24>>24==37){f=g+1|0;switch(a[x+f>>0]|0){case 106:{e=fw(e|0,d|0,3,0)|0;d=C;break c}case 89:{e=fw(e|0,d|0,8,0)|0;d=C;break c}case 74:case 115:{e=fw(e|0,d|0,50,0)|0;d=C;break c}case 37:case 119:break c;case 87:case 83:case 77:case 109:case 72:case 100:{e=fw(e|0,d|0,1,0)|0;d=C;break c}case 102:{e=fw(e|0,d|0,8,0)|0;d=C;break c}default:break a}}else if(!(f<<24>>24))break b;else f=g;while(0);e=fw(e|0,d|0,1,0)|0;d=C;g=f+1|0}if(!(d>>>0<0|(d|0)==0&e>>>0<100)){w=c[l+88>>2]|0;v=((w|0)<0)<<31>>31;if(d>>>0>v>>>0|(d|0)==(v|0)&e>>>0>w>>>0){c[b+20>>2]=18;a[b+25>>0]=1;Tg(m,10096,-1,1,0)|0;break}d=aw(0,e|0,32)|0;d=ih(l,d,C)|0;if(!d){Nd(b);break}else w=d}else w=B;jo(z);ko(z);lo(z);n=z+16|0;o=z+32|0;p=z+20|0;q=A+42|0;r=A+12|0;s=A+16|0;t=z+12|0;u=z+24|0;v=z+8|0;l=0;d=0;d:while(1){m=a[x+l>>0]|0;e:do if(!(m<<24>>24))break d;else if(m<<24>>24==37){l=l+1|0;e=x+l|0;do switch(a[e>>0]|0){case 106:case 87:{m=A+0|0;g=z+0|0;f=m+48|0;do{c[m>>2]=c[g>>2];m=m+4|0;g=g+4|0}while((m|0)<(f|0));a[q>>0]=0;c[r>>2]=1;c[s>>2]=1;jo(A);m=z;f=A;E=c[f>>2]|0;f=c[f+4>>2]|0;m=fw(c[m>>2]|0,c[m+4>>2]|0,432e5,0)|0;g=C;f=mw($v(m|0,g|0,E|0,f|0)|0,C|0,864e5,0)|0;if((a[e>>0]|0)==87){e=mw(m|0,g|0,864e5,0)|0;e=nw(e|0,C|0,7,0)|0;c[y>>2]=(f+7-e|0)/7|0;Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}else{c[y>>2]=f+1;Yc(4,w+d|0,19904,y)|0;d=d+3|0;break e}}case 102:{F=+h[o>>3];g=w+d|0;h[k>>3]=F>59.999?59.999:F;c[y>>2]=c[k>>2];c[y+4>>2]=c[k+4>>2];Yc(7,g,19896,y)|0;if(!g)m=0;else{m=g;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 100:{c[y>>2]=c[n>>2];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 83:{c[y>>2]=~~+h[o>>3];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 119:{e=z;e=fw(c[e>>2]|0,c[e+4>>2]|0,1296e5,0)|0;e=mw(e|0,C|0,864e5,0)|0;e=nw(e|0,C|0,7,0)|0;a[w+d>>0]=e+48;d=d+1|0;break e}case 89:{g=w+d|0;c[y>>2]=c[v>>2];Yc(5,g,19928,y)|0;if(!g)m=0;else{m=g;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 72:{c[y>>2]=c[p>>2];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 109:{c[y>>2]=c[t>>2];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 77:{c[y>>2]=c[u>>2];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 74:{g=w+d|0;e=z;h[k>>3]=(+((c[e>>2]|0)>>>0)+4294967296.0*+(c[e+4>>2]|0))/864.0e5;c[y>>2]=c[k>>2];c[y+4>>2]=c[k+4>>2];Yc(20,g,19912,y)|0;if(!g)m=0;else{m=g;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 115:{g=w+d|0;f=z;f=mw(c[f>>2]|0,c[f+4>>2]|0,1e3,0)|0;f=fw(f|0,C|0,-413362496,-50)|0;e=y;c[e>>2]=f;c[e+4>>2]=C;Yc(30,g,19920,y)|0;if(!g)m=0;else{m=g;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}default:{a[w+d>>0]=37;d=d+1|0;break e}}while(0)}else{a[w+d>>0]=m;d=d+1|0}while(0);l=l+1|0}a[w+d>>0]=0;Sg(b,w,-1,1,(w|0)==(B|0)?-1:75)}while(0);i=D;return}function Rj(a,b,c){a=a|0;b=b|0;c=c|0;Oj(a,0,0);return}function Sj(a,b,c){a=a|0;b=b|0;c=c|0;Pj(a,0,0);return}function Tj(a,b,c){a=a|0;b=b|0;c=c|0;Nj(a,0,0);return}function Uj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=Rg(c[d>>2]|0)|0;h=g+1&-2;e=Rg(c[d+4>>2]|0)|0;f=(h<<3)+56|0;d=c[(c[a>>2]|0)+32>>2]|0;b=ih(d,f,((f|0)<0)<<31>>31)|0;if(!b)Nd(a);else{bw(b|0,0,f|0)|0;c[b+52>>2]=d;c[b>>2]=0;c[b+8>>2]=g;c[b+12>>2]=e;d=b+56|0;c[b+24>>2]=d;c[b+20>>2]=d+(h<<2);Sg(a,b,56,0,20)}return}function Vj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=ld(c[d>>2]|0)|0;f=Rg(c[d+4>>2]|0)|0;if(!(c[g>>2]|0)){a=g+8|0;if((c[a>>2]|0)>0){b=c[g+20>>2]|0;d=0;do{c[b+(d<<2)>>2]=1;d=d+1|0}while((d|0)<(c[a>>2]|0))}}else{if((f|0)>0){a=c[g+20>>2]|0;d=0;do{b=a+(d<<2)|0;c[b>>2]=(c[b>>2]|0)+1;d=d+1|0}while((d|0)!=(f|0))}a=g+8|0;if((f|0)<(c[a>>2]|0)){b=c[g+24>>2]|0;e=c[g+20>>2]|0;d=f;do{f=b+(d<<2)|0;c[f>>2]=(c[f>>2]|0)+1;c[e+(d<<2)>>2]=1;d=d+1|0}while((d|0)<(c[a>>2]|0))}}c[g>>2]=(c[g>>2]|0)+1;return}function Wj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=ld(c[e>>2]|0)|0;k=h+12|0;e=((c[k>>2]|0)*25|0)+25|0;l=mg(e,((e|0)<0)<<31>>31)|0;if(!l)Nd(b);else{bw(l|0,0,e|0)|0;e=m;c[e>>2]=c[h>>2];c[e+4>>2]=0;Yc(24,l,28696,m)|0;e=l;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;if((c[k>>2]|0)>0){f=h+24|0;g=0;d=l+(e-l&1073741823)|0;while(1){o=(c[(c[f>>2]|0)+(g<<2)>>2]|0)+1|0;e=c[h>>2]|0;p=fw(o|0,0,-1,-1)|0;e=fw(p|0,C|0,e|0,0)|0;o=pw(e|0,C|0,o|0,0)|0;e=m;c[e>>2]=o;c[e+4>>2]=C;Yc(24,d,28704,m)|0;if(!d)e=0;else{e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-d&1073741823}g=g+1|0;if((g|0)>=(c[k>>2]|0))break;else d=d+e|0}}Sg(b,l,-1,1,1)}i=n;return}function Xj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+144|0;if((i|0)>=(j|0))ba();l=n;m=n+8|0;h=Og(c[e>>2]|0,1)|0;k=c[(c[b>>2]|0)+32>>2]|0;h=(h|0)==0?10360:h;g=c[k+20>>2]|0;a:do if((g|0)>0){d=c[k+16>>2]|0;e=0;do{f=d+(e<<4)|0;if((c[d+(e<<4)+4>>2]|0)!=0?($c(c[f>>2]|0,h)|0)==0:0)break a;e=e+1|0}while((e|0)<(g|0))}else{e=0;f=0}while(0);do if((e|0)<(g|0)){if((e|0)<2){c[l>>2]=h;Yc(128,m,29256,l)|0;o=16;break}if(!(a[k+63>>0]|0)){Yc(128,m,29288,l)|0;o=16;break}e=f+4|0;d=c[e>>2]|0;if((a[d+8>>0]|0)==0?(c[d+16>>2]|0)==0:0){Il(d);c[e>>2]=0;c[f+12>>2]=0;Ag(k);break}c[l>>2]=h;Yc(128,m,29336,l)|0;o=16}else{c[l>>2]=h;Yc(128,m,29232,l)|0;o=16}while(0);if((o|0)==16){c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,m,-1,1,-1)|0}i=n;return}function Yj(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+32|0;if((i|0)>=(j|0))ba();v=z;l=z+20|0;d=z+16|0;k=z+12|0;y=z+8|0;m=z+4|0;x=c[(c[b>>2]|0)+32>>2]|0;c[l>>2]=0;c[d>>2]=0;c[y>>2]=0;u=Og(c[f>>2]|0,1)|0;q=Og(c[f+4>>2]|0,1)|0;u=(u|0)==0?10360:u;q=(q|0)==0?10360:q;t=x+20|0;g=c[t>>2]|0;h=c[x+116>>2]|0;a:do if((g|0)<(h+2|0)){if(!(a[x+63>>0]|0)){g=qh(x,29456,v)|0;c[y>>2]=g;d=0;w=42;break}r=x+16|0;h=c[r>>2]|0;b:do if((g|0)>0){f=0;while(1){if(!($c(c[h+(f<<4)>>2]|0,q)|0))break;f=f+1|0;if((f|0)>=(g|0))break b}c[v>>2]=q;g=qh(x,29504,v)|0;c[y>>2]=g;d=0;w=42;break a}while(0);if((h|0)!=(x+456|0)){h=no(x,h,(g<<4)+16|0,0)|0;if(!h)break;else p=h}else{h=ih(x,48,0)|0;if(!h)break;p=c[r>>2]|0;c[h+0>>2]=c[p+0>>2];c[h+4>>2]=c[p+4>>2];c[h+8>>2]=c[p+8>>2];c[h+12>>2]=c[p+12>>2];c[h+16>>2]=c[p+16>>2];c[h+20>>2]=c[p+20>>2];c[h+24>>2]=c[p+24>>2];c[h+28>>2]=c[p+28>>2];p=h}c[r>>2]=p;n=c[t>>2]|0;o=p+(n<<4)|0;c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[k>>2]=c[x+48>>2];h=Sn(c[(c[x>>2]|0)+16>>2]|0,u,k,m,l,d)|0;if(!h){h=c[k>>2]|256;c[k>>2]=h;l=c[l>>2]|0;k=p+(n<<4)+4|0;h=vm(c[m>>2]|0,l,x,k,0,h)|0;Sc(l);c[t>>2]=(c[t>>2]|0)+1;if((h|0)==19){c[y>>2]=qh(x,29536,v)|0;h=1}else if(!h){h=Tn(x,c[k>>2]|0)|0;c[p+(n<<4)+12>>2]=h;if(h)if((a[h+76>>0]|0)!=0?(a[h+77>>0]|0)!=(a[x+62>>0]|0):0){c[y>>2]=qh(x,13232,v)|0;h=1}else h=0;else h=7;d=c[k>>2]|0;f=c[d+4>>2]|0;c[f+4>>2]=c[d>>2];f=c[f>>2]|0;g=a[x+66>>0]|0;do if(!(a[f+12>>0]|0)){m=c[f+208>>2]|0;if((m|0)!=0?(a[m+43>>0]|0)==2:0)break;a[f+4>>0]=g}while(0);f=c[(c[r>>2]|0)+4>>2]|0;if(!f)f=0;else{m=c[f+4>>2]|0;c[m+4>>2]=c[f>>2];f=(e[m+22>>1]|0)>>>2&1}oo(d,f)|0;po(c[k>>2]|0,c[x+24>>2]&28|3)}a[p+(n<<4)+8>>0]=3;d=gh(x,q)|0;c[o>>2]=d;d=(h|0)==0&(d|0)==0?7:h;if(!d){f=c[t>>2]|0;if((f|0)>0){g=c[r>>2]|0;h=0;do{d=c[g+(h<<4)+4>>2]|0;if(d)c[(c[d+4>>2]|0)+4>>2]=c[d>>2];h=h+1|0}while((h|0)!=(f|0))}d=Vh(x,y)|0;if(!d)break}g=(c[t>>2]|0)+-1|0;f=c[(c[r>>2]|0)+(g<<4)+4>>2]|0;if(f){Il(f);p=c[r>>2]|0;c[p+(g<<4)+4>>2]=0;c[p+(g<<4)+12>>2]=0}Ag(x);c[t>>2]=g;if((d|0)==7|(d|0)==3082){a[x+65>>0]=1;ig(x,c[y>>2]|0);g=qh(x,15776,v)|0;c[y>>2]=g;w=42;break}g=c[y>>2]|0;if(g){w=43;break}c[v>>2]=u;g=qh(x,29568,v)|0;c[y>>2]=g;w=42;break}else if((h|0)==7)a[x+65>>0]=1;p=c[d>>2]|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,p,-1,1,-1)|0;Sc(p)}else{c[v>>2]=h;g=qh(x,29416,v)|0;c[y>>2]=g;d=0;w=42}while(0);if((w|0)==42)if(!g){s=d;w=44}else w=43;if((w|0)==43){c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,g,-1,1,-1)|0;ig(x,c[y>>2]|0);s=d;w=44}if((w|0)==44?(s|0)!=0:0)Ld(b,s);i=z;return}function Zj(a){a=a|0;if(a){ek(a,0)|0;Sc(c[a+24>>2]|0);qo(a)}return 0}function _j(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=a+12|0;g=d&131071;k=b;i=f;j=0;a:while(1){while(1){f=_a(c[l>>2]|0,e|0,0)|0;if(!((f|0)==(e|0)&(((f|0)<0)<<31>>31|0)==(i|0))){e=4;break a}h=Yb[c[47552+100>>2]&63](c[l>>2]|0,k,g)|0;if((g|0)==(h|0)){f=j;e=13;break a}if((h|0)>=0){f=h;break}f=c[(Db()|0)>>2]|0;if((f|0)!=4){g=h;e=10;break a}}if((f|0)<=0){g=0;f=j;e=13;break}h=fw(f|0,((f|0)<0)<<31>>31|0,e|0,i|0)|0;g=g-f|0;k=k+f|0;i=C;e=h;j=f+j|0}do if((e|0)==4)if((f|0)==-1){c[a+20>>2]=c[(Db()|0)>>2];f=-1;break}else{c[a+20>>2]=0;f=-1;break}else if((e|0)==10){c[a+20>>2]=f;f=0;e=13}while(0);if((e|0)==13)f=f+g|0;if((f|0)!=(d|0))if((f|0)<0)f=266;else{c[a+20>>2]=0;bw(b+f|0,0,d-f|0)|0;f=522}else f=0;return f|0}function $j(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;a:do if((d|0)>0){h=a+12|0;i=a+20|0;g=d;while(1){d=ro(c[h>>2]|0,e,f,b,g,i)|0;if((d|0)<=0)break;g=g-d|0;e=fw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0;if((g|0)<=0){d=0;break a}else{b=b+d|0;f=C}}if((d|0)<0?(c[i>>2]|0)!=28:0){d=778;break}c[a+20>>2]=0;d=13}else d=0;while(0);return d|0}function ak(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=c[a+40>>2]|0;if((e|0)>0){f=((e|0)<0)<<31>>31;d=fw(b|0,d|0,-1,-1)|0;d=fw(d|0,C|0,e|0,f|0)|0;b=C;e=nw(d|0,b|0,e|0,f|0)|0;e=$v(d|0,b|0,e|0,C|0)|0}else e=b;d=c[a+12>>2]|0;while(1){b=nc[c[47552+76>>2]&127](d,e)|0;if((b|0)>=0){e=6;break}b=Db()|0;if((c[b>>2]|0)!=4){e=8;break}}if((e|0)==6)if(!b)b=0;else{b=Db()|0;e=8}if((e|0)==8){c[a+20>>2]=c[b>>2];b=_n(1546,47928,c[a+32>>2]|0,29004)|0}return b|0}function bk(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;if(!(Cb(c[a+12>>2]|0)|0)){h=a+18|0;if(!(b[h>>1]&8))d=0;else{d=nc[c[47552+208>>2]&127](c[a+32>>2]|0,g)|0;f=c[g>>2]|0;if((d|0)==0&(f|0)>-1){Cb(f|0)|0;Yn(a,c[g>>2]|0,28974);d=0}else d=(d|0)==14?0:d;b[h>>1]=(e[h>>1]|0)&65527}}else{c[a+20>>2]=c[(Db()|0)>>2];d=_n(1034,48360,c[a+32>>2]|0,28960)|0}i=k;return d|0}function ck(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=i;i=i+80|0;if((i|0)>=(j|0))ba();d=e;if(!(nc[c[47552+64>>2]&127](c[a+12>>2]|0,d)|0)){a=c[d+36>>2]|0;f=(a|0)==1;d=b;c[d>>2]=f?0:a;c[d+4>>2]=f?0:((a|0)<0)<<31>>31;d=0}else{c[a+20>>2]=c[(Db()|0)>>2];d=1802}i=e;return d|0}function dk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=c[b+24>>2]|0;g=b+16|0;a:do if(!(a[g>>0]|0)){e=nc[c[47552+220>>2]&127](f,511)|0;if((e|0)>=0){a[g>>0]=d;break}f=c[(Db()|0)>>2]|0;switch(f|0){case 1:{e=3;break}case 13:case 37:case 4:case 16:case 110:case 11:case 17:{e=5;break a}default:e=3850}c[b+20>>2]=f}else{a[g>>0]=d;Ua(f|0,0)|0;e=0}while(0);return e|0}function ek(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=c[b+24>>2]|0;h=b+16|0;a:do if((d[h>>0]|0|0)==(e|0))f=0;else{if((e|0)==1){a[h>>0]=1;f=0;break}do if((hc[c[47552+232>>2]&127](g)|0)<0){f=Db()|0;e=c[f>>2]|0;if((e|0)==20){if((hc[c[47552+196>>2]&127](g)|0)>=0)break;e=c[f>>2]|0}g=(e|0)!=2;f=g?2058:0;if(!g)break a;c[b+20>>2]=e;break a}while(0);a[h>>0]=0;f=0}while(0);return f|0}function fk(a,b){a=a|0;b=b|0;if((d[a+16>>0]|0)>1)a=1;else a=(nc[c[47552+28>>2]&127](c[a+24>>2]|0,0)|0)==0&1;c[b>>2]=a;return 0}function gk(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+80|0;if((i|0)>=(j|0))ba();g=n;a:do switch(b|0){case 6:{c[a+40>>2]=c[e>>2];f=0;break}case 20:{c[e>>2]=to(a)|0;f=0;break}case 16:{f=a+4|0;b=Pc(c[(c[f>>2]|0)+8>>2]|0)|0;if(!b)f=0;else{Wn(c[(c[f>>2]|0)+8>>2]|0,b)|0;c[e>>2]=b;f=0}break}case 12:{c[g>>2]=c[(c[a+4>>2]|0)+16>>2];c[e>>2]=Wc(10344,g)|0;f=0;break}case 1:{c[e>>2]=d[a+16>>0];f=0;break}case 24:{f=0;break}case 10:{so(a,4,e);f=0;break}case 13:{so(a,16,e);f=0;break}case 5:{b=e;e=c[b>>2]|0;b=c[b+4>>2]|0;f=a+40|0;if((c[f>>2]|0)>0){m=a+12|0;if(!(nc[c[47552+64>>2]&127](c[m>>2]|0,g)|0)){f=c[f>>2]|0;k=((f|0)<0)<<31>>31;e=fw(e|0,b|0,-1,-1)|0;e=fw(e|0,C|0,f|0,k|0)|0;l=C;k=nw(e|0,l|0,f|0,k|0)|0;k=$v(e|0,l|0,k|0,C|0)|0;l=C;e=c[g+36>>2]|0;f=((e|0)<0)<<31>>31;do if((l|0)>(f|0)|(l|0)==(f|0)&k>>>0>e>>>0){h=c[g+40>>2]|0;b=e+-1+(h<<1)|0;b=b+~((b|0)%(h|0)|0)|0;e=((b|0)<0)<<31>>31;f=a+20|0;if((e|0)<(l|0)|(e|0)==(l|0)&b>>>0<k>>>0){g=((h|0)<0)<<31>>31;do{a=(ro(c[m>>2]|0,b,e,10360,1,f)|0)==1;b=fw(b|0,e|0,h|0,g|0)|0;e=C;if(!a){f=778;break a}}while((e|0)<(l|0)|(e|0)==(l|0)&b>>>0<k>>>0);b=nw(k|0,l|0,h|0,g|0)|0;if((b|0)==0&(C|0)==0)break}b=fw(k|0,l|0,-1,-1)|0;if((ro(c[m>>2]|0,b,C,10360,1,f)|0)!=1){f=778;break a}}while(0);f=0}else f=1802}else f=0;break}case 4:{c[e>>2]=c[a+20>>2];f=0;break}default:f=12}while(0);i=n;return f|0}function hk(a){a=a|0;return 4096}function ik(a){a=a|0;return (b[a+18>>1]&16)<<8|0}function jk(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;l=c[a+36>>2]|0;i=c[l>>2]|0;m=(1<<f+d)-(1<<d)|0;a:do if(!(g&1)){j=c[i+32>>2]|0;i=(j|0)==0;if(g&4){if(i)g=0;else{g=0;i=j;do{if(m&(e[i+12>>1]|0)){h=5;break a}g=b[i+10>>1]|g;i=c[i+4>>2]|0}while((i|0)!=0)}if((m&(g&65535)|0)==0?(k=uo(a,0,d+120|0,f)|0,(k|0)!=0):0){h=k;break}h=l+10|0;b[h>>1]=e[h>>1]|0|m;h=0;break}if(!i){h=m&65535;g=j;do{if((e[g+12>>1]|0)&h){h=5;break a}if((e[g+10>>1]|0)&h){h=5;break a}g=c[g+4>>2]|0}while((g|0)!=0)}h=uo(a,1,d+120|0,f)|0;if(!h){h=l+12|0;b[h>>1]=e[h>>1]|0|m;h=0}}else{i=c[i+32>>2]|0;if(!i)g=0;else{g=0;do{if((i|0)!=(l|0))g=b[i+10>>1]|g;i=c[i+4>>2]|0}while((i|0)!=0)}if((g&65535&m|0)==0?(h=uo(a,2,d+120|0,f)|0,(h|0)!=0):0)break;g=(m|-65536)^65535;h=l+12|0;b[h>>1]=(e[h>>1]|0)&g;h=l+10|0;b[h>>1]=(e[h>>1]|0)&g;h=0}while(0);return h|0}function kk(a){a=a|0;return}function lk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;f=a+36|0;g=c[f>>2]|0;if(g){h=c[g>>2]|0;d=h+32|0;while(1){e=c[d>>2]|0;if((e|0)==(g|0))break;else d=e+4|0}c[d>>2]=c[g+4>>2];Sc(g);c[f>>2]=0;e=h+28|0;d=(c[e>>2]|0)+-1|0;c[e>>2]=d;if(!d){if((b|0)!=0?(c[h+12>>2]|0)>-1:0)hc[c[47552+196>>2]&127](c[h+8>>2]|0)|0;vo(a)}}return 0}function mk(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[f>>2]=0;return 0}function nk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0}function ok(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();f=e;c[f>>2]=d;b=mb(a|0,b|0,f|0)|0;i=e;return b|0}function pk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+528|0;if((i|0)>=(j|0))ba();f=k;g=k+8|0;c[f>>2]=b;Yc(512,g,10344,f)|0;b=cw(g|0)|0;a:do if((b|0)>1)while(1){e=b+-1|0;if((a[g+b>>0]|0)==47)break a;if((e|0)>1)b=e;else{b=e;break}}while(0);if((b|0)>0){a[g+b>>0]=0;b=Xn(g,0,0)|0;c[d>>2]=b;if((b|0)>-1)b=0;else h=7}else{c[d>>2]=-1;h=7}if((h|0)==7){c[f>>2]=28919;c[f+4>>2]=10788;Zc(14,14848,f);b=_n(14,47896,g,28919)|0}i=k;return b|0}function qk(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Gb()|0))a=Mb(a|0,b|0,c|0)|0;else a=0;return a|0}function rk(){return sb(30)|0}function sk(a){a=a|0;qo(a);return 0}function tk(a,b){a=a|0;b=b|0;return 0}function uk(a,b){a=a|0;b=b|0;return 0}function vk(a,b){a=a|0;b=b|0;c[b>>2]=0;return 0}function wk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;Zn(a);yk(a,0)|0;f=c[a+8>>2]|0;if(f){if(c[f+24>>2]|0){b=a+28|0;e=c[b>>2]|0;d=f+28|0;c[e+8>>2]=c[d>>2];c[d>>2]=e;c[a+12>>2]=-1;c[b>>2]=0}d=f+16|0;b=(c[d>>2]|0)+-1|0;c[d>>2]=b;if(!b){wo(a);g=f+36|0;b=c[g>>2]|0;d=f+32|0;e=c[d>>2]|0;if(!b)c[12178]=e;else c[b+32>>2]=e;b=c[d>>2]|0;if(b)c[b+36>>2]=c[g>>2];Sc(f)}}qo(a);return 0}function xk(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;o=d+16|0;f=a[o>>0]|0;a:do if((f&255|0)<(e|0)){l=c[d+8>>2]|0;p=l+12|0;g=a[p>>0]|0;if(f<<24>>24!=g<<24>>24?(g&255)>2|(e|0)>1:0){f=5;break}h=(e|0)==1;do if(h)if((g+-1&255)<2){a[o>>0]=1;f=l+8|0;c[f>>2]=(c[f>>2]|0)+1;f=l+24|0;c[f>>2]=(c[f>>2]|0)+1;f=0;break a}else{g=m+8|0;c[g>>2]=1;b[m+2>>1]=0;n=10;break}else{g=m+8|0;c[g>>2]=1;b[m+2>>1]=0;if((e|0)==4)if((f&255)<3)n=10;else{k=g;n=14}else{h=g;n=24}}while(0);if((n|0)==10){b[m>>1]=h&1^1;c[m+4>>2]=c[2514];if(!(xo(d,m)|0)){k=g;n=14}else{g=c[(Db()|0)>>2]|0;switch(g|0){case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break a}case 1:{f=3;break}default:f=3850}c[d+20>>2]=g;break}}b:do if((n|0)==14)if(h){h=m+4|0;c[h>>2]=(c[2514]|0)+2;c[k>>2]=510;c:do if(!(xo(d,m)|0)){f=0;g=0}else{g=c[(Db()|0)>>2]|0;switch(g|0){case 1:{f=3;g=1;break c}case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break c}default:{f=3850;break c}}}while(0);c[h>>2]=c[2514];c[k>>2]=1;b[m>>1]=2;do if((xo(d,m)|0)!=0&(f|0)==0){f=2058;g=c[(Db()|0)>>2]|0}else{if((f|0)==5){f=5;break a}else if(f)break;a[o>>0]=1;m=l+24|0;c[m>>2]=(c[m>>2]|0)+1;c[l+8>>2]=1;break b}while(0);c[d+20>>2]=g;break a}else{h=k;n=24}while(0);do if((n|0)==24){k=(e|0)==4;if(k)if((c[l+8>>2]|0)>1)f=5;else{b[m>>1]=1;g=c[2514]|0;n=29}else{b[m>>1]=1;g=c[2514]|0;if((e|0)==2){c[m+4>>2]=g+1;g=1;n=30}else n=29}if((n|0)==29){c[m+4>>2]=g+2;g=510;n=30}if((n|0)==30){c[h>>2]=g;if(!(xo(d,m)|0))break;g=c[(Db()|0)>>2]|0;switch(g|0){case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break}case 1:{f=3;n=33;break}default:{f=3850;n=33}}if((n|0)==33)c[d+20>>2]=g;if(!k)break a}a[o>>0]=3;a[p>>0]=3;break a}while(0);f=e&255;a[o>>0]=f;a[p>>0]=f;f=0}else f=0;while(0);i=q;return f|0}function yk(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;l=d+16|0;f=a[l>>0]|0;a:do if((f&255|0)>(e|0)){m=c[d+8>>2]|0;do if((f&255)>1){if((e|0)==1){b[k>>1]=0;h=k+2|0;b[h>>1]=0;f=k+4|0;c[f>>2]=(c[2514]|0)+2;g=k+8|0;c[g>>2]=510;if(xo(d,k)|0){c[d+20>>2]=c[(Db()|0)>>2];f=2314;break a}}else{g=k+8|0;h=k+2|0;f=k+4|0}b[k>>1]=2;b[h>>1]=0;c[f>>2]=c[2514];c[g>>2]=2;if(!(xo(d,k)|0)){a[m+12>>0]=1;break}else{c[d+20>>2]=c[(Db()|0)>>2];f=2058;break a}}while(0);if(!e){g=m+8|0;f=(c[g>>2]|0)+-1|0;c[g>>2]=f;do if(!f){b[k>>1]=2;b[k+2>>1]=0;c[k+8>>2]=0;c[k+4>>2]=0;if(!(xo(d,k)|0)){a[m+12>>0]=0;f=0;break}else{c[d+20>>2]=c[(Db()|0)>>2];a[m+12>>0]=0;a[l>>0]=0;f=2058;break}}else f=0;while(0);h=m+24|0;g=(c[h>>2]|0)+-1|0;c[h>>2]=g;if(!g)wo(d);if(f)break}a[l>>0]=e;f=0}else f=0;while(0);i=n;return f|0}function zk(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();k=m;l=m+8|0;h=c[e+8>>2]|0;n=(d[h+12>>0]|0)>1;g=n&1;do if(!n)if(!(a[h+13>>0]|0)){b[l+2>>1]=0;c[l+4>>2]=(c[2514]|0)+1;c[l+8>>2]=1;b[l>>1]=1;n=c[11910]|0;h=c[e+12>>2]|0;c[k>>2]=l;if(!(Yb[n&63](h,12,k)|0)){h=0;g=(b[l>>1]|0)==2?g:1;break}else{c[e+20>>2]=c[(Db()|0)>>2];h=3594;break}}else{h=0;g=0}else{h=0;g=1}while(0);c[f>>2]=g;i=m;return h|0}function Ak(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+160|0;if((i|0)>=(j|0))ba();y=A;t=A+76|0;m=dc[c[47552+292>>2]&7]()|0;if((m|0)<32768)z=1;else z=(m|0)/32768|0;w=d+36|0;m=c[w>>2]|0;a:do if(!m){m=Pc(16)|0;if(!m)l=7;else{c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;s=d+8|0;q=c[s>>2]|0;l=c[q+20>>2]|0;b:do if(!l){r=d+32|0;n=c[r>>2]|0;if((nc[c[47552+64>>2]&127](c[d+12>>2]|0,t)|0)!=0?(a[q+13>>0]|0)==0:0)l=1802;else x=8;c:do if((x|0)==8){l=cw(n|0)|0;o=l+42|0;u=Pc(o)|0;if(u){bw(u|0,0,o|0)|0;p=u+36|0;c[u+8>>2]=p;c[y>>2]=n;Yc(l+6|0,p,48720,y)|0;l=u+12|0;c[l>>2]=-1;s=c[s>>2]|0;c[s+20>>2]=u;c[u>>2]=s;c[u+4>>2]=8;if(a[q+13>>0]|0){l=u;break b}if(!(bg(c[r>>2]|0,48728,0)|0))o=66;else{a[u+22>>0]=1;o=0}n=Xn(p,o,c[t+12>>2]&511)|0;c[l>>2]=n;if((n|0)<0){c[y>>2]=29706;c[y+4>>2]=10788;Zc(14,14848,y);l=_n(14,47896,p,29706)|0;break}Yb[c[47552+244>>2]&63](n,c[t+20>>2]|0,c[t+24>>2]|0)|0;do if(!(uo(d,1,128,1)|0)){l=c[l>>2]|0;do{n=nc[c[47552+76>>2]&127](l,0)|0;if((n|0)>=0){v=n;x=18;break}}while((c[(Db()|0)>>2]|0)==4);if((x|0)==18?(v|0)==0:0)break;l=_n(4618,47928,p,29722)|0;if(l)break c}while(0);l=uo(d,0,128,1)|0;if(!l){l=u;break b}}else l=7}while(0);vo(d);Sc(m);if(l)break a;m=c[w>>2]|0;x=24;break a}while(0);c[m>>2]=l;x=l+28|0;c[x>>2]=(c[x>>2]|0)+1;c[d+36>>2]=m;x=l+32|0;c[m+4>>2]=c[x>>2];c[x>>2]=m;x=24}}else x=24;while(0);if((x|0)==24){u=c[m>>2]|0;w=z+f|0;w=w-((w|0)%(z|0)|0)|0;t=u+20|0;d:do if((e[t>>1]|0)<(w|0)){l=_(w,g)|0;c[u+16>>2]=g;v=u+12|0;m=c[v>>2]|0;e:do if((m|0)>-1){if(nc[c[47552+64>>2]&127](m,y)|0){m=4874;break d}m=c[y+36>>2]|0;if((m|0)<(l|0)){if(!h){m=0;break d}m=(m|0)/4096|0;l=(l|0)/4096|0;if((m|0)<(l|0)){while(1){s=m<<12|4095;m=m+1|0;if((ro(c[v>>2]|0,s,((s|0)<0)<<31>>31,10360,1,0)|0)!=1)break;if((m|0)>=(l|0))break e}m=_n(4874,47976,c[u+8>>2]|0,29853)|0;break d}}}while(0);s=u+24|0;m=Tc(c[s>>2]|0,w<<2)|0;if(m){c[s>>2]=m;m=e[t>>1]|0;if((m|0)<(w|0)){p=_(z,g)|0;q=u+22|0;r=(z|0)>0;while(1){l=c[v>>2]|0;if((l|0)>-1){m=_(m,g)|0;m=gc[c[47552+256>>2]&7](0,p,(a[q>>0]|0)!=0?1:3,1,l,m)|0;if((m|0)==(-1|0))break}else{m=Pc(g)|0;if(!m){m=7;break d}bw(m|0,0,g|0)|0}n=b[t>>1]|0;if(r){l=n&65535;o=0;do{d=m+(_(o,g)|0)|0;c[(c[s>>2]|0)+(l+o<<2)>>2]=d;o=o+1|0}while((o|0)!=(z|0))}m=(n&65535)+z|0;b[t>>1]=m;m=m&65535;if((m|0)>=(w|0)){m=0;break d}}m=_n(5386,48080,c[u+8>>2]|0,29880)|0}else m=0}else m=3082}else m=0;while(0);if((e[t>>1]|0)>(f|0))l=c[(c[u+24>>2]|0)+(f<<2)>>2]|0;else l=0;c[k>>2]=l;l=(a[u+22>>0]|0)!=0&(m|0)==0?8:m}i=A;return l|0}function Bk(a,b){a=a|0;b=b|0;var d=0;if(b)do{d=b;b=c[b+32>>2]|0;Ck(a,c[d+20>>2]|0);Jk(a,c[d+24>>2]|0);Ik(a,c[d+8>>2]|0,1);Dk(a,c[d+28>>2]|0);ig(a,d)}while((b|0)!=0);return}function Ck(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(b){f=b+4|0;do if(!(c[f>>2]&16384)){Ck(a,c[b+12>>2]|0);Ck(a,c[b+16>>2]|0);d=c[f>>2]|0;if(d&65536){ig(a,c[b+8>>2]|0);d=c[f>>2]|0}e=b+20|0;if(!(d&2048)){Jk(a,c[e>>2]|0);break}else{Ik(a,c[e>>2]|0,1);break}}while(0);if(!(c[f>>2]&32768))ig(a,b)}return}function Dk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(b){f=b+4|0;d=c[b>>2]|0;if((c[f>>2]|0)>0){e=0;do{ig(a,c[d+(e<<3)>>2]|0);e=e+1|0;d=c[b>>2]|0}while((e|0)<(c[f>>2]|0))}ig(a,d);ig(a,b)}return}function Ek(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q;m=Zm(b,e,p)|0;do if(!m)if(f){o=mg(16,0)|0;if(!o)g=f;else{c[o+12>>2]=e;c[o+8>>2]=f;n=b+4|0;k=(c[n>>2]|0)+1|0;c[n>>2]=k;if((k>>>0>9?(h=c[b>>2]|0,k>>>0>h<<1>>>0):0)?(l=k<<4>>>0>1024?128:k<<1,(l|0)!=(h|0)):0){g=c[3164]|0;if(g)jc[g&3]();n=mg(l<<3,0)|0;g=c[3166]|0;if(g)jc[g&3]();if(n){m=b+12|0;Sc(c[m>>2]|0);c[m>>2]=n;m=(hc[c[8744+48>>2]&127](n)|0)>>>3;c[b>>2]=m;bw(n|0,0,m<<3|0)|0;f=b+8|0;k=c[f>>2]|0;c[f>>2]=0;if(k)do{l=c[k+12>>2]|0;h=a[l>>0]|0;if(!(h<<24>>24))h=0;else{f=h;h=0;do{l=l+1|0;h=h<<3^h^(d[9328+(f&255)>>0]|0);f=a[l>>0]|0}while(f<<24>>24!=0)}f=k;k=c[k>>2]|0;yo(b,n+(((h>>>0)%(m>>>0)|0)<<3)|0,f)}while((k|0)!=0);g=a[e>>0]|0;if(!(g<<24>>24))g=0;else{k=g;g=0;do{e=e+1|0;g=g<<3^g^(d[9328+(k&255)>>0]|0);k=a[e>>0]|0}while(k<<24>>24!=0)}c[p>>2]=(g>>>0)%((c[b>>2]|0)>>>0)|0}}g=c[b+12>>2]|0;if(!g)g=0;else g=g+(c[p>>2]<<3)|0;yo(b,g,o);g=0}}else g=0;else{k=m+8|0;g=c[k>>2]|0;if(f){c[k>>2]=f;c[m+12>>2]=e;break}l=c[p>>2]|0;k=c[m+4>>2]|0;h=c[m>>2]|0;if(!k)c[b+8>>2]=h;else{c[k>>2]=h;h=c[m>>2]|0}if(h)c[h+4>>2]=k;e=c[b+12>>2]|0;if(e){k=e+(l<<3)+4|0;if((c[k>>2]|0)==(m|0))c[k>>2]=h;p=e+(l<<3)|0;c[p>>2]=(c[p>>2]|0)+-1}Sc(m);o=b+4|0;p=(c[o>>2]|0)+-1|0;c[o>>2]=p;if(!p)Kl(b)}while(0);i=q;return g|0}function Fk(b,d){b=b|0;d=d|0;Ck(b,c[d+36>>2]|0);ig(b,c[d+16>>2]|0);if(a[d+51>>0]&16)ig(b,c[d+32>>2]|0);ig(b,d);return}function Gk(a,b){a=a|0;b=b|0;var d=0;if(b){d=c[b+28>>2]|0;Ck(a,c[d+20>>2]|0);Jk(a,c[d+24>>2]|0);Ik(a,c[d+8>>2]|0,1);Ck(a,c[b+12>>2]|0);ig(a,b)}return}function Hk(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;g=d+4|0;e=c[g>>2]|0;if(e){d=d+38|0;if((b[d>>1]|0)>0){f=0;while(1){ig(a,c[e>>2]|0);Ck(a,c[e+4>>2]|0);ig(a,c[e+8>>2]|0);ig(a,c[e+12>>2]|0);ig(a,c[e+16>>2]|0);f=f+1|0;if((f|0)>=(b[d>>1]|0))break;else e=e+24|0}e=c[g>>2]|0}ig(a,e)}return}function Ik(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b){e=(d|0)==0;d=b;while(1){b=d;d=c[d+52>>2]|0;Jk(a,c[b>>2]|0);zo(a,c[b+32>>2]|0);Ck(a,c[b+36>>2]|0);Jk(a,c[b+40>>2]|0);Ck(a,c[b+44>>2]|0);Jk(a,c[b+48>>2]|0);Ck(a,c[b+60>>2]|0);Ck(a,c[b+64>>2]|0);Mn(a,c[b+68>>2]|0);if(!e)ig(a,b);if(!d)break;else e=0}}return}function Jk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(b){d=b+4|0;if((c[b>>2]|0)>0){e=0;f=c[d>>2]|0;while(1){Ck(a,c[f>>2]|0);ig(a,c[f+4>>2]|0);ig(a,c[f+8>>2]|0);e=e+1|0;if((e|0)>=(c[b>>2]|0))break;else f=f+20|0}}ig(a,c[d>>2]|0);ig(a,b)}return}function Kk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=b+60|0;d=c[h>>2]|0;c[h>>2]=0;a:do if(!d)b=0;else{b=0;do{while(1){f=c[d>>2]|0;e=d+24|0;g=d;d=c[e>>2]|0;if((f|0)==(a|0)){b=g;break}f=f+332|0;c[e>>2]=c[f>>2];c[f>>2]=g;if(!d)break a}c[h>>2]=b;c[e>>2]=0}while((d|0)!=0)}while(0);return b|0}function Lk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((d|0)!=0?(f=d+(e*20|0)|0,(e|0)>0):0){e=d;do{En(b,a[e+1>>0]|0,c[e+16>>2]|0);e=e+20|0}while(e>>>0<f>>>0)}ig(b,d);return}function Mk(a,b){a=a|0;b=b|0;do if(!a)b=hc[c[8744+48>>2]&127](b)|0;else{if((c[a+276>>2]|0)>>>0<=b>>>0?(c[a+280>>2]|0)>>>0>b>>>0:0){b=e[a+248>>1]|0;break}b=hc[c[8744+48>>2]&127](b)|0}while(0);a=c[a+520>>2]|0;c[a>>2]=(c[a>>2]|0)+b;return}function Nk(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[b+(d<<2)>>2]|0;a:do if(!b)b=0;else while(1){d=c[b+24>>2]|0;if((Bc(d,e,f)|0)==0?(a[d+f>>0]|0)==0:0)break a;b=c[b+28>>2]|0;if(!b){b=0;break}}while(0);return b|0}function Ok(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=a+12|0;f=c[e>>2]|0;g=f+d|0;if((g|0)<(c[a+16>>2]|0)){c[e>>2]=g;gw((c[a+8>>2]|0)+f|0,b|0,d|0)|0}else Ao(a,b,d);return}function Pk(a){a=a|0;var b=0,d=0;d=a+4|0;b=c[d>>2]|0;if((c[a>>2]|0)>(b|0)){c[d>>2]=b+1;d=Rg(c[(c[a+8>>2]|0)+(b<<2)>>2]|0)|0;b=C}else{b=0;d=0}C=b;return d|0}function Qk(a){a=a|0;var b=0,d=0;b=a+4|0;d=c[b>>2]|0;if((c[a>>2]|0)>(d|0)){c[b>>2]=d+1;b=Og(c[(c[a+8>>2]|0)+(d<<2)>>2]|0,1)|0}else b=0;return b|0}function Rk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=b+12|0;i=c[g>>2]|0;i=fw(i|0,((i|0)<0)<<31>>31|0,d|0,((d|0)<0)<<31>>31|0)|0;k=C;h=c[b+16>>2]|0;j=((h|0)<0)<<31>>31;if((k|0)<(j|0)|(k|0)==(j|0)&i>>>0<h>>>0){if((d|0)>0)f=4}else{d=Bo(b,d)|0;if((d|0)>=1)f=4}if((f|0)==4){b=b+8|0;do{d=d+-1|0;f=c[g>>2]|0;c[g>>2]=f+1;a[(c[b>>2]|0)+f>>0]=e}while((d|0)>0)}return}function Sk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+112|0;if((i|0)>=(j|0))ba();k=f+28|0;h=f;g=c[b+88>>2]|0;c[h+4>>2]=k;c[h+8>>2]=k;c[h+12>>2]=0;c[h+16>>2]=70;c[h+20>>2]=g;a[h+24>>0]=1;g=h+25|0;a[g>>0]=0;c[h>>2]=b;og(h,1,d,e);e=pg(h)|0;if((a[g>>0]|0)==1)a[b+65>>0]=1;i=f;return e|0}function Tk(a){a=a|0;return hc[c[8744+48>>2]&127](a)|0}function Uk(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))ba();l=m+40|0;g=m;if((d|0)!=0?(f=c[d+20>>2]|0,(f|0)!=0):0){c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;h=g+0|0;k=h+40|0;do{c[h>>2]=0;h=h+4|0}while((h|0)<(k|0));b[g+8>>1]=1;e=a+32|0;c[g+32>>2]=c[e>>2];c[l>>2]=g;c[l+8>>2]=a;c[l+4>>2]=d;_b[f&31](l);if((c[a+24>>2]|0)>0)ig(c[e>>2]|0,c[a+20>>2]|0);h=a+0|0;e=g+0|0;k=h+40|0;do{c[h>>2]=c[e>>2];h=h+4|0;e=e+4|0}while((h|0)<(k|0));e=c[l+20>>2]|0}else e=0;i=m;return e|0}function Vk(a){a=a|0;var d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;do{f=d;d=c[d>>2]|0;ig(c[e>>2]|0,f)}while((d|0)!=0)}c[a>>2]=0;b[a+24>>1]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+20>>2]=0;b[a+26>>1]=1;return}function Wk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;g=k+4|0;d=c[b>>2]|0;e=d+16|0;do if((c[(c[e>>2]|0)+20>>2]|0)==0?(a[b+450>>0]|0)==0:0){f=vm(c[d>>2]|0,0,d,g,0,542)|0;if(f){ph(b,25496,h);c[b+12>>2]=f;d=1;break}f=c[g>>2]|0;c[(c[e>>2]|0)+20>>2]=f;if((tg(f,c[d+72>>2]|0,-1,0)|0)==7){a[d+65>>0]=1;d=1}else d=0}else d=0;while(0);i=k;return d|0}function Xk(a){a=a|0;var b=0;do if(a)if((c[3157]|0)>>>0<=a>>>0&(c[3158]|0)>>>0>a>>>0){c[2167]=(c[2167]|0)+-1;c[a>>2]=c[3160];c[3160]=a;a=(c[3161]|0)+1|0;c[3161]=a;c[3162]=(a|0)<(c[3156]|0)&1;break}else{b=hc[c[8744+48>>2]&127](a)|0;c[2168]=(c[2168]|0)-b;Sc(a);break}while(0);return}function Yk(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;m=c[e>>2]|0;if((a[d+15>>0]|0)!=0?(c[d+24>>2]|0)!=0:0)p=12;else p=3;do if((p|0)==3){l=d+204|0;if(((m|0)!=0?(c[(c[l>>2]|0)+12>>2]|0)==0:0)?(o=d+152|0,(m|0)!=(c[o>>2]|0)):0){r=n;c[r>>2]=0;c[r+4>>2]=0;if(((a[d+16>>0]|0)!=0?(h=c[d+60>>2]|0,g=c[h>>2]|0,(g|0)!=0):0)?(k=nc[c[g+24>>2]&127](h,n)|0,(k|0)!=0):0){g=0;f=k}else{g=Co(m)|0;if(g){tn(d);h=Do(c[l>>2]|0,m)|0;if(!h){p=d+200|0;Xk(c[p>>2]|0);c[p>>2]=g;p=n;n=c[p>>2]|0;p=c[p+4>>2]|0;l=fw(m|0,0,-1,-1)|0;p=fw(l|0,C|0,n|0,p|0)|0;p=mw(p|0,C|0,m|0,0)|0;c[d+24>>2]=p;c[o>>2]=m;p=12;break}else f=h}else{g=0;f=7}}Xk(g);c[e>>2]=c[o>>2]}else p=12}while(0);if((p|0)==12){c[e>>2]=c[d+152>>2];g=d+142|0;if((f|0)<0)f=b[g>>1]|0;b[g>>1]=f;f=0}i=q;return f|0}function Zk(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0;i=c[d+4>>2]|0;a:do if(a[d+9>>0]|0){if((c[i+76>>2]|0)!=(d|0)?(b[i+22>>1]&32)!=0:0){h=262;break}h=c[i+72>>2]|0;if(h){while(1){if(((c[h>>2]|0)!=(d|0)?(c[h+4>>2]|0)==(f|0):0)?(a[h+8>>0]|0)!=g<<24>>24:0)break;h=c[h+12>>2]|0;if(!h){h=0;break a}}if(g<<24>>24==2){h=i+22|0;b[h>>1]=e[h>>1]|64;h=262}else h=262}else h=0}else h=0;while(0);return h|0}function _k(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+64|0;if((i|0)>=(j|0))ba();E=F;B=F+28|0;A=F+24|0;m=F+20|0;r=F+48|0;t=F+16|0;u=F+12|0;y=F+8|0;z=F+32|0;if(!((a[b+15>>0]|0)!=0?(e=c[b+40>>2]|0,(e|0)!=0):0))D=3;do if((D|0)==3){C=b+208|0;f=c[C>>2]|0;a:do if(!f){x=b+16|0;do if(!(a[x>>0]|0)){h=b+176|0;g=b+180|0;while(1){e=bl(b,1)|0;if(!e)break;else if((e|0)!=5)break a;if(!(hc[c[h>>2]&127](c[g>>2]|0)|0)){e=5;break a}}s=b+17|0;if((d[s>>0]|0)<2){f=c[b>>2]|0;c[E>>2]=1;k=b+64|0;l=(c[c[k>>2]>>2]|0)!=0;if(l){h=1;e=0}else{e=lc[c[f+32>>2]&31](f,c[b+172>>2]|0,0,E)|0;h=(c[E>>2]|0)!=0}b:do if((e|0)==0&h){c[B>>2]=0;g=b+60|0;e=c[g>>2]|0;e=nc[c[(c[e>>2]|0)+36>>2]&127](e,B)|0;if(!(c[B>>2]|e)){e=Eo(b,A)|0;if(!e){if((c[A>>2]|0)!=0|l){do if(!l){c[m>>2]=2049;e=pc[c[f+24>>2]&31](f,c[b+172>>2]|0,c[k>>2]|0,2049,m)|0;if(!e)break;else if((e|0)!=14){h=0;break b}h=1;e=0;break b}while(0);a[r>>0]=0;e=c[k>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,r,1,0,0)|0;e=(e|0)==522?0:e;if(!l?(p=c[k>>2]|0,q=c[p>>2]|0,(q|0)!=0):0){hc[c[q+4>>2]&127](p)|0;c[p>>2]=0}h=(a[r>>0]|0)!=0&1;break}h=c[3164]|0;if(h)jc[h&3]();do if(((bl(b,2)|0)==0?(Yb[c[f+28>>2]&63](f,c[b+172>>2]|0,0)|0,(a[b+4>>0]|0)==0):0)?(n=c[g>>2]|0,o=c[n>>2]|0,(o|0)!=0):0){if(!(a[b+13>>0]|0))nc[c[o+32>>2]&127](n,1)|0;if((a[s>>0]|0)==5)break;a[s>>0]=1}while(0);h=c[3166]|0;if(!h){h=0;e=0}else{jc[h&3]();h=0;e=0}}else h=0}else h=0}else h=0;while(0);if(e)break a;if(h)D=35}else D=35;do if((D|0)==35){if(a[b+14>>0]|0){e=776;break a}e=bl(b,4)|0;if(e)break a;f=b+64|0;if(!(c[c[f>>2]>>2]|0)){h=c[b>>2]|0;g=b+172|0;e=lc[c[h+32>>2]&31](h,c[g>>2]|0,0,t)|0;if((e|0)==0&(c[t>>2]|0)!=0){c[u>>2]=0;e=pc[c[h+24>>2]&31](h,c[g>>2]|0,c[f>>2]|0,2050,u)|0;if(!e)if(c[u>>2]&1){c[E>>2]=46645;c[E+4>>2]=10788;Zc(14,14848,E);h=c[f>>2]|0;g=c[h>>2]|0;if(!g)e=14;else{hc[c[g+4>>2]&127](h)|0;c[h>>2]=0;e=14}}else e=0}}else e=0;if(!(c[c[f>>2]>>2]|0))if((a[b+4>>0]|0)==0?(v=c[b+60>>2]|0,w=c[v>>2]|0,(w|0)!=0):0){if(!(a[b+13>>0]|0))nc[c[w+32>>2]&127](v,1)|0;if((a[s>>0]|0)!=5){a[s>>0]=1;D=52}else D=52}else D=52;else{e=Fo(b)|0;if(!e){e=Go(b,1)|0;a[x>>0]=0;D=52}}if((D|0)==52)if(!e)break;B=e&255;if(!((B|0)==10|(B|0)==13))break a;c[b+40>>2]=e;a[x>>0]=6;break a}while(0);h=b+12|0;if((a[h>>0]|0)==0?(a[b+23>>0]|0)!=0:0){c[y>>2]=0;e=Eo(b,y)|0;if(e)break a;if(c[y>>2]|0){e=c[b+60>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,z,16,24,0)|0;if(!((e|0)==0|(e|0)==522))break a}else{g=z+0|0;f=g+16|0;do{a[g>>0]=0;g=g+1|0}while((g|0)<(f|0))}if(Vv(b+104|0,z,16)|0)tn(b)}if(!(a[h>>0]|0)){e=Eo(b,A)|0;if(!e){g=c[b>>2]|0;f=c[b+212>>2]|0;if(!(c[A>>2]|0)){e=Yb[c[g+28>>2]&63](g,f,0)|0;c[B>>2]=0;if((e|0)!=5898)D=68}else{e=lc[c[g+32>>2]&31](g,f,0,B)|0;D=68}if((D|0)==68){if(e)break;if(c[B>>2]|0){e=al(b,0)|0;break}}e=b+5|0;if((a[e>>0]|0)==5){a[e>>0]=0;e=0}else e=0}}else e=0}else e=0;while(0);f=c[C>>2]|0;if(!f)D=78;else D=74}else D=74;while(0);if((D|0)==74){c[E>>2]=0;Ho(f);f=c[C>>2]|0;g=0;do{g=g+1|0;e=Io(f,E,0,g)|0}while((e|0)==-1);if(!(c[E>>2]|e))D=78;else{tn(b);D=78}}if((D|0)==78){if((a[b+16>>0]|0)==0&(e|0)==0)e=Eo(b,b+24|0)|0;if(!e){a[b+16>>0]=1;e=0;break}}Jo(b)}while(0);i=F;return e|0}function $k(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;f=vg(c[b>>2]|0,d,g,f)|0;if(!f){g=c[g>>2]|0;f=c[g+8>>2]|0;c[f+56>>2]=c[g+4>>2];c[f+68>>2]=g;c[f+52>>2]=b;c[f+72>>2]=d;a[f+6>>0]=(d|0)==1?100:0;c[e>>2]=f;f=0}i=h;return f|0}function al(b,d){b=b|0;d=d|0;var e=0,f=0;do if((a[b+12>>0]|0)==0?(c[b+208>>2]|0)==0:0){d=c[c[b+60>>2]>>2]|0;if(!(a[b+4>>0]|0)){if((c[d>>2]|0)<=1){d=14;break}if(!(c[d+52>>2]|0)){d=14;break}}d=c[b+64>>2]|0;e=c[d>>2]|0;if(e){hc[c[e+4>>2]&127](d)|0;c[d>>2]=0}d=ln(b)|0;if(!d){a[b+5>>0]=5;a[b+16>>0]=0;d=0}}else f=10;while(0);if((f|0)==10){c[d>>2]=1;d=0}return d|0}function bl(b,d){b=b|0;d=d|0;var e=0,f=0;f=b+17|0;e=a[f>>0]|0;do if((e&255|0)<(d|0)|e<<24>>24==5){if(!(a[b+13>>0]|0)){e=c[b+60>>2]|0;e=nc[c[(c[e>>2]|0)+28>>2]&127](e,d)|0;if(e)break;e=a[f>>0]|0}if(e<<24>>24!=5|(d|0)==4){a[f>>0]=d;e=0}else e=0}else e=0;while(0);return e|0}function cl(a){a=a|0;var b=0,d=0,e=0;b=c[a+4>>2]|0;a=c[b+444>>2]|0;if((a|0)!=0?(e=b+452|0,d=c[e>>2]|0,(d|0)>=0):0){a=nc[a&127](c[b+448>>2]|0,d)|0;if(!a)b=-1;else b=(c[e>>2]|0)+1|0;c[e>>2]=b}else a=0;return a|0}function dl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=b+96|0;e=c[n>>2]|0;a:do if((e|0)<(d|0)?(a[b+6>>0]|0)!=0:0){f=b+92|0;q=ng(c[f>>2]|0,d*48|0,0)|0;if(!q)e=7;else{bw(q+(e*48|0)|0,0,(d-e|0)*48|0)|0;c[f>>2]=q;i=b+24|0;j=b+64|0;k=b+148|0;l=b+52|0;m=b+208|0;h=b+72|0;while(1){g=c[i>>2]|0;b=q+(e*48|0)|0;c[q+(e*48|0)+20>>2]=g;if((c[c[j>>2]>>2]|0)!=0?(p=h,o=c[p>>2]|0,p=c[p+4>>2]|0,(p|0)>0|(p|0)==0&o>>>0>0):0){c[b>>2]=o;c[b+4>>2]=p}else{c[b>>2]=c[k>>2];c[b+4>>2]=0}c[q+(e*48|0)+24>>2]=c[l>>2];f=mg(512,0)|0;if(!f)break;bw(f|0,0,512)|0;c[f>>2]=g;c[q+(e*48|0)+16>>2]=f;f=c[m>>2]|0;if(f){c[q+(e*48|0)+28>>2]=c[f+68>>2];c[q+(e*48|0)+32>>2]=c[f+76>>2];c[q+(e*48|0)+36>>2]=c[f+80>>2];c[q+(e*48|0)+40>>2]=c[f+104>>2]}e=e+1|0;c[n>>2]=e;if((e|0)>=(d|0)){e=0;break a}}c[q+(e*48|0)+16>>2]=f;e=7}}else e=0;while(0);return e|0}function el(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;do if(e){f=c[e+4>>2]|0;if(!(c[f>>2]|0)){f=Ko(a,d,e)|0;break}e=f+26|0;g=b[e>>1]|0;if(!(g<<16>>16)){h=a+12|0;c[h>>2]=(c[h>>2]|0)+1}b[e>>1]=g+1<<16>>16;if((d|0)==1)c[a+44>>2]=f}else f=0;while(0);return f|0}function fl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=a+96|0;d=c[h>>2]|0;if((d|0)>0){g=a+92|0;f=0;a=0;do{e=c[g>>2]|0;if((c[e+(f*48|0)+20>>2]|0)>>>0>=b>>>0){a=Zh(c[e+(f*48|0)+16>>2]|0,b)|0|a;d=c[h>>2]|0}f=f+1|0}while((f|0)<(d|0))}else a=0;return a|0}function gl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+32|0;if((i|0)>=(j|0))ba();w=y;s=y+16|0;t=y+12|0;v=y+8|0;q=c[a+68>>2]|0;a:do if((q|0)!=0?(b[a+40>>1]|0)!=0:0){r=d*383&8191;u=(q+33|0)>>>12;b:while(1){g=Lo(a,u,s,t,v)|0;if(g)break a;g=(c[s>>2]|0)+(r<<1)|0;if(!(b[g>>1]|0))g=0;else{n=c[v>>2]|0;o=c[s>>2]|0;p=c[t>>2]|0;k=g;l=r;g=0;m=8192;while(1){h=(e[k>>1]|0)+n|0;if(h>>>0<=q>>>0)g=(c[p+(e[k>>1]<<2)>>2]|0)==(d|0)?h:g;if(!m){x=11;break b}l=l+1&8191;k=o+(l<<1)|0;if(!(b[k>>1]|0))break;else m=m+-1|0}}if((u|0)>0&(g|0)==0)u=u+-1|0;else{x=14;break}}if((x|0)==11){c[w>>2]=51262;c[w+4>>2]=10788;Zc(11,13600,w);g=11;break}else if((x|0)==14){c[f>>2]=g;g=0;break}}else x=3;while(0);if((x|0)==3){c[f>>2]=0;g=0}i=y;return g|0}function hl(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;h=c[b+16>>2]|0;i=c[b+20>>2]|0;f=c[h+152>>2]|0;b=b+4|0;g=c[b>>2]|0;if(!d){d=ow(i+-1|0,0,f|0,((f|0)<0)<<31>>31|0)|0;j=c[h+60>>2]|0;d=pc[c[(c[j>>2]|0)+8>>2]&31](j,g,f,d,C)|0;d=(d|0)==522?0:d}else{k=c[h+208>>2]|0;j=e[k+66>>1]|0;j=j<<16&65536|j&65024;d=ow(j|24|0,0,d+-1|0,0)|0;d=fw(d|0,C|0,56,0)|0;k=c[k+8>>2]|0;d=pc[c[(c[k>>2]|0)+8>>2]&31](k,g,(j|0)<(f|0)?j:f,d,C)|0}do if((i|0)==1)if(!d){g=h+104|0;f=(c[b>>2]|0)+24|0;b=g+16|0;do{a[g>>0]=a[f>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(b|0));break}else{g=h+104|0;b=g+16|0;do{a[g>>0]=255;g=g+1|0}while((g|0)<(b|0));break}while(0);return d|0}function il(a){a=a|0;var d=0,e=0;if(b[a+24>>1]&2)Mo(a,1);d=c[a+28>>2]|0;e=d+12|0;c[e>>2]=(c[e>>2]|0)+-1;if((c[a+20>>2]|0)==1)c[d+44>>2]=0;ic[c[8744+136>>2]&63](c[d+40>>2]|0,c[a>>2]|0,1);return}function jl(b){b=b|0;var d=0;d=a[b+16>>0]|0;do if(!(d<<24>>24==0|d<<24>>24==6)){if((d&255)<=1){if(a[b+4>>0]|0)break;yl(b,0,0)|0;break}d=c[3164]|0;if(d)jc[d&3]();Dl(b)|0;d=c[3166]|0;if(d)jc[d&3]()}while(0);Jo(b);return}function kl(d){d=d|0;var e=0,f=0;f=d+26|0;e=(b[f>>1]|0)+-1<<16>>16;b[f>>1]=e;do if(!(e<<16>>16)){e=c[d+28>>2]|0;f=e+12|0;c[f>>2]=(c[f>>2]|0)+-1;if(b[d+24>>1]&2){if(!(c[d+36>>2]|0))break;Mo(d,3);break}if(a[e+28>>0]|0){if((c[d+20>>2]|0)==1)c[e+44>>2]=0;ic[c[8744+136>>2]&63](c[e+40>>2]|0,c[d>>2]|0,0)}}while(0);return}function ll(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;j=c[e+56>>2]|0;k=c[e+52>>2]|0;g=d[e+6>>0]|0;h=j+g|0;i=k+36|0;if(b[k+22>>1]&4)bw(h|0,0,(c[i>>2]|0)-g|0)|0;a[h>>0]=f;h=g+(f>>>1&4^12)|0;l=j+(g+1)|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;a[j+(g+7)>>0]=0;a[j+(g+5)>>0]=(c[i>>2]|0)>>>8;a[j+(g+6)>>0]=c[i>>2];b[e+16>>1]=(c[i>>2]|0)-h;No(e,f)|0;b[e+14>>1]=h;c[e+60>>2]=j+(c[i>>2]|0);c[e+64>>2]=j+(h&65535);a[e+1>>0]=0;b[e+20>>1]=(c[k+32>>2]|0)+65535;b[e+18>>1]=0;a[e>>0]=1;return}function ml(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))ba();g=h+16|0;f=h;d=a+8|0;c[g+0>>2]=c[d+0>>2];c[g+4>>2]=c[d+4>>2];c[g+8>>2]=c[d+8>>2];c[g+12>>2]=c[d+12>>2];e=a+40|0;c[f+0>>2]=c[e+0>>2];c[f+4>>2]=c[e+4>>2];c[f+8>>2]=c[e+8>>2];c[f+12>>2]=c[e+12>>2];c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;Kl(a+24|0);e=c[f+8>>2]|0;if(e)do{fg(0,c[e+8>>2]|0);e=c[e>>2]|0}while((e|0)!=0);Kl(f);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;d=c[g+8>>2]|0;if(d)do{gg(0,c[d+8>>2]|0);d=c[d>>2]|0}while((d|0)!=0);Kl(g);Kl(a+56|0);c[a+72>>2]=0;d=a+78|0;e=b[d>>1]|0;if(e&1){f=a+4|0;c[f>>2]=(c[f>>2]|0)+1;b[d>>1]=e&65534}i=h;return}function nl(a){a=a|0;var d=0,e=0;e=a+332|0;d=c[e>>2]|0;c[e>>2]=0;if(d){a=c[a+4>>2]|0;if(a)do{e=a+88|0;b[e>>1]=b[e>>1]|8;a=c[a+52>>2]|0}while((a|0)!=0);do{a=d;d=c[d+24>>2]|0;wn(a)}while((d|0)!=0)}return}function ol(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=a+20|0;b=c[g>>2]|0;j=a+16|0;d=c[j>>2]|0;if((b|0)>2){f=2;e=2;do{b=d+(f<<4)|0;if(!(c[d+(f<<4)+4>>2]|0)){ig(a,c[b>>2]|0);c[b>>2]=0}else{if((e|0)<(f|0)){d=d+(e<<4)|0;c[d+0>>2]=c[b+0>>2];c[d+4>>2]=c[b+4>>2];c[d+8>>2]=c[b+8>>2];c[d+12>>2]=c[b+12>>2]}e=e+1|0}f=f+1|0;b=c[g>>2]|0;d=c[j>>2]|0}while((f|0)<(b|0))}else e=2;bw(d+(e<<4)|0,0,b-e<<4|0)|0;c[g>>2]=e;if((e|0)<3?(h=c[j>>2]|0,i=a+456|0,(h|0)!=(i|0)):0){c[i+0>>2]=c[h+0>>2];c[i+4>>2]=c[h+4>>2];c[i+8>>2]=c[h+8>>2];c[i+12>>2]=c[h+12>>2];c[i+16>>2]=c[h+16>>2];c[i+20>>2]=c[h+20>>2];c[i+24>>2]=c[h+24>>2];c[i+28>>2]=c[h+28>>2];ig(a,h);c[j>>2]=i}return}function pl(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();s=v;p=c[f+16>>2]|0;r=p+152|0;k=((c[p+148>>2]|0)>>>0)/((c[r>>2]|0)>>>0)|0;u=p+20|0;a[u>>0]=d[u>>0]|0|4;o=f+20|0;l=c[o>>2]|0;f=l+-1&0-k;t=f+1|0;h=~f;g=c[p+24>>2]|0;if(l>>>0<=g>>>0){if((f+k|0)>>>0>g>>>0)k=g+1+h|0}else k=l+1+h|0;a:do if((k|0)>0){n=p+56|0;q=p+204|0;m=0;f=0;while(1){h=m+t|0;if((h|0)!=(l|0)?($h(c[n>>2]|0,h)|0)!=0:0){l=Yb[c[8744+132>>2]&63](c[(c[q>>2]|0)+40>>2]|0,h,0)|0;h=el(c[q>>2]|0,h,l)|0;c[s>>2]=h;if(!h)g=0;else{f=(b[h+24>>1]&4)==0?f:1;xg(h);g=0}}else if((h|0)==(((c[2514]|0)/(c[r>>2]|0)|0)+1|0))g=0;else{g=vg(p,h,s,0)|0;if(g)break a;l=c[s>>2]|0;g=ql(l)|0;f=(b[l+24>>1]&4)==0?f:1;xg(l)}m=m+1|0;h=(g|0)==0;if(!((m|0)<(k|0)&h))break;l=c[o>>2]|0}if(h&(f|0)!=0){f=0;do{p=f+t|0;g=Yb[c[8744+132>>2]&63](c[(c[q>>2]|0)+40>>2]|0,p,0)|0;g=el(c[q>>2]|0,p,g)|0;if(g){p=g+24|0;b[p>>1]=e[p>>1]|0|4;xg(g)}f=f+1|0}while((f|0)!=(k|0));g=0}}else g=0;while(0);a[u>>0]=(d[u>>0]|0)&251;i=v;return g|0}function ql(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))ba();z=B+4|0;q=B;A=c[f+16>>2]|0;u=A+16|0;a:do if((a[u>>0]|0)==2){p=c[A>>2]|0;k=c[A+40>>2]|0;if(!k){do if((c[A+208>>2]|0)==0?(n=A+5|0,(a[n>>0]|0)!=2):0){o=A+24|0;k=c[o>>2]|0;h=mg(512,0)|0;if(!h){c[A+56>>2]=0;g=7;break a}bw(h|0,0,512)|0;c[h>>2]=k;r=A+56|0;c[r>>2]=h;l=A+64|0;m=c[l>>2]|0;do if(!(c[m>>2]|0)){if((a[n>>0]|0)==4){k=m+0|0;h=k+40|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(h|0));c[m>>2]=14696;t=17;break}h=a[A+12>>0]|0;c[q>>2]=0;if((h<<24>>24==0?(c[o>>2]|0)!=0:0)?(g=c[A+60>>2]|0,g=Yb[c[(c[g>>2]|0)+40>>2]&63](g,20,q)|0,(g|0)!=12):0){k=(g|0)==0;if(k&(c[q>>2]|0)!=0){g=1032;break}if(k)t=15}else t=15;if((t|0)==15)g=pc[c[p+24>>2]&31](p,c[A+172>>2]|0,c[l>>2]|0,h<<24>>24!=0?4110:2054,0)|0;if(!g)t=17}else t=17;while(0);if((t|0)==17){c[A+44>>2]=0;g=A+72|0;a[A+19>>0]=0;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;g=Oo(A)|0;if(!g)break}ai(c[r>>2]|0);c[r>>2]=0;if(!g){t=20;break a}else break a}while(0);a[u>>0]=3;t=20}else g=k}else t=20;while(0);b:do if((t|0)==20){Po(f);v=A+56|0;w=f+20|0;m=c[w>>2]|0;do if(!($h(c[v>>2]|0,m)|0))if(!(c[A+208>>2]|0)){if(m>>>0<=(c[A+28>>2]|0)>>>0?(y=A+64|0,x=c[y>>2]|0,(c[x>>2]|0)!=0):0){t=A+72|0;n=t;r=c[n>>2]|0;n=c[n+4>>2]|0;s=c[f+4>>2]|0;k=c[A+48>>2]|0;u=A+152|0;l=(c[u>>2]|0)+-200|0;if((l|0)>0)do{k=(d[s+l>>0]|0)+k|0;l=l+-200|0}while((l|0)>0);q=f+24|0;b[q>>1]=e[q>>1]|4;a[z>>0]=m>>>24;q=z+1|0;a[q>>0]=m>>>16;p=z+2|0;a[p>>0]=m>>>8;o=z+3|0;a[o>>0]=m;g=pc[c[(c[x>>2]|0)+12>>2]&31](x,z,4,r,n)|0;if(g)break b;m=c[y>>2]|0;g=c[u>>2]|0;h=fw(r|0,n|0,4,0)|0;l=C;g=pc[c[(c[m>>2]|0)+12>>2]&31](m,s,g,h,l)|0;if(g)break b;r=c[y>>2]|0;g=c[u>>2]|0;g=fw(h|0,l|0,g|0,((g|0)<0)<<31>>31|0)|0;a[z>>0]=k>>>24;a[q>>0]=k>>>16;a[p>>0]=k>>>8;a[o>>0]=k;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,z,4,g,C)|0;if(g)break b;g=(c[u>>2]|0)+8|0;r=t;r=fw(g|0,((g|0)<0)<<31>>31|0,c[r>>2]|0,c[r+4>>2]|0)|0;g=t;c[g>>2]=r;c[g+4>>2]=C;g=A+44|0;c[g>>2]=(c[g>>2]|0)+1;g=Zh(c[v>>2]|0,c[w>>2]|0)|0;g=fl(A,c[w>>2]|0)|0|g;if(!g){t=34;break}else break b}if((a[u>>0]|0)!=4){t=f+24|0;b[t>>1]=e[t>>1]|4;t=34}else t=34}else t=34;else if((c[A+96>>2]|0)!=0?(Qo(f)|0)!=0:0)t=34;else g=0;while(0);if((t|0)==34)if((c[A+96>>2]|0)>0?(Qo(f)|0)!=0:0)g=Ro(f)|0;else g=0;k=A+24|0;h=c[w>>2]|0;if((c[k>>2]|0)>>>0<h>>>0)c[k>>2]=h}while(0);i=B;return g|0}function rl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+128|0;if((i|0)>=(j|0))ba();k=l;e=c[a>>2]|0;d=(e|0)==0;if(!d){b=e;do{a=b;b=c[b+32>>2]|0;c[a+12>>2]=b}while((b|0)!=0);b=k+0|0;a=b+128|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(a|0));if(d)a=0;else{g=k+124|0;do{b=e+12|0;a=e;e=c[b>>2]|0;c[b>>2]=0;b=0;do{f=k+(b<<2)|0;d=c[f>>2]|0;if(!d){d=f;h=8;break}a=So(d,a)|0;c[f>>2]=0;b=b+1|0}while((b|0)<31);if((h|0)==8){h=0;c[d>>2]=a}if((b|0)==31)c[g>>2]=So(c[g>>2]|0,a)|0}while((e|0)!=0);a=c[k>>2]|0}}else{b=k+0|0;a=b+128|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(a|0));a=0}b=1;do{a=So(a,c[k+(b<<2)>>2]|0)|0;b=b+1|0}while((b|0)!=32);i=l;return a|0}function sl(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;J=i;i=i+80|0;if((i|0)>=(j|0))ba();p=J+32|0;q=J+28|0;z=J;s=J+40|0;H=J+24|0;c[H>>2]=f;w=(h|0)==0;if(!w){c[H>>2]=f;if(!f){f=0;n=0}else{n=0;m=H;do{x=(c[f+20>>2]|0)>>>0>g>>>0;E=f+12|0;n=n+(x&1^1)|0;m=x?m:E;f=c[E>>2]|0;c[m>>2]=f}while((f|0)!=0);f=c[H>>2]|0}}else n=1;E=e+192|0;c[E>>2]=(c[E>>2]|0)+n;if((c[f+20>>2]|0)==1)ul(f);F=c[e+208>>2]|0;G=c[e+152>>2]|0;r=a[e+10>>0]|0;x=r&255;l=F+40|0;if(!(b[l>>1]|0)){do if(c[(c[c[F+32>>2]>>2]|0)+96>>2]|0){_c(4,p);m=F+43|0;if(!(a[m>>0]|0)){n=c[F+4>>2]|0;n=lc[c[(c[n>>2]|0)+56>>2]&31](n,4,4,10)|0;if((n|0)==5){n=m;y=14;break}else if(n)break}To(F,c[p>>2]|0);if(!(a[m>>0]|0)){n=c[F+4>>2]|0;lc[c[(c[n>>2]|0)+56>>2]&31](n,4,4,9)|0;n=m;y=14}else{n=m;y=14}}else{n=F+43|0;y=14}while(0);if((y|0)==14){if(!(a[n>>0]|0)){E=c[F+4>>2]|0;lc[c[(c[E>>2]|0)+56>>2]&31](E,3,1,5)|0}b[l>>1]=-1;m=0;do{m=m+1|0;n=Io(F,q,1,m)|0}while((n|0)==-1)}if(n)k=n;else y=19}else y=19;a:do if((y|0)==19){E=F+68|0;q=c[E>>2]|0;if(!q){a[s>>0]=55;a[s+1>>0]=127;a[s+2>>0]=6;a[s+3>>0]=-126;a[s+4>>0]=0;a[s+5>>0]=45;a[s+6>>0]=-30;a[s+7>>0]=24;a[s+8>>0]=G>>>24;a[s+9>>0]=G>>>16;a[s+10>>0]=G>>>8;a[s+11>>0]=G;v=c[F+104>>2]|0;a[s+12>>0]=v>>>24;a[s+13>>0]=v>>>16;a[s+14>>0]=v>>>8;a[s+15>>0]=v;if(!v)_c(8,F+84|0);l=F+84|0;n=l;n=d[n>>0]|d[n+1>>0]<<8|d[n+2>>0]<<16|d[n+3>>0]<<24;l=l+4|0;l=d[l>>0]|d[l+1>>0]<<8|d[l+2>>0]<<16|d[l+3>>0]<<24;p=s+16|0;m=p;a[m>>0]=n;a[m+1>>0]=n>>8;a[m+2>>0]=n>>16;a[m+3>>0]=n>>24;p=p+4|0;a[p>>0]=l;a[p+1>>0]=l>>8;a[p+2>>0]=l>>16;a[p+3>>0]=l>>24;p=s+24|0;l=s;m=0;n=0;do{m=m+n+(c[l>>2]|0)|0;n=m+n+(c[l+4>>2]|0)|0;l=l+8|0}while(l>>>0<p>>>0);a[p>>0]=m>>>24;a[s+25>>0]=m>>>16;a[s+26>>0]=m>>>8;a[s+27>>0]=m;a[s+28>>0]=n>>>24;a[s+29>>0]=n>>>16;a[s+30>>0]=n>>>8;a[s+31>>0]=n;c[F+36>>2]=G;a[F+65>>0]=0;c[F+76>>2]=m;c[F+80>>2]=n;a[F+47>>0]=1;m=F+8|0;n=c[m>>2]|0;n=pc[c[(c[n>>2]|0)+12>>2]&31](n,s,32,0,0)|0;if(n){k=n;break}if((a[F+48>>0]|0)!=0&r<<24>>24!=0?(k=c[m>>2]|0,k=nc[c[(c[k>>2]|0)+20>>2]&127](k,x&19)|0,(k|0)!=0):0)break}else m=F+8|0;c[z>>2]=F;s=c[m>>2]|0;c[z+4>>2]=s;t=z+8|0;u=t;c[u>>2]=0;c[u+4>>2]=0;c[z+16>>2]=x;c[z+20>>2]=G;u=G+24|0;v=((u|0)<0)<<31>>31;n=ow(q|0,0,u|0,v|0)|0;n=fw(n|0,C|0,32,0)|0;k=C;if(!f){l=n;r=0}else{o=k;l=q;r=f;while(1){q=l+1|0;if(w)l=0;else l=(c[r+12>>2]|0)==0?g:0;k=Uo(z,r,l,n,o)|0;if(k)break a;n=fw(n|0,o|0,u|0,v|0)|0;k=C;p=c[r+12>>2]|0;if(!p){l=n;break}else{o=k;l=q;r=p}}}w=(h|0)!=0;do if(!((x&32|0)==0|w^1)){if(!(a[F+49>>0]|0)){m=0;k=nc[c[(c[s>>2]|0)+20>>2]&127](s,x&19)|0;break}n=c[m>>2]|0;m=c[(c[n>>2]|0)+44>>2]|0;if(m){n=hc[m&127](n)|0;if((n|0)<32){m=512;n=0}else y=37}else{n=4096;y=37}if((y|0)==37){y=(n|0)>65536;m=y?65536:n;n=y?0:((n|0)<0)<<31>>31}y=fw(l|0,k|0,-1,-1)|0;y=fw(y|0,C|0,m|0,n|0)|0;p=C;o=nw(y|0,p|0,m|0,n|0)|0;o=$v(y|0,p|0,o|0,C|0)|0;p=C;y=t;c[y>>2]=o;c[y+4>>2]=p;if((k|0)<(p|0)|(k|0)==(p|0)&l>>>0<o>>>0){n=k;m=0;while(1){k=Uo(z,r,g,l,n)|0;if(k)break a;l=fw(l|0,n|0,u|0,v|0)|0;n=C;m=m+1|0;if(!((n|0)<(p|0)|(n|0)==(p|0)&l>>>0<o>>>0)){k=0;break}}}else{m=0;k=0}}else{m=0;k=0}while(0);if((w?(A=F+47|0,(a[A>>0]|0)!=0):0)?(D=F+16|0,B=c[D>>2]|0,D=c[D+4>>2]|0,(D|0)>-1|(D|0)==-1&B>>>0>4294967295):0){h=ow(m+q|0,0,u|0,v|0)|0;h=fw(h|0,C|0,32,0)|0;z=C;y=(z|0)>(D|0)|(z|0)==(D|0)&h>>>0>B>>>0;Vo(F,y?h:B,y?z:D);a[A>>0]=0}l=c[E>>2]|0;if((f|0)!=0&(k|0)==0)do{l=l+1|0;k=Wo(F,l,c[f+20>>2]|0)|0;f=c[f+12>>2]|0}while((f|0)!=0&(k|0)==0);f=(k|0)==0;if(f&(m|0)>0){n=r+20|0;do{l=l+1|0;m=m+-1|0;k=Wo(F,l,c[n>>2]|0)|0;f=(k|0)==0}while(f&(m|0)>0)}if(f){b[F+66>>1]=G&65280|G>>>16;c[E>>2]=l;if(w){E=F+60|0;c[E>>2]=(c[E>>2]|0)+1;c[F+72>>2]=g;Xo(F);c[F+12>>2]=l}}else if(k)break;l=e+88|0;k=c[l>>2]|0;if((k|0)!=0?(I=c[H>>2]|0,(I|0)!=0):0){f=k;k=I;while(1){Yo(f,c[k+20>>2]|0,c[k+4>>2]|0);k=c[k+12>>2]|0;if(!k){k=0;break a}f=c[l>>2]|0}}else k=0}while(0);i=J;return k|0}function tl(d){d=d|0;var f=0,g=0;f=d+24|0;if(((b[f>>1]&2)!=0?(Mo(d,1),b[f>>1]=e[f>>1]&65529,(b[d+26>>1]|0)==0):0)?(g=c[d+28>>2]|0,(a[g+28>>0]|0)!=0):0){if((c[d+20>>2]|0)==1)c[g+44>>2]=0;ic[c[8744+136>>2]&63](c[g+40>>2]|0,c[d>>2]|0,0)}return}function ul(b){b=b|0;var e=0,f=0,g=0,h=0,i=0;f=c[b+16>>2]|0;f=((d[f+105>>0]|0)<<16|(d[f+104>>0]|0)<<24|(d[f+106>>0]|0)<<8|(d[f+107>>0]|0))+1|0;b=b+4|0;e=c[b>>2]|0;i=f>>>24&255;a[e+24>>0]=i;h=f>>>16&255;a[e+25>>0]=h;g=f>>>8&255;a[e+26>>0]=g;f=f&255;a[e+27>>0]=f;e=c[b>>2]|0;a[e+92>>0]=i;a[e+93>>0]=h;a[e+94>>0]=g;a[e+95>>0]=f;b=c[b>>2]|0;a[b+96>>0]=0;a[b+97>>0]=45;a[b+98>>0]=-26;a[b+99>>0]=9;return}function vl(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))ba();o=v+16|0;r=v;k=Zo(f)|0;a:do if(!k){do if(!(a[f+7>>0]|0)){t=f+64|0;if((c[c[t>>2]>>2]|0)!=0?(a[f+5>>0]|0)!=4:0){n=c[f+60>>2]|0;n=hc[c[(c[n>>2]|0)+48>>2]&127](n)|0;s=(n&512|0)==0;if(s){l=r;c[l>>2]=-117058087;c[l+4>>2]=-681336544;l=c[f+44>>2]|0;a[r+8>>0]=l>>>24;a[r+9>>0]=l>>>16;a[r+10>>0]=l>>>8;a[r+11>>0]=l;l=f+72|0;k=c[l>>2]|0;l=c[l+4>>2]|0;if((k|0)==0&(l|0)==0){l=0;k=0}else{k=fw(k|0,l|0,-1,-1)|0;l=c[f+148>>2]|0;k=mw(k|0,C|0,l|0,0)|0;k=fw(k|0,C|0,1,0)|0;l=ow(k|0,C|0,l|0,0)|0;k=C}m=c[t>>2]|0;m=pc[c[(c[m>>2]|0)+8>>2]&31](m,o,8,l,k)|0;if(!m){if(!(Vv(o,14808,8)|0)){p=c[t>>2]|0;p=pc[c[(c[p>>2]|0)+12>>2]&31](p,14976,1,l,k)|0;q=12}}else{p=m;q=12}if((q|0)==12?!((p|0)==0|(p|0)==522):0){h=p;break a}k=n&1024;if((a[f+8>>0]|0)!=0&(k|0)==0?(h=c[t>>2]|0,h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[f+11>>0]|0)|0,(h|0)!=0):0)break a;q=c[t>>2]|0;h=f+80|0;h=pc[c[(c[q>>2]|0)+12>>2]&31](q,r,12,c[h>>2]|0,c[h+4>>2]|0)|0;if(h)break a}else k=n&1024;if((k|0)==0?(r=c[t>>2]|0,u=a[f+11>>0]|0,u=nc[c[(c[r>>2]|0)+20>>2]&127](r,(u<<24>>24==3?16:0)|u&255)|0,(u|0)!=0):0){h=u;break a}p=f+72|0;q=c[p+4>>2]|0;r=f+80|0;c[r>>2]=c[p>>2];c[r+4>>2]=q;if((g|0)==0|s^1)break;c[f+44>>2]=0;h=Oo(f)|0;if(!h)break;else break a}q=f+72|0;r=c[q+4>>2]|0;s=f+80|0;c[s>>2]=c[q>>2];c[s+4>>2]=r}while(0);k=c[f+204>>2]|0;h=c[k>>2]|0;if(h)do{s=h+24|0;b[s>>1]=e[s>>1]&65531;h=c[h+32>>2]|0}while((h|0)!=0);c[k+8>>2]=c[k+4>>2];a[f+16>>0]=4;h=0}else h=k;while(0);i=v;return h|0}function wl(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();l=v;u=d+60|0;g=c[u>>2]|0;if(!((c[g>>2]|0)==0?(f=c[d>>2]|0,f=pc[c[f+24>>2]&31](f,0,g,c[d+144>>2]&556897|30,0)|0,(f|0)!=0):0)){g=d+36|0;f=c[g>>2]|0;h=d+24|0;k=c[h>>2]|0;do if(f>>>0<k>>>0){if((c[e+12>>2]|0)==0?(c[e+20>>2]|0)>>>0<=f>>>0:0)break;n=c[d+152>>2]|0;n=ow(k|0,0,n|0,((n|0)<0)<<31>>31|0)|0;o=l;c[o>>2]=n;c[o+4>>2]=C;o=c[u>>2]|0;Yb[c[(c[o>>2]|0)+40>>2]&63](o,5,l)|0;c[g>>2]=c[h>>2]}while(0);if(!e)f=0;else{p=d+24|0;q=d+152|0;r=d+104|0;s=d+32|0;t=d+192|0;o=d+88|0;do{n=c[e+20>>2]|0;if(n>>>0<=(c[p>>2]|0)>>>0?(b[e+24>>1]&32)==0:0){l=c[q>>2]|0;d=ow(l|0,((l|0)<0)<<31>>31|0,n+-1|0,0)|0;k=C;h=(n|0)==1;if(h){ul(e);l=c[q>>2]|0}m=e+4|0;g=c[m>>2]|0;f=c[u>>2]|0;f=pc[c[(c[f>>2]|0)+12>>2]&31](f,g,l,d,k)|0;if(h){d=r+0|0;l=g+24|0;k=d+16|0;do{a[d>>0]=a[l>>0]|0;d=d+1|0;l=l+1|0}while((d|0)<(k|0))}if(n>>>0>(c[s>>2]|0)>>>0)c[s>>2]=n;c[t>>2]=(c[t>>2]|0)+1;Yo(c[o>>2]|0,n,c[m>>2]|0)}else f=0;e=c[e+12>>2]|0}while((f|0)==0&(e|0)!=0)}}i=v;return f|0}function xl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;n=b+60|0;f=c[n>>2]|0;g=c[f>>2]|0;do if((g|0)!=0?((a[b+16>>0]|0)+-1&255)>2:0){o=c[b+152>>2]|0;g=nc[c[g+24>>2]&127](f,m)|0;h=((o|0)<0)<<31>>31;k=ow(o|0,h|0,d|0,0)|0;l=C;if(!g){f=m;g=c[f>>2]|0;f=c[f+4>>2]|0;if((g|0)==(k|0)&(f|0)==(l|0))e=0;else{if(!((f|0)>(l|0)|(f|0)==(l|0)&g>>>0>k>>>0)){m=fw(g|0,f|0,o|0,h|0)|0;g=C;if(!((g|0)>(l|0)|(g|0)==(l|0)&m>>>0>k>>>0)){p=c[b+200>>2]|0;bw(p|0,0,o|0)|0;n=c[n>>2]|0;e=$v(k|0,l|0,o|0,h|0)|0;e=pc[c[(c[n>>2]|0)+12>>2]&31](n,p,o,e,C)|0;p=9}}else{e=c[n>>2]|0;e=Yb[c[(c[e>>2]|0)+16>>2]&63](e,k,l)|0;p=9}if((p|0)==9?(e|0)!=0:0)break;c[b+32>>2]=d;e=0}}else e=g}else e=0;while(0);i=q;return e|0}
function Vr(f,g,k,l,m){f=f|0;g=g|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))ba();u=x;v=x+8|0;c[v>>2]=0;a:do if(!g){c[m>>2]=0;n=0}else{o=a[g>>0]|0;if(o<<24>>24==-98)do{g=c[g+12>>2]|0;o=a[g>>0]|0}while(o<<24>>24==-98);if(o<<24>>24==-97)q=d[g+38>>0]|0;else q=o&255;if((q|0)==38){p=Tq(c[g+8>>2]|0,0)|0;n=Vr(f,c[g+12>>2]|0,k,p,m)|0;o=c[m>>2]|0;if(!o)break;cm(o,p,1);bm(c[m>>2]|0,l,1);break}else if((q|0)==157){g=c[g+12>>2]|0;q=a[g>>0]|0;if((q&-2)<<24>>24==-124){p=-1;o=-1;t=q&255;q=26016;w=12}else w=30}else{p=1;o=0;t=q;q=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 134:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;o=(c[g+8>>2]|0)+2|0;g=o;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;v=(g-o&1073741823)+-1|0;Tg(n,Ut(f,o,v)|0,(v|0)/2|0,0,75)|0;o=n;n=0;break b}case 157:{g=c[g+12>>2]|0;w=30;break b}case 101:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}else{r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;o=n;n=0;break b}}case 97:case 132:case 133:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;do if(!(c[g+4>>2]&1024)){p=c[g+8>>2]|0;c[u>>2]=q;c[u+4>>2]=p;p=qh(f,19456,u)|0;if(!p)break c;if(n)Tg(n,p,-1,1,75)|0}else{q=c[g+8>>2]|0;q=ow(q|0,((q|0)<0)<<31>>31|0,p|0,o|0)|0;p=C;g=n+8|0;if(!(b[g>>1]&9312)){v=n;c[v>>2]=q;c[v+4>>2]=p;b[g>>1]=4;break}else{Vg(n,q,p);break}}while(0);if((t&-2|0)==132&l<<24>>24==65)bm(n,67,1);else bm(n,l,1);o=n+8|0;g=e[o>>1]|0;if(g&12)b[o>>1]=g&65533;if(k<<24>>24==1){o=n;n=0;break b}o=n;n=Ul(n,k&255)|0;break b}default:{o=0;n=0;break b}}while(0);a[f+65>>0]=1;ig(f,0);Ih(n);n=7;break a}while(0);if((w|0)==30){u=(Vr(f,g,k,l,v)|0)==0;o=c[v>>2]|0;if(u&(o|0)!=0){kp(o);p=o+8|0;g=b[p>>1]|0;do if(!(g&8)){q=o;n=c[q>>2]|0;q=c[q+4>>2]|0;if((n|0)==0&(q|0)==-2147483648){h[o>>3]=9223372036854775808.0;b[p>>1]=g&48640|8;break}else{u=$v(0,0,n|0,q|0)|0;v=o;c[v>>2]=u;c[v+4>>2]=C;break}}else h[o>>3]=-+h[o>>3];while(0);bm(o,l,k);n=0}else n=0}c[m>>2]=o}while(0);i=x;return n|0}function Wr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if((d|0)!=0?(g=b+19|0,h=a[g>>0]|0,(h&255)<8):0){f=0;e=b+116|0;while(1){if((c[e+12>>2]|0)==(d|0)){f=5;break}f=f+1|0;if((f|0)>=10){f=7;break}else e=e+20|0}if((f|0)==5){a[e+6>>0]=1;break}else if((f|0)==7){a[g>>0]=h+1<<24>>24;c[b+((h&255)<<2)+24>>2]=d;break}}while(0);return}function Xr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();n=o;e=b+484|0;l=c[e>>2]|0;m=c[b>>2]|0;do if((l|0)!=0?(Zr(b),c[b+512>>2]=0,(c[l+52>>2]|0)>=1):0){if(a[m+145>>0]|0)if(!(Ek((c[l+68>>2]|0)+8|0,c[l>>2]|0,l)|0)){c[e>>2]=0;break}else{a[m+65>>0]=1;break}if(d)c[b+500>>2]=(c[d>>2]|0)-(c[b+496>>2]|0)+(c[d+4>>2]|0);c[n>>2]=b+496;k=qh(m,25256,n)|0;d=c[l+68>>2]|0;a:do if(d){f=c[m+20>>2]|0;if((f|0)>0){g=c[m+16>>2]|0;h=0;while(1){e=h+1|0;if((c[g+(h<<4)+12>>2]|0)==(d|0)){e=h;break a}if((e|0)<(f|0))h=e;else break}}else e=0}else e=-1e6;while(0);g=c[l>>2]|0;h=c[b+384>>2]|0;c[n>>2]=c[(c[m+16>>2]|0)+(e<<4)>>2];c[n+4>>2]=(e|0)==1?13184:13208;c[n+8>>2]=g;c[n+12>>2]=g;c[n+16>>2]=k;c[n+20>>2]=h;xr(b,25280,n);ig(m,k);k=Kq(b)|0;zr(b,e);sh(k,144,0,0,0)|0;c[n>>2]=c[l>>2];Er(k,e,qh(m,25368,n)|0);b=b+72|0;n=(c[b>>2]|0)+1|0;c[b>>2]=n;b=c[l>>2]|0;th(k,sh(k,97,0,n,0)|0,b,0);sh(k,147,e,n,0)|0}while(0);i=o;return}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+52|0;i=c[h>>2]|0;e=i+1|0;c[h>>2]=e;g=(i<<2)+8|0;f=b+56|0;g=no(a,c[f>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!g){if((i|0)>0){b=0;do{ig(a,c[(c[f>>2]|0)+(b<<2)>>2]|0);b=b+1|0}while((b|0)!=(i|0))}ig(a,d);ig(a,c[f>>2]|0);c[h>>2]=0}else{c[g+(i<<2)>>2]=d;c[g+(e<<2)>>2]=0}c[f>>2]=g;return}function Zr(b){b=b|0;var d=0,e=0,f=0,g=0;d=c[b+512>>2]|0;if((d|0)!=0?(g=c[b+484>>2]|0,(g|0)!=0):0){e=c[b+516>>2]|0;f=c[b>>2]|0;b=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=ih(f,b,C)|0;if(!b)b=0;else{gw(b|0,d|0,e|0)|0;a[b+e>>0]=0}Yr(f,g,b)}return}function _r(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();l=o;m=c[b>>2]|0;n=Sq(m,e)|0;k=(d|0)!=0;if((n|0)!=0&k?(h=c[d>>2]|0,(h|0)>0):0){e=h;h=0;do{if(!($c(n,c[d+(h<<4)+8>>2]|0)|0)){c[l>>2]=n;ph(b,25184,l);e=c[d>>2]|0}h=h+1|0}while((h|0)<(e|0))}if(k){h=(c[d>>2]<<4)+24|0;h=no(m,d,h,((h|0)<0)<<31>>31)|0;if(!h)e=10;else{d=h;e=11}}else{e=ih(m,24,0)|0;if(!e)e=10;else{h=e+0|0;d=h+24|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(d|0));d=e;e=11}}if((e|0)==10){Jk(m,f);Ik(m,g,1);ig(m,n)}else if((e|0)==11){m=d+8|0;c[m+(c[d>>2]<<4)+8>>2]=g;g=c[d>>2]|0;c[m+(g<<4)+4>>2]=f;c[m+(g<<4)>>2]=n;c[m+(g<<4)+12>>2]=0;c[d>>2]=g+1}i=o;return d|0}function $r(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+96|0;if((i|0)>=(j|0))ba();m=n+48|0;f=n;g=c[c[b+32>>2]>>2]|0;h=m+0|0;k=g+0|0;l=h+48|0;do{a[h>>0]=a[k>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((a[b+43>>0]|0)!=2){h=c[b+4>>2]|0;_b[c[(c[h>>2]|0)+60>>2]&31](h)}h=f+0|0;k=g+48|0;l=h+48|0;do{a[h>>0]=a[k>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((Vv(m,f,48)|0)==0?(a[m+12>>0]|0)!=0:0){k=m+40|0;l=m;g=0;f=0;do{g=g+f+(c[l>>2]|0)|0;f=g+f+(c[l+4>>2]|0)|0;l=l+8|0}while(l>>>0<k>>>0);if((g|0)==(c[k>>2]|0)?(f|0)==(c[m+44>>2]|0):0){f=b+52|0;if(!(Vv(f,m,48)|0))f=0;else{c[d>>2]=1;h=f+0|0;k=m+0|0;l=h+48|0;do{c[h>>2]=c[k>>2];h=h+4|0;k=k+4|0}while((h|0)<(l|0));f=e[b+66>>1]|0;c[b+36>>2]=f<<16&65536|f&65024;f=0}}else f=1}else f=1;i=n;return f|0}function as(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;b=pc[c[(c[a>>2]|0)+8>>2]&31](a,g,4,b,e)|0;if(!b)c[f>>2]=(d[g+1>>0]|0)<<16|(d[g>>0]|0)<<24|(d[g+2>>0]|0)<<8|(d[g+3>>0]|0);i=h;return b|0}function bs(a,b){a=a|0;b=b|0;var c=0,d=0,f=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=ew(a|0,b|0,1)|0;b=C}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;d=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){f=a;d=b;c=40;while(1){c=(c&65535)+40|0;a=iw(f|0,d|0,4)|0;b=C;if(d>>>0>0|(d|0)==0&f>>>0>4095){f=a;d=b}else break}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){f=a;while(1){c=(c&65535)+10&65535;a=iw(f|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&f>>>0>31){f=a;b=C}else break}d=11}else d=11}if((d|0)==11)a=(c&65535)+65526+(e[13496+((a&7)<<1)>>1]|0)&65535;return a|0}function cs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;k=c[b+408>>2]|0;k=(k|0)==0?b:k;i=k+396|0;h=c[i>>2]|0;j=c[k+400>>2]|0;a:do if((h|0)>0){b=0;while(1){if((c[j+(b<<4)>>2]|0)==(d|0)?(c[j+(b<<4)+4>>2]|0)==(e|0):0)break;b=b+1|0;if((b|0)>=(h|0)){l=8;break a}}b=j+(b<<4)+8|0;if(!(a[b>>0]|0))h=f<<24>>24!=0&1;else h=1;a[b>>0]=h}else l=8;while(0);do if((l|0)==8){b=(h<<4)+16|0;b=Sl(c[k>>2]|0,j,b,((b|0)<0)<<31>>31)|0;c[k+400>>2]=b;if(!b){c[i>>2]=0;a[(c[k>>2]|0)+65>>0]=1;break}else{h=c[i>>2]|0;c[i>>2]=h+1;c[b+(h<<4)>>2]=d;c[b+(h<<4)+4>>2]=e;a[b+(h<<4)+8>>0]=f;c[b+(h<<4)+12>>2]=g;break}}while(0);return}function ds(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=b[f+48>>1]|0;l=i&65535;h=e[f+46>>1]|0;m=d+64|0;if(!(c[m>>2]|0)){g=c[d>>2]|0;if(!(a[f+51>>0]&8))k=Ns(g,l,0)|0;else k=Ns(g,h,l-h|0)|0;if(k){if(i<<16>>16){j=f+32|0;f=f+28|0;h=k+16|0;g=0;do{i=c[(c[j>>2]|0)+(g<<2)>>2]|0;if(!(Wv(i,11152)|0))i=0;else i=_q(d,i)|0;c[k+(g<<2)+20>>2]=i;a[(c[h>>2]|0)+g>>0]=a[(c[f>>2]|0)+g>>0]|0;g=g+1|0}while((g|0)<(l|0))}g=(c[m>>2]|0)==0;if(!g){g=(c[k>>2]|0)+-1|0;c[k>>2]=g;if(!g){Sc(k);g=0}else g=0}else g=g?k:0}else g=0}else g=0;return g|0}function es(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+112|0;if((i|0)>=(j|0))ba();A=F;C=F+100|0;D=F+96|0;m=F+48|0;B=c[d+8>>2]|0;c[C>>2]=0;c[D>>2]=0;z=c[d>>2]|0;a:do if(!B)g=0;else{b:do if(!f)E=16;else{q=a[f>>0]|0;p=q&255;do switch(p|0){case 19:case 96:{sh(B,p,Xt(d,c[f+12>>2]|0,C)|0,g,0)|0;break b}case 157:{k=f+12|0;h=c[k>>2]|0;l=a[h>>0]|0;if(l<<24>>24==-124){Vt(d,h,1,g);break b}else if(l<<24>>24==-123){Wt(B,c[h+8>>2]|0,1,g);break b}else{a[m>>0]=-124;c[m+4>>2]=17408;c[m+8>>2]=0;A=Xt(d,m,C)|0;sh(B,90,Xt(d,c[k>>2]|0,D)|0,A,g)|0;break b}}case 134:{h=(c[f+8>>2]|0)+2|0;k=h;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;z=(k-h&1073741823)+-1|0;A=Ut(c[B>>2]|0,h,z)|0;th(B,sh(B,30,(z|0)/2|0,g,0)|0,A,-1);break b}case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{A=Xt(d,c[f+12>>2]|0,C)|0;sh(B,p,Xt(d,c[f+16>>2]|0,D)|0,A,g)|0;break b}case 79:case 78:case 83:case 80:case 81:case 82:{y=f+12|0;A=Xt(d,c[y>>2]|0,C)|0;z=f+16|0;B=Xt(d,c[z>>2]|0,D)|0;Yt(d,c[y>>2]|0,c[z>>2]|0,p,A,B,g,32);break b}case 97:{A=c[f+8>>2]|0;th(B,sh(B,97,0,g,0)|0,A,0);break b}case 133:{Wt(B,c[f+8>>2]|0,0,g);break b}case 24:{g=es(d,c[f+12>>2]|0,g)|0;break b}case 155:{k=c[f+40>>2]|0;if(!k){c[A>>2]=c[f+8>>2];ph(d,28936,A);break b}else{g=c[(c[k+40>>2]|0)+(b[f+34>>1]<<4)+8>>2]|0;break b}}case 135:{k=f+32|0;sh(B,31,b[k>>1]|0,g,0)|0;if(!(a[(c[f+8>>2]|0)+1>>0]|0))break b;th(B,-1,c[(c[d+472>>2]|0)+((b[k>>1]|0)+-1<<2)>>2]|0,-2);break b}case 74:{q=c[f+12>>2]|0;n=c[(c[f+20>>2]|0)+4>>2]|0;h=c[n>>2]|0;o=Xt(d,q,C)|0;p=Xt(d,h,D)|0;m=d+19|0;k=a[m>>0]|0;if(k<<24>>24){A=k+-1<<24>>24;a[m>>0]=A;l=c[d+((A&255)<<2)+24>>2]|0;if(!(A<<24>>24))E=103;else{A=k+-2<<24>>24;a[m>>0]=A;m=c[d+((A&255)<<2)+24>>2]|0}}else{E=d+72|0;l=(c[E>>2]|0)+1|0;c[E>>2]=l;E=103}if((E|0)==103){A=d+72|0;m=(c[A>>2]|0)+1|0;c[A>>2]=m}Yt(d,q,h,83,o,p,l,32);A=c[n+20>>2]|0;Wr(d,c[D>>2]|0);Yt(d,q,A,81,o,Xt(d,A,D)|0,m,32);sh(B,72,l,m,g)|0;Wr(d,l);Wr(d,m);break b}case 119:case 20:{g=au(d,f,0,0)|0;break b}case 101:{E=16;break b}case 159:{g=c[f+28>>2]|0;break b}case 156:{h=c[f+40>>2]|0;k=b[f+34>>1]|0;l=c[h+28>>2]|0;if(!(a[h>>0]|0)){g=c[l+(k*24|0)+16>>2]|0;break b}if(a[h+1>>0]|0){sh(B,47,c[h+8>>2]|0,c[l+(k*24|0)+12>>2]|0,g)|0;break b}break}case 154:break;case 148:case 73:{y=f+12|0;A=Xt(d,c[y>>2]|0,C)|0;z=f+16|0;B=Xt(d,c[z>>2]|0,D)|0;Yt(d,c[y>>2]|0,c[z>>2]|0,q<<24>>24==73?79:78,A,B,g,160);break b}case 62:{h=c[f+44>>2]|0;A=_((b[h+38>>1]|0)+1|0,c[f+28>>2]|0)|0;k=f+32|0;sh(B,132,(b[k>>1]|0)+1+A|0,g,0)|0;k=b[k>>1]|0;if(k<<16>>16<=-1)break b;if((a[(c[h+4>>2]|0)+((k<<16>>16)*24|0)+21>>0]|0)!=69)break b;sh(B,39,g,0,0)|0;break b}case 57:{if(!(c[d+412>>2]|0)){ph(d,29e3,A);g=0;break a}l=a[f+1>>0]|0;if(l<<24>>24!=2){h=c[f+8>>2]|0;if(l<<24>>24==4){th(B,sh(B,24,0,4,0)|0,h,0);break b}}else{h=c[d+408>>2]|0;a[((h|0)==0?d:h)+21>>0]=1;h=c[f+8>>2]|0}vs(d,1811,l<<24>>24,h,0,0);break b}case 77:case 76:{sh(B,25,1,g,0)|0;h=sh(B,p,Xt(d,c[f+12>>2]|0,C)|0,0,0)|0;sh(B,25,0,g,0)|0;k=c[B+32>>2]|0;if(k>>>0>h>>>0)c[(c[B+4>>2]|0)+(h*20|0)+8>>2]=k;c[(c[B+24>>2]|0)+88>>2]=k+-1;break b}case 153:{o=a[z+62>>0]|0;x=f+4|0;if((c[x>>2]&16384|0)==0?(n=c[f+20>>2]|0,(n|0)!=0):0){y=c[n>>2]|0;v=1;w=n}else{y=0;v=0;w=0}q=c[f+8>>2]|0;if(!q)p=0;else{p=q;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;p=p-q&1073741823}m=Oh(z,q,p,y,o,0)|0;if((m|0)!=0?(c[m+12>>2]|0)!=0:0){u=m+2|0;n=e[u>>1]|0;if(n&512){m=ts(B)|0;l=w+4|0;Nq(d,c[c[l>>2]>>2]|0,g);if((y|0)>1){k=d+100|0;h=1;do{sh(B,77,g,m,0)|0;$s(d,g,1);c[k>>2]=(c[k>>2]|0)+1;Nq(d,c[(c[l>>2]|0)+(h*20|0)>>2]|0,g);Zt(d);h=h+1|0}while((h|0)!=(y|0))}l=c[B+24>>2]|0;k=~m;if((m|0)<0?(t=c[l+112>>2]|0,(t|0)!=0):0)c[t+(k<<2)>>2]=c[B+32>>2];c[l+88>>2]=(c[B+32>>2]|0)+-1;break b}if(n&1024){Nq(d,c[c[w+4>>2]>>2]|0,g);break b}t=(y|0)>0;if(t){p=w+4|0;o=A+20|0;n=A+4|0;k=A+24|0;q=0;h=0;l=0;do{if((h|0)<32?(f=c[(c[p>>2]|0)+(h*20|0)>>2]|0,c[A+0>>2]=0,c[A+4>>2]=0,c[A+8>>2]=0,c[A+12>>2]=0,c[A+16>>2]=0,c[A+20>>2]=0,a[o>>0]=1,c[A>>2]=78,c[n>>2]=79,c[k>>2]=0,ns(A,f)|0,(a[o>>0]|0)!=0):0)q=q|1<<h;if(!((b[u>>1]&32)==0|(l|0)!=0))l=_t(d,c[(c[p>>2]|0)+(h*20|0)>>2]|0)|0;h=h+1|0}while((h|0)!=(y|0));r=q}else{r=0;l=0}if(v){do if(!r){p=d+60|0;q=c[p>>2]|0;o=d+56|0;n=c[o>>2]|0;if((n|0)<(y|0)){A=d+72|0;q=c[A>>2]|0;c[A>>2]=q+y;q=q+1|0;break}else{c[p>>2]=q+y;c[o>>2]=n-y;break}}else{A=d+72|0;q=c[A>>2]|0;c[A>>2]=q+y;q=q+1|0}while(0);n=b[u>>1]|0;if((n&192)!=0?(s=c[c[w+4>>2]>>2]|0,A=a[s>>0]|0,A<<24>>24==-100|A<<24>>24==-102):0)a[s+38>>0]=n&192;A=d+100|0;c[A>>2]=(c[A>>2]|0)+1;Zs(d,w,q,3);Zt(d)}else q=0;if((y|0)>1?(c[x>>2]&128|0)!=0:0)m=$t(z,m,y,c[(c[w+4>>2]|0)+20>>2]|0)|0;else if(t)m=$t(z,m,y,c[c[w+4>>2]>>2]|0)|0;if(b[m+2>>1]&32){if(!l)l=c[z+8>>2]|0;th(B,sh(B,36,0,0,0)|0,l,-4)}th(B,sh(B,1,r,q,g)|0,m,-5);l=c[B+4>>2]|0;if(l)a[l+(((c[B+32>>2]|0)+-1|0)*20|0)+3>>0]=y;if(!((y|0)!=0&(r|0)==0))break b;$s(d,q,y);k=d+56|0;if((c[k>>2]|0)>=(y|0))break b;c[k>>2]=y;c[d+60>>2]=q;break b}c[A>>2]=p;c[A+4>>2]=q;ph(d,28968,A);break b}case 75:{A=ts(B)|0;n=ts(B)|0;sh(B,28,0,g,0)|0;bu(d,f,A,n);sh(B,25,1,g,0)|0;k=B+24|0;h=c[k>>2]|0;l=~A;if((A|0)<0?(o=c[h+112>>2]|0,(o|0)!=0):0)c[o+(l<<2)>>2]=c[B+32>>2];m=B+32|0;c[h+88>>2]=(c[m>>2]|0)+-1;sh(B,37,g,0,0)|0;l=c[k>>2]|0;k=~n;if((n|0)<0?(r=c[l+112>>2]|0,(r|0)!=0):0)c[r+(k<<2)>>2]=c[m>>2];c[l+88>>2]=(c[m>>2]|0)+-1;break b}case 158:case 95:{g=es(d,c[f+12>>2]|0,g)|0;break b}case 132:{Vt(d,f,0,g);break b}case 38:{k=es(d,c[f+12>>2]|0,g)|0;if((k|0)!=(g|0))sh(B,34,k,g,0)|0;sh(B,40,g,(Tq(c[f+8>>2]|0,0)|0)<<24>>24,0)|0;$s(d,g,1);break b}default:{u=c[f+20>>2]|0;s=u+4|0;t=c[s>>2]|0;u=c[u>>2]|0;v=ts(B)|0;q=c[f+12>>2]|0;f=(q|0)!=0;if(f){p=m+0|0;o=q+0|0;n=p+48|0;do{c[p>>2]=c[o>>2];p=p+4|0;o=o+4|0}while((p|0)<(n|0));q=Xt(d,q,C)|0;a[m+38>>0]=a[m>>0]|0;a[m>>0]=-97;c[m+28>>2]=q;q=m+4|0;c[q>>2]=c[q>>2]&-4097;a[A>>0]=79;c[A+12>>2]=m;c[C>>2]=0;q=A}else q=0;r=u+-1|0;if((r|0)>0){h=d+100|0;n=A+16|0;m=B+24|0;l=B+32|0;k=0;p=q;while(1){c[h>>2]=(c[h>>2]|0)+1;q=c[t+(k*20|0)>>2]|0;if(f){c[n>>2]=q;q=p}A=ts(B)|0;ct(d,q,A,16);Nq(d,c[t+((k|1)*20|0)>>2]|0,g);sh(B,16,0,v,0)|0;Zt(d);p=c[m>>2]|0;o=~A;if((A|0)<0?(w=c[p+112>>2]|0,(w|0)!=0):0)c[w+(o<<2)>>2]=c[l>>2];c[p+88>>2]=(c[l>>2]|0)+-1;k=k+2|0;if((k|0)>=(r|0))break;else p=q}}if(!(u&1))sh(B,28,0,g,0)|0;else{A=d+100|0;c[A>>2]=(c[A>>2]|0)+1;Nq(d,c[(c[s>>2]|0)+(r*20|0)>>2]|0,g);Zt(d)}l=c[B+24>>2]|0;k=~v;if((v|0)<0?(x=c[l+112>>2]|0,(x|0)!=0):0)c[x+(k<<2)>>2]=c[B+32>>2];c[l+88>>2]=(c[B+32>>2]|0)+-1;break b}}while(0);h=c[f+28>>2]|0;do if((h|0)<0){h=c[d+92>>2]|0;if((h|0)>0){g=(b[f+32>>1]|0)+h|0;break b}else{h=c[d+96>>2]|0;break}}while(0);g=_s(d,c[f+44>>2]|0,b[f+32>>1]|0,h,g,a[f+38>>0]|0)|0}while(0);if((E|0)==16)sh(B,28,0,g,0)|0;Wr(d,c[C>>2]|0);Wr(d,c[D>>2]|0)}while(0);i=F;return g|0}function fs(a,b){a=a|0;b=b|0;var d=0;d=Kq(a)|0;cs(a,b,1,1,(b|0)==1?13184:13208);th(d,sh(d,55,0,1,b)|0,5,-14);b=a+68|0;if(!(c[b>>2]|0))c[b>>2]=1;return}function gs(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;h=f+48|0;if((e[h>>1]|0|0)<(g|0)){i=g*7|0;d=ih(d,i,((i|0)<0)<<31>>31)|0;if(!d)d=7;else{bw(d|0,0,i|0)|0;j=f+32|0;gw(d|0,c[j>>2]|0,(e[h>>1]|0)<<2|0)|0;c[j>>2]=d;j=d+(g<<2)|0;i=f+4|0;gw(j|0,c[i>>2]|0,(e[h>>1]|0)<<1|0)|0;c[i>>2]=j;i=d+(g*6|0)|0;d=f+28|0;gw(i|0,c[d>>2]|0,e[h>>1]|0|0)|0;c[d>>2]=i;b[h>>1]=g;d=f+51|0;a[d>>0]=a[d>>0]|16;d=0}}else d=0;return d|0}function hs(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();k=p;o=p+4|0;do if(!d)f=0;else{l=c[a>>2]|0;n=d+24|0;h=l+460|0;g=(c[h>>2]|0)+(c[n>>2]|0)|0;f=c[(c[l>>2]|0)+100>>2]|0;if((f|0)<(g|0)){c[k>>2]=f;ph(l,27152,k);f=1;break}c[h>>2]=g;k=a+28|0;h=e[k>>1]|0;m=h&4098;b[k>>1]=h&61437;c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o>>2]=82;c[o+4>>2]=83;h=o+12|0;c[h>>2]=l;c[o+24>>2]=a;ns(o,d)|0;o=(c[a>>2]|0)+460|0;c[o>>2]=(c[o>>2]|0)-(c[n>>2]|0);if(!((c[a+24>>2]|0)<=0?(c[(c[h>>2]|0)+64>>2]|0)<=0:0)){o=d+4|0;c[o>>2]=c[o>>2]|8}h=b[k>>1]|0;g=d+4|0;f=c[g>>2]|0;if(h&2){f=f|2;c[g>>2]=f}b[k>>1]=h&65535|m;f=f>>>3&1}while(0);i=p;return f|0}function is(a){a=a|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=c[(c[a+12>>2]|0)+4>>2]|0;f=b[a+48>>1]|0;if(!(f<<16>>16)){e=0;f=0}else{j=c[a+4>>2]|0;g=f&65535;h=0;e=0;do{f=b[j+(h<<1)>>1]|0;if(f<<16>>16<0)f=1;else f=d[i+((f<<16>>16)*24|0)+22>>0]|0;e=f+e|0;h=h+1|0}while((h|0)<(g|0));e=e<<2;f=0}b[a+44>>1]=bs(e,f)|0;return}function js(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=c[d>>2]|0;g=j+24|0;i=c[g>>2]|0;c[g>>2]=i&-97|64;zs(d,e,0);if(!(c[d+64>>2]|0)){while(1){f=c[e+52>>2]|0;if(!f){h=e;break}else e=f}c[g>>2]=i;e=ih(j,76,0)|0;if(e){f=e+0|0;g=f+76|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(g|0));b[e+40>>1]=1;c[e>>2]=0;b[e+28>>1]=200;eu(d,c[h>>2]|0,e+38|0,e+4|0);fu(d,e,h);b[e+36>>1]=-1;if(a[j+65>>0]|0){gg(j,e);e=0}}else e=0}else e=0;return e|0}function ks(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[d>>2]|0;g=a[e>>0]|0;a:do if(!(g<<24>>24)){i=0;h=0}else{i=g;j=0;while(1){h=j+1|0;if(!(i<<24>>24==95?1:(a[10368+(i&255)>>0]&6)!=0)){h=j;break a}i=a[e+h>>0]|0;if(!(i<<24>>24)){i=0;break}else j=h}}while(0);if((((g&255)+-48|0)>>>0>=10?(bi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[b+f>>0]=34;k=1;g=a[e>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[b+f>>0]=g;if((a[h>>0]|0)==34){a[b+i>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[h>>0]|0}while(g<<24>>24!=0)}if(k){a[b+f>>0]=34;f=f+1|0}a[b+f>>0]=0;c[d>>2]=f;return}function ls(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[f>>0]|0;if(g<<24>>24==2?(c[e+4>>2]&1|0)!=0:0){a[f>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[e>>0]|0|0){case 135:if(g<<24>>24==5){a[e>>0]=101;f=0;break a}else if(g<<24>>24==4){a[f>>0]=0;f=2;break a}else{f=0;break a}case 153:{if((g&255)>3){f=0;break a}if(c[e+4>>2]&524288){f=0;break a}a[f>>0]=0;f=2;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[e+28>>2]|0)==(c[b+24>>2]|0):0){f=0;break a}a[f>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function ms(b,c){b=b|0;c=c|0;a[b+20>>0]=0;return 2}function ns(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=nc[c[a>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[e>>2]&16384|0)==0):0){if(ns(a,c[b+12>>2]|0)|0){b=2;break a}if(ns(a,c[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[e>>2]&2048))if(!(hu(a,c[b>>2]|0)|0))break;else{b=2;break a}else if(!(gu(a,c[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function os(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((iu(e)|0)==0?(iu(f)|0)==0:0){g=ih(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(i|0));a[g>>0]=72;b[g+34>>1]=-1;c[g+24>>2]=1}ps(d,g,e,f);break}Ck(d,e);Ck(d,f);g=jr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ps(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Ck(a,d);Ck(a,e)}else{if(e){c[b+16>>2]=e;a=b+4|0;c[a>>2]=c[a>>2]|c[e+4>>2]&2097408}if(d){c[b+12>>2]=d;a=b+4|0;c[a>>2]=c[a>>2]|c[d+4>>2]&2097408}Et(b)}return}function qs(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=ih(a,g,((g|0)<0)<<31>>31)|0;if(e){bw(e|0,0,g|0)|0;c[e+32>>2]=e+56;c[e+8>>2]=e+j;g=j+l|0;c[e+4>>2]=e+g;c[e+28>>2]=e+(g+k);b[e+48>>1]=d;b[e+46>>1]=h+65535;c[f>>2]=e+i}return e|0}function rs(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();t=z;p=c[d+12>>2]|0;o=b+68|0;w=c[o>>2]|0;y=w+1|0;c[o>>2]=w+2;n=c[b>>2]|0;l=c[d+24>>2]|0;a:do if(l){h=c[n+20>>2]|0;if((h|0)>0){g=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[g+(m<<4)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Oq(b,27,c[d>>2]|0,0,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0)==0?(cs(b,k,c[p+32>>2]|0,1,c[p>>2]|0),x=Kq(b)|0,(x|0)!=0):0){if((f|0)>-1)q=f;else q=c[d+40>>2]|0;u=ds(b,d)|0;v=c[o>>2]|0;c[o>>2]=v+1;s=d+46|0;h=e[s>>1]|0;if(u)c[u>>2]=(c[u>>2]|0)+1;th(x,sh(x,58,v,0,h)|0,u,-6);Mq(b,w,k,p,54);n=sh(x,108,w,0,0)|0;h=b+19|0;g=a[h>>0]|0;if(!(g<<24>>24)){p=b+72|0;r=(c[p>>2]|0)+1|0;c[p>>2]=r}else{r=g+-1<<24>>24;a[h>>0]=r;r=c[b+((r&255)<<2)+24>>2]|0}Lt(b,d,w,r,0,t,0,0)|0;sh(x,109,v,r,0)|0;Mt(b,c[t>>2]|0);sh(x,9,w,n+1|0,0)|0;p=x+32|0;m=c[p>>2]|0;if(m>>>0>n>>>0)c[(c[x+4>>2]|0)+(n*20|0)+8>>2]=m;l=x+24|0;c[(c[l>>2]|0)+88>>2]=m+-1;if((f|0)<0)sh(x,118,q,k,0)|0;th(x,sh(x,55,y,q,k)|0,u,-6);o=x+4|0;h=c[o>>2]|0;if(h)a[h+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=(f>>31)+4&252|1;n=sh(x,106,v,0,0)|0;h=c[p>>2]|0;if((a[d+50>>0]|0)!=0&(u|0)!=0){m=h+3|0;sh(x,16,0,m,0)|0;h=c[p>>2]|0;q=e[s>>1]|0;th(x,sh(x,99,v,m,r)|0,q,-14);ju(b,2,d)}sh(x,100,v,r,y)|0;sh(x,110,y,r,1)|0;g=c[o>>2]|0;if(g)a[g+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Wr(b,r);sh(x,5,v,h,0)|0;g=c[p>>2]|0;if(g>>>0>n>>>0)c[(c[o>>2]|0)+(n*20|0)+8>>2]=g;c[(c[l>>2]|0)+88>>2]=g+-1;sh(x,61,w,0,0)|0;sh(x,61,y,0,0)|0;sh(x,61,v,0,0)|0}i=z;return}function ss(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!g){g=Un(p,f,h,0)|0;if(!g)n=4;else n=3}else n=3;if((n|0)==3)if(!(c[g+12>>2]|0))n=4;else n=14;if((n|0)==4){l=f&255;k=p+224|0;if(c[k>>2]|0){m=gh(p,h)|0;if(m){mc[c[k>>2]&15](c[p+232>>2]|0,p,l,m);ig(p,m);n=7}}else n=7;if((n|0)==7?(o=p+228|0,(c[o>>2]|0)!=0):0){k=ih(p,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(l|0));b[k+8>>1]=1;c[k+32>>2]=p;Tg(k,h,-1,1,0)|0}g=Og(k,2)|0;if(g)mc[c[o>>2]&15](c[p+232>>2]|0,p,d[p+62>>0]|0,g);Ih(k)}g=Un(p,f,h,0)|0;if(!g)n=19;else n=14}a:do if((n|0)==14)if(!(c[g+12>>2]|0)){l=c[g>>2]|0;m=0;while(1){k=Un(p,a[26816+m>>0]|0,l,0)|0;m=m+1|0;if(c[k+12>>2]|0)break;if((m|0)>=3){n=19;break a}}c[g+0>>2]=c[k+0>>2];c[g+4>>2]=c[k+4>>2];c[g+8>>2]=c[k+8>>2];c[g+12>>2]=c[k+12>>2];c[g+16>>2]=0}while(0);if((n|0)==19){c[q>>2]=h;ph(e,26784,q);g=0}i=r;return g|0}function ts(a){a=a|0;var b=0,d=0;a=c[a+24>>2]|0;d=a+108|0;b=c[d>>2]|0;c[d>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Sl(c[a>>2]|0,c[d>>2]|0,b<<3|4,0)|0;c[d>>2]=a}else a=c[a+112>>2]|0;if(a)c[a+(b<<2)>>2]=-1;return ~b|0}function us(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;if(e){g=c[e>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=ih(d,g,h)|0;if(g){h=c[e>>2]|0;c[g+4>>2]=h;c[g>>2]=h;if((c[e>>2]|0)>0){h=g+8|0;j=0;do{c[h+(j*72|0)>>2]=c[e+(j*72|0)+8>>2];c[h+(j*72|0)+4>>2]=gh(d,c[e+(j*72|0)+12>>2]|0)|0;c[h+(j*72|0)+8>>2]=gh(d,c[e+(j*72|0)+16>>2]|0)|0;c[h+(j*72|0)+12>>2]=gh(d,c[e+(j*72|0)+20>>2]|0)|0;a[h+(j*72|0)+36>>0]=a[e+(j*72|0)+44>>0]|0;c[h+(j*72|0)+40>>2]=c[e+(j*72|0)+48>>2];c[h+(j*72|0)+24>>2]=c[e+(j*72|0)+32>>2];c[h+(j*72|0)+28>>2]=c[e+(j*72|0)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[i>>0]&-3|a[k>>0]&2;a[i>>0]=l;l=l&-5|a[k>>0]&4;a[i>>0]=l;a[i>>0]=l&-9|a[k>>0]&8;c[h+(j*72|0)+64>>2]=gh(d,c[e+(j*72|0)+72>>2]|0)|0;a[i>>0]=a[i>>0]&-2|a[k>>0]&1;c[h+(j*72|0)+68>>2]=c[e+(j*72|0)+76>>2];i=c[e+(j*72|0)+24>>2]|0;c[h+(j*72|0)+16>>2]=i;if(i){i=i+40|0;b[i>>1]=(b[i>>1]|0)+1<<16>>16}c[h+(j*72|0)+20>>2]=cr(d,c[e+(j*72|0)+28>>2]|0,f)|0;c[h+(j*72|0)+44>>2]=Ir(d,c[e+(j*72|0)+52>>2]|0,f,0)|0;c[h+(j*72|0)+48>>2]=Jr(d,c[e+(j*72|0)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[l+4>>2]|0;i=h+(j*72|0)+56|0;c[i>>2]=c[l>>2];c[i+4>>2]=k;j=j+1|0}while((j|0)<(c[e>>2]|0))}}else g=0}else g=0;return g|0}function vs(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;i=Kq(b)|0;if((e|0)==2){k=c[b+408>>2]|0;a[((k|0)==0?b:k)+21>>0]=1}th(i,sh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[i+4>>2]|0,(j|0)!=0):0)a[j+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=h;return}function ws(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(c[(c[b>>2]|0)+16>>2]|0)+28>>2]|0;do if(!(a[b+438>>0]|0)){h=c[d+68>>2]|0;if((e|0)!=(h|0)?(f=c[e+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[f+8>>2]|0;if((c[b+24>>2]|0)==(h|0)?($c(c[b+4>>2]|0,c[d>>2]|0)|0)==0:0){if(!e)e=c[g>>2]|0;c[b+32>>2]=e}else b=e;f=c[f>>2]|0;if(!f)break;else e=b}if(b)break}b=c[d+64>>2]|0}else b=0;while(0);return b|0}function xs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[b+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[k>>2]|0;if(!d)h=b;else{do{e=c[d+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[d+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[a>>2]|0;f=c[i>>2]|0;a:do if(f){g=c[b+20>>2]|0;if((g|0)>0){d=c[b+16>>2]|0;e=0;while(1){b=e+1|0;if((c[d+(e<<4)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Ar(a,h,b);f=h}return}function ys(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;a:do if((b|0)!=0?(d=c[b>>2]|0,(d|0)>0):0){h=a+68|0;f=0;g=b+8|0;while(1){e=g+40|0;if((c[e>>2]|0)>-1)break a;i=c[h>>2]|0;c[h>>2]=i+1;c[e>>2]=i;e=c[g+20>>2]|0;if(e){ys(a,c[e+32>>2]|0);d=c[b>>2]|0}f=f+1|0;if((f|0)>=(d|0))break;else g=g+72|0}}while(0);return}function zs(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();m=n;if(((e|0)!=0?(l=(c[d>>2]|0)+65|0,(a[l>>0]|0)==0):0)?(h=e+6|0,g=b[h>>1]|0,(g&32)==0):0){c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m>>2]=84;c[m+12>>2]=d;k=m+4|0;if(a[d+22>>0]|0){c[k>>2]=85;gu(m,e)|0;g=b[h>>1]|0}c[k>>2]=86;if(!(g&256))c[m+8>>2]=9;gu(m,e)|0;g=d+64|0;if((((c[g>>2]|0)==0?(a[l>>0]|0)==0:0)?(c[m+0>>2]=0,c[m+4>>2]=0,c[m+8>>2]=0,c[m+12>>2]=0,c[m+16>>2]=0,c[m+20>>2]=0,c[m>>2]=82,c[m+4>>2]=83,c[m+12>>2]=d,c[m+24>>2]=f,gu(m,e)|0,(c[g>>2]|0)==0):0)?(a[l>>0]|0)==0:0){c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m+8>>2]=10;c[m>>2]=84;c[m+12>>2]=d;gu(m,e)|0}}i=n;return}function As(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(a)do{d=c[a+36>>2]|0;if((d|0)!=0?(h=c[d+24>>2]|0,(h|0)>(c[b>>2]|0)):0)c[b>>2]=h;d=c[a+44>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(c[b>>2]|0)):0)c[b>>2]=e;d=c[a+60>>2]|0;if((d|0)!=0?(f=c[d+24>>2]|0,(f|0)>(c[b>>2]|0)):0)c[b>>2]=f;d=c[a+64>>2]|0;if((d|0)!=0?(g=c[d+24>>2]|0,(g|0)>(c[b>>2]|0)):0)c[b>>2]=g;pu(c[a>>2]|0,b);pu(c[a+40>>2]|0,b);pu(c[a+48>>2]|0,b);a=c[a+52>>2]|0}while((a|0)!=0);return}function Bs(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;g=c[b>>2]|0;h=g+d|0;if(h>>>0>(c[b+4>>2]|0)>>>0){i=no(a,b,(h*72|0)+8|0,0)|0;if(i){do if(!a)b=hc[c[8744+48>>2]&127](i)|0;else{if((c[a+276>>2]|0)>>>0<=i>>>0?(c[a+280>>2]|0)>>>0>i>>>0:0){b=e[a+248>>1]|0;break}b=hc[c[8744+48>>2]&127](i)|0}while(0);c[i+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=i;g=c[i>>2]|0;j=10}}else j=10;if((j|0)==10){if((g|0)>(f|0)){do{g=g+-1|0;h=b+((g+d|0)*72|0)+8|0;a=b+(g*72|0)+8|0;i=h+72|0;do{c[h>>2]=c[a>>2];h=h+4|0;a=a+4|0}while((h|0)<(i|0))}while((g|0)>(f|0));g=c[b>>2]|0}c[b>>2]=g+d;bw(b+(f*72|0)+8|0,0,d*72|0)|0;g=f+d|0;if((d|0)>0)do{c[b+(f*72|0)+48>>2]=-1;f=f+1|0}while((f|0)<(g|0))}return b|0}function Cs(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if((b|0)!=0?(c[b>>2]|0)>0:0){f=b+4|0;g=c[f>>2]|0;h=0;do{i=Ds(a,c[g+(h*20|0)>>2]|0,d,e)|0;g=c[f>>2]|0;c[g+(h*20|0)>>2]=i;h=h+1|0}while((h|0)<(c[b>>2]|0))}return}function Ds(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0;do if(e){if((a[e>>0]|0)==-102?(c[e+28>>2]|0)==(f|0):0){h=b[e+32>>1]|0;if(h<<16>>16<0){a[e>>0]=101;break}else{h=Ir(d,c[(c[g+4>>2]|0)+((h<<16>>16)*20|0)>>2]|0,0,0)|0;Ck(d,e);e=h;break}}h=e+12|0;c[h>>2]=Ds(d,c[h>>2]|0,f,g)|0;h=e+16|0;c[h>>2]=Ds(d,c[h>>2]|0,f,g)|0;h=e+20|0;if(!(c[e+4>>2]&2048)){Cs(d,c[h>>2]|0,f,g);break}else{qu(d,c[h>>2]|0,f,g);break}}else e=0;while(0);return e|0}function Es(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[c[b>>2]>>2]|0;e=b;g=1;while(1){b=c[e+52>>2]|0;if(!b){f=5;break}if((c[c[b>>2]>>2]|0)==(f|0)){e=b;g=g+1|0}else{f=3;break}}a:do if((f|0)==3){Fs(a,b);b=1}else if((f|0)==5)if(!e)b=0;else{h=((g|0)<0)<<31>>31;f=0;while(1){i=e+52|0;c[i>>2]=0;b=er(a,e,d)|0;c[i>>2]=f;if(b)break a;b=e+24|0;c[b>>2]=g;c[b+4>>2]=h;b=c[e+56>>2]|0;if(!b){b=0;break a}e=b;f=c[b+52>>2]|0}}while(0);return b|0}function Fs(a,e){a=a|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(!(b[e+6>>1]&128)){e=d[e+4>>0]|0;if((e|0)==117)e=35352;else if((e|0)==118)e=35336;else if((e|0)==116)e=35320;else e=35360;c[f>>2]=e;ph(a,35232,f)}else ph(a,35184,f);i=g;return}function Gs(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;E=i;i=i+32|0;if((i|0)>=(j|0))ba();v=E;k=c[f+32>>2]|0;n=c[c[f>>2]>>2]|0;s=c[d+8>>2]|0;t=f+52|0;u=c[t>>2]|0;if(!(Oq(d,33,0,0,0)|0)){w=ts(s)|0;Ks(d,f,w);x=f+60|0;y=c[x>>2]|0;z=f+64|0;A=c[z>>2]|0;B=f+8|0;p=c[B>>2]|0;C=f+12|0;q=c[C>>2]|0;c[z>>2]=0;c[x>>2]=0;c[C>>2]=0;c[B>>2]=0;B=f+48|0;C=c[B>>2]|0;l=c[k>>2]|0;a:do if((l|0)>0){m=0;while(1){if(a[k+(m*72|0)+45>>0]&8)break;m=m+1|0;if((m|0)>=(l|0)){o=0;break a}}o=c[k+(m*72|0)+48>>2]|0}else o=0;while(0);m=d+68|0;k=c[m>>2]|0;l=k+1|0;c[m>>2]=l;h=(C|0)!=0;if((a[f+4>>0]|0)==115){c[m>>2]=k+2;m=h?8:6}else{m=h?7:5;l=0}a[v>>0]=m;c[v+4>>2]=k;a[v+1>>0]=0;c[v+8>>2]=0;c[v+12>>2]=0;F=d+72|0;m=(c[F>>2]|0)+1|0;c[F>>2]=m;sh(s,60,o,m,n)|0;if(h){n=ru(d,f)|0;th(s,sh(s,57,k,(c[C>>2]|0)+2|0,0)|0,n,-6);c[v+16>>2]=C}else sh(s,57,k,n,0)|0;if(l){c[f+16>>2]=sh(s,57,l,0,0)|0;l=f+6|0;b[l>>1]=e[l>>1]|8}c[B>>2]=0;n=u+56|0;c[n>>2]=0;l=er(d,u,v)|0;c[n>>2]=f;if(!l){n=sh(s,108,k,w,0)|0;sh(s,104,o,0,0)|0;if(h)sh(s,47,k,(c[C>>2]|0)+1|0,m)|0;else sh(s,102,k,m,0)|0;sh(s,95,k,0,0)|0;l=ts(s)|0;et(s,q,l);Ls(d,f,c[f>>2]|0,o,0,0,g,l,w);if(p)sh(s,140,p,w,0)|0;h=s+24|0;m=c[h>>2]|0;k=~l;if((l|0)<0?(r=c[m+112>>2]|0,(r|0)!=0):0)c[r+(k<<2)>>2]=c[s+32>>2];l=s+32|0;c[m+88>>2]=(c[l>>2]|0)+-1;c[t>>2]=0;er(d,f,v)|0;c[t>>2]=u;sh(s,16,0,n,0)|0;h=c[h>>2]|0;k=~w;if((w|0)<0?(D=c[h+112>>2]|0,(D|0)!=0):0)c[D+(k<<2)>>2]=c[l>>2];c[h+88>>2]=(c[l>>2]|0)+-1}Jk(c[d>>2]|0,c[B>>2]|0);c[B>>2]=C;c[x>>2]=y;c[z>>2]=A}i=E;return}function Hs(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+48|0;if((i|0)>=(j|0))ba();r=Y+40|0;K=Y+20|0;L=Y;U=c[f>>2]|0;R=c[f+8>>2]|0;T=ts(R)|0;Q=ts(R)|0;V=g+4|0;M=a[V>>0]|0;W=g+52|0;X=c[W>>2]|0;t=g+48|0;m=c[t>>2]|0;l=c[m>>2]|0;O=M<<24>>24==116;a:do if(!O?(p=U+65|0,(a[p>>0]|0)==0):0){n=r+4|0;q=1;while(1){if((q|0)>(c[c[g>>2]>>2]|0)){N=l;s=14;break a}b:do if((l|0)>0){k=0;o=c[m+4>>2]|0;while(1){if((e[o+16>>1]|0)==(q|0))break b;k=k+1|0;if((k|0)<(l|0))o=o+20|0;else break}}else k=0;while(0);if((k|0)==(l|0)){c[r>>2]=0;c[n>>2]=0;k=jr(U,132,r,0)|0;if(!k){k=7;break a}G=k+4|0;c[G>>2]=c[G>>2]|1024;c[k+8>>2]=q;k=hr(f,m,k)|0;if(!k)k=0;else{b[(c[k+4>>2]|0)+(l*20|0)+16>>1]=q;l=l+1|0}}else k=m;if(!(a[p>>0]|0)){q=q+1|0;m=k}else{N=l;m=k;s=14;break}}}else{N=l;s=14}while(0);if((s|0)==14){J=ih(U,N<<2,0)|0;if(!J)H=0;else{if((N|0)>0){l=0;k=c[m+4>>2]|0;while(1){c[J+(l<<2)>>2]=(e[k+16>>1]|0)+-1;l=l+1|0;if((l|0)==(N|0))break;else k=k+20|0}}H=ru(f,g)|0}c[t>>2]=m;p=X+48|0;c[p>>2]=Lr(c[f>>2]|0,m,0)|0;if(!O){m=c[c[g>>2]>>2]|0;l=f+72|0;G=c[l>>2]|0;o=G+1|0;c[l>>2]=m+1+G;sh(R,25,0,o,0)|0;l=Ns(U,m,1)|0;if(l)if((m|0)>0){k=l+16|0;n=0;do{c[l+(n<<2)+20>>2]=Os(f,g,n)|0;a[(c[k>>2]|0)+n>>0]=0;n=n+1|0}while((n|0)!=(m|0));u=l}else u=l;else u=0}else{u=0;o=0}c[W>>2]=0;I=X+56|0;c[I>>2]=0;su(f,g,c[t>>2]|0,26880)|0;if(!(c[X+52>>2]|0))su(f,X,c[p>>2]|0,26880)|0;Ks(f,g,T);n=g+8|0;l=c[n>>2]|0;p=f+72|0;if((l|0)!=0&O){s=c[p>>2]|0;q=s+1|0;s=s+2|0;c[p>>2]=s;G=c[g+12>>2]|0;sh(R,33,(G|0)==0?l:G+1|0,q,0)|0;sh(R,33,q,s,0)|0}else{q=0;s=0}x=g+60|0;Ck(U,c[x>>2]|0);c[x>>2]=0;x=g+64|0;Ck(U,c[x>>2]|0);c[x>>2]=0;x=c[p>>2]|0;y=x+1|0;z=x+2|0;v=x+3|0;x=x+4|0;c[p>>2]=x;a[K>>0]=13;c[K+4>>2]=y;a[K+1>>0]=0;B=K+8|0;c[B>>2]=0;c[K+12>>2]=0;a[L>>0]=13;c[L+4>>2]=z;a[L+1>>0]=0;D=L+8|0;c[D>>2]=0;c[L+12>>2]=0;F=R+32|0;r=sh(R,20,y,0,(c[F>>2]|0)+1|0)|0;c[X+8>>2]=q;p=f+468|0;G=c[p>>2]|0;er(f,X,K)|0;sh(R,21,y,0,0)|0;q=c[F>>2]|0;if(q>>>0>r>>>0)c[(c[R+4>>2]|0)+(r*20|0)+8>>2]=q;A=R+24|0;c[(c[A>>2]|0)+88>>2]=q+-1;w=sh(R,20,z,0,q+1|0)|0;k=c[n>>2]|0;m=g+12|0;t=c[m>>2]|0;c[n>>2]=s;c[m>>2]=0;E=c[p>>2]|0;er(f,g,L)|0;c[n>>2]=k;c[m>>2]=t;sh(R,21,z,0,0)|0;m=tu(f,g,K,h,v,o,u,T)|0;t=(M+-115&255)<2;if(t)k=tu(f,g,L,h,x,o,u,T)|0;else k=0;if((u|0)!=0?(l=(c[u>>2]|0)+-1|0,c[u>>2]=l,(l|0)==0):0)Sc(u);o=M<<24>>24==118;if((M+-117&255)<2){s=T;l=T}else{s=sh(R,17,x,k,0)|0;l=sh(R,22,z,T,0)|0;sh(R,16,0,s,0)|0;n=X+24|0;u=g+24|0;p=u;n=fw(c[p>>2]|0,c[p+4>>2]|0,c[n>>2]|0,c[n+4>>2]|0)|0;c[u>>2]=n;c[u+4>>2]=C}if(o){r=g+24|0;u=r;n=c[u+4>>2]|0;p=X+24|0;q=c[p>>2]|0;p=c[p+4>>2]|0;if(n>>>0>p>>>0|((n|0)==(p|0)?(c[u>>2]|0)>>>0>q>>>0:0)){n=r;c[n>>2]=q;c[n+4>>2]=p;n=s}else n=s}else{n=sh(R,17,v,m,0)|0;sh(R,22,y,T,0)|0;sh(R,16,0,n,0)|0}r=sh(R,17,v,m,0)|0;sh(R,22,y,s,0)|0;sh(R,16,0,Q,0)|0;do if(!O)if(o){s=r;r=r+1|0;break}else{s=sh(R,22,y,s,0)|0;sh(R,16,0,Q,0)|0;break}else s=r;while(0);q=c[F>>2]|0;if(t)sh(R,17,x,k,0)|0;sh(R,22,z,n,0)|0;sh(R,16,0,Q,0)|0;p=c[F>>2]|0;if(p>>>0>w>>>0)c[(c[R+4>>2]|0)+(w*20|0)+8>>2]=p;c[(c[A>>2]|0)+88>>2]=p+-1;sh(R,22,y,l,0)|0;sh(R,22,z,n,0)|0;n=c[A>>2]|0;m=~Q;if((Q|0)<0?(P=c[n+112>>2]|0,(P|0)!=0):0)c[P+(m<<2)>>2]=c[F>>2];c[n+88>>2]=(c[F>>2]|0)+-1;th(R,sh(R,41,0,0,0)|0,J,-15);th(R,sh(R,42,c[B>>2]|0,c[D>>2]|0,N)|0,H,-6);l=c[R+4>>2]|0;if(l)a[l+(((c[F>>2]|0)+-1|0)*20|0)+3>>0]=1;sh(R,43,r,s,q)|0;l=c[A>>2]|0;k=~T;if((T|0)<0?(S=c[l+112>>2]|0,(S|0)!=0):0)c[S+(k<<2)>>2]=c[F>>2];c[l+88>>2]=(c[F>>2]|0)+-1;if((a[h>>0]|0)==9){k=X;while(1){l=c[k+52>>2]|0;if(!l)break;else k=l}Js(f,0,c[k>>2]|0)}k=c[W>>2]|0;if(k)Ik(U,k,1);c[W>>2]=X;c[I>>2]=g;Ms(f,d[V>>0]|0,G,E,0);k=0}i=Y;return k|0}function Is(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;do if(!(c[a+4>>2]&1024)){e=d[a>>0]|0;if((e|0)==158){e=Is(c[a+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Is(c[a+12>>2]|0,f)|0))e=0;else{c[b>>2]=0-(c[f>>2]|0);e=1}}else{c[b>>2]=c[a+8>>2];e=1}while(0);i=g;return e|0}function Js(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))ba();z=A;y=d+8|0;v=c[y>>2]|0;w=c[d>>2]|0;if(((a[d+450>>0]|0)==0?(k=d+16|0,!((a[k>>0]|0)!=0|(v|0)==0)):0)?(a[w+65>>0]|0)==0:0){a[k>>0]=1;k=c[w+24>>2]|0;u=(k&32|0)==0;eq(v,c[f>>2]|0);h=c[f>>2]|0;if((h|0)>0){t=f+4|0;s=(e|0)==0;p=(k&96|0)==0;q=(e|0)!=0;r=0;do{o=c[t>>2]|0;h=c[o+(r*20|0)>>2]|0;do if(h){k=c[o+(r*20|0)+4>>2]|0;if(k){fq(v,r,0,k,-1);break}k=a[h>>0]|0;if(k<<24>>24==-102){if(s)x=25}else if(!(k<<24>>24==-100&q))x=25;if((x|0)==25){x=0;k=c[o+(r*20|0)+8>>2]|0;if(!k){c[z>>2]=r+1;k=qh(w,34880,z)|0}else k=gh(w,k)|0;fq(v,r,0,k,75);break}n=b[h+32>>1]|0;k=n<<16>>16;m=c[e>>2]|0;a:do if((m|0)>0){g=c[h+28>>2]|0;l=0;while(1){h=l+1|0;if((c[e+(l*72|0)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[e+(h*72|0)+24>>2]|0;if(n<<16>>16<0)k=b[h+36>>1]|0;if((k|0)<0)k=20456;else k=c[(c[h+4>>2]|0)+(k*24|0)>>2]|0;if(p){fq(v,r,0,gh(w,c[o+(r*20|0)+8>>2]|0)|0,75);break}if(u){fq(v,r,0,k,-1);break}else{c[z>>2]=c[h>>2];c[z+4>>2]=k;fq(v,r,0,qh(w,27824,z)|0,75);break}}while(0);r=r+1|0;h=c[f>>2]|0}while((r|0)<(h|0))}k=c[y>>2]|0;c[z+4>>2]=e;c[z>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{fq(k,h,1,uu(z,c[(c[g>>2]|0)+(h*20|0)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[f>>2]|0))}}i=A;return}function Ks(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();f=o;h=b+8|0;if((c[h>>2]|0)==0?(Ys(a),g=b+60|0,(c[g>>2]|0)!=0):0){l=a+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[h>>2]=m;n=Kq(a)|0;do if(Is(c[g>>2]|0,f)|0){f=c[f>>2]|0;sh(n,25,f,m,0)|0;if(!f){sh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[d+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[d>>2]|0)>>>0>f>>>0:0)):0){d=e;c[d>>2]=f;c[d+4>>2]=k}}else{Nq(a,c[g>>2]|0,m);sh(n,38,m,0,0)|0;sh(n,46,m,d,0)|0}while(0);f=c[b+64>>2]|0;if(f){k=c[l>>2]|0;d=k+1|0;c[b+12>>2]=d;c[l>>2]=k+2;Nq(a,f,d);sh(n,38,d,0,0)|0;f=sh(n,137,d,0,0)|0;sh(n,25,0,d,0)|0;g=n+32|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;h=n+24|0;c[(c[h>>2]|0)+88>>2]=e+-1;e=k+2|0;sh(n,89,m,d,e)|0;f=sh(n,137,m,0,0)|0;sh(n,25,-1,e,0)|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;c[(c[h>>2]|0)+88>>2]=e+-1}}i=o;return}function Ls(b,f,g,h,i,j,k,l,m){b=b|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;F=c[b+8>>2]|0;A=a[k>>0]|0;u=A&255;w=k+4|0;D=c[w>>2]|0;if(!j)n=0;else n=d[j+1>>0]|0;if(!i)E=0;else E=(c[i>>2]|0)==0?0:i;z=(E|0)!=0;v=(n|0)!=0;if(!(z|v))et(F,c[f+12>>2]|0,l);B=c[g>>2]|0;q=k+8|0;i=c[q>>2]|0;if(i){p=b+72|0;o=c[p>>2]|0;if((i+B|0)>(o|0)){c[p>>2]=o+B;C=i;x=0}else{C=i;x=0}}else{if(z){o=((a[E+24>>0]&1^1)&255)+(c[c[E>>2]>>2]|0)|0;C=b+72|0;p=o+(c[C>>2]|0)|0;c[C>>2]=p}else{p=c[b+72>>2]|0;o=0}C=p+1|0;c[q>>2]=C;c[b+72>>2]=p+B;x=o}c[k+12>>2]=B;do if((h|0)>-1){if((B|0)>0){p=0;do{sh(F,47,h,p,p+C|0)|0;p=p+1|0}while((p|0)!=(B|0))}}else{if(A<<24>>24==3)break;else if(A<<24>>24==9)o=1;else o=A<<24>>24==13&1;Zs(b,g,C,o)}while(0);if(v){o=d[j+1>>0]|0;if((o|0)==2){o=b+72|0;h=c[o>>2]|0;t=h+1|0;c[o>>2]=h+B;o=j+8|0;vh(F,c[o>>2]|0);o=c[o>>2]|0;if((o|0)<0)o=(c[F+32>>2]|0)+-1|0;if(!(a[(c[F>>2]|0)+65>>0]|0))o=(c[F+4>>2]|0)+(o*20|0)|0;else o=29120;a[o>>0]=28;c[o+4>>2]=1;c[o+8>>2]=t;h=F+32|0;i=(c[h>>2]|0)+B|0;if((B|0)>0){p=g+4|0;o=B+-1|0;q=F+4|0;s=0;do{v=_t(b,c[(c[p>>2]|0)+(s*20|0)>>2]|0)|0;j=s+C|0;n=s+t|0;if((s|0)<(o|0))sh(F,78,j,i,n)|0;else sh(F,79,j,l,n)|0;th(F,-1,v,-4);r=c[q>>2]|0;if(r)a[r+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=-128;s=s+1|0}while((s|0)!=(B|0))}else o=B+-1|0;sh(F,33,C,t,o)|0}else if((o|0)==1)vh(F,c[j+8>>2]|0);else vu(b,c[j+4>>2]|0,l,B,C);if(!E)et(F,c[f+12>>2]|0,l)}a:do switch(u|0){case 12:case 14:case 6:case 5:{p=x+1|0;o=b+60|0;i=c[o>>2]|0;q=b+56|0;n=c[q>>2]|0;if((n|0)<(p|0)){y=b+72|0;i=c[y>>2]|0;c[y>>2]=i+p;i=i+1|0}else{c[o>>2]=i+p;c[q>>2]=n-p}n=i+x|0;sh(F,49,C,B,n)|0;if(A<<24>>24==6){C=D+1|0;th(F,sh(F,69,C,(c[F+32>>2]|0)+4|0,i)|0,0,-14);sh(F,110,C,i,0)|0}if(z)wu(b,E,f,n,1,x);else{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){C=b+72|0;j=(c[C>>2]|0)+1|0;c[C>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,74,D,j,0)|0;sh(F,75,D,i,j)|0;n=c[F+4>>2]|0;if(n)a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,j)}$s(b,i,p);if((c[q>>2]|0)<(p|0)){c[q>>2]=p;c[o>>2]=i;y=94}else y=94;break}case 1:{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){A=b+72|0;j=(c[A>>2]|0)+1|0;c[A>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,49,C,B,j)|0;sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 2:{sh(F,111,D,C,B)|0;y=94;break}case 11:{i=k+1|0;a[i>>0]=xu(c[c[g+4>>2]>>2]|0,a[i>>0]|0)|0;if(z){wu(b,E,f,C,1,x);break a}j=b+19|0;n=a[j>>0]|0;if(!(n<<24>>24)){B=b+72|0;j=(c[B>>2]|0)+1|0;c[B>>2]=j}else{B=n+-1<<24>>24;a[j>>0]=B;j=c[b+((B&255)<<2)+24>>2]|0}th(F,sh(F,49,C,1,j)|0,i,1);$s(b,C,1);sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 3:{sh(F,25,1,D,0)|0;y=94;break}case 10:{if(z)wu(b,E,f,C,1,x);else y=95;break}case 9:case 13:{if(z){wu(b,E,f,C,B,x);break a}if(A<<24>>24==13){sh(F,22,c[w>>2]|0,0,0)|0;y=95;break a}else{sh(F,35,C,B,0)|0;$s(b,C,B);y=94;break a}}case 7:case 8:{r=c[k+16>>2]|0;h=c[r>>2]|0;n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){z=b+72|0;s=(c[z>>2]|0)+1|0;c[z>>2]=s}else{s=j+-1<<24>>24;a[n>>0]=s;s=c[b+((s&255)<<2)+24>>2]|0}t=h+2|0;u=b+60|0;i=c[u>>2]|0;v=b+56|0;n=c[v>>2]|0;if((n|0)<(t|0)){z=b+72|0;i=c[z>>2]|0;c[z>>2]=i+t;i=i+1|0}else{c[u>>2]=i+t;c[v>>2]=n-t}q=i+h|0;o=q+1|0;if(A<<24>>24==8){n=D+1|0;j=sh(F,69,n,0,C)|0;th(F,j,B,-14);sh(F,49,C,B,o)|0;sh(F,110,n,o,0)|0;n=c[F+4>>2]|0;if(!n)p=j;else{a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=16;p=j}}else{sh(F,49,C,B,o)|0;p=0}if((h|0)>0){o=r+4|0;n=C+-1|0;j=0;do{sh(F,34,n+(e[(c[o>>2]|0)+(j*20|0)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}sh(F,73,D,q,0)|0;sh(F,49,i,t,s)|0;sh(F,110,D,s,0)|0;if(p){n=c[F+32>>2]|0;if(n>>>0>p>>>0)c[(c[F+4>>2]|0)+(p*20|0)+8>>2]=n;c[(c[F+24>>2]|0)+88>>2]=n+-1}Wr(b,s);$s(b,i,t);if((c[v>>2]|0)<(t|0)){c[v>>2]=t;c[u>>2]=i;y=94}else y=94;break}default:y=94}while(0);if((y|0)==94?(E|0)==0:0)y=95;if((y|0)==95?(G=c[f+8>>2]|0,(G|0)!=0):0)sh(F,140,G,m,0)|0;return}function Ms(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;if((a[b+450>>0]|0)==2){k=c[b+8>>2]|0;l=c[b>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==117)g=35352;else if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else g=35360;c[m>>2]=e;c[m+4>>2]=f;c[m+8>>2]=h;c[m+12>>2]=g;g=qh(l,35120,m)|0;th(k,sh(k,157,c[b+464>>2]|0,0,0)|0,g,-1)}i=n;return}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=mg(h,0)|0;if(!i)a[d+65>>0]=1;else{bw(i|0,0,h|0)|0;c[i+16>>2]=i+20+(g<<2);b[i+6>>1]=e;b[i+8>>1]=f;a[i+4>>0]=a[d+62>>0]|0;c[i+12>>2]=d;c[i>>2]=1}return i|0}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[b+52>>2]|0;if(!((f|0)!=0?(e=Os(a,f,d)|0,(e|0)!=0):0)){e=c[b>>2]|0;if((c[e>>2]|0)>(d|0))e=_t(a,c[(c[e+4>>2]|0)+(d*20|0)>>2]|0)|0;else e=0}return e|0}function Ps(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[b>>2]|0,(h|0)==(c[d>>2]|0)):0)if((h|0)>0){b=c[b+4>>2]|0;f=c[d+4>>2]|0;g=0;while(1){if((a[b+(g*20|0)+12>>0]|0)!=(a[f+(g*20|0)+12>>0]|0)){f=1;break a}if(yu(c[b+(g*20|0)>>2]|0,c[f+(g*20|0)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Qs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[b>>2]|0;l=c[d>>2]|0;k=Ns(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[d+4>>2]|0)+(e*20|0)|0;while(1){g=_t(b,c[f>>2]|0)|0;if(!g)g=c[h>>2]|0;d=j-e|0;c[k+(d<<2)+20>>2]=g;a[(c[i>>2]|0)+d>>0]=a[f+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Rs(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0;Ma=i;i=i+64|0;if((i|0)>=(j|0))ba();Ka=Ma;La=Ma+48|0;Ja=Ma+52|0;Y=Ma+28|0;Ha=f+8|0;ea=c[Ha>>2]|0;Ia=c[f>>2]|0;c[Y+0>>2]=0;c[Y+4>>2]=0;c[Y+8>>2]=0;c[Y+12>>2]=0;c[Y+16>>2]=0;if(!k)P=0;else P=(c[k>>2]|0)>63?0:k;Z=Y+8|0;c[Z>>2]=P;_=Ia+60|0;if(b[_>>1]&32)m=m&64511;k=c[g>>2]|0;a:do if((k|0)<=64){I=m&65535;L=(I&64|0)!=0;U=L?1:k;u=(U*80|0)+743&-16;o=u+72|0;k=ih(Ia,o,0)|0;Ga=(k|0)==0;if(!Ga)bw(k|0,0,o|0)|0;xa=Ia+65|0;if(a[xa>>0]|0){ig(Ia,k);k=0;break}ca=k+60|0;da=k+64|0;c[da>>2]=-1;c[ca>>2]=-1;ya=k+41|0;a[ya>>0]=U;c[k>>2]=f;za=k+4|0;c[za>>2]=g;$=k+8|0;c[$>>2]=P;c[k+12>>2]=l;Ba=ts(ea)|0;Aa=k+48|0;c[Aa>>2]=Ba;q=k+52|0;c[q>>2]=Ba;Ba=k+34|0;b[Ba>>1]=m;Ca=f+424|0;Da=k+56|0;c[Da>>2]=c[Ca>>2];Ea=k+68|0;c[Y>>2]=k;Fa=k+328|0;X=Y+4|0;c[X>>2]=Fa;S=Y+12|0;c[S>>2]=k+u;c[k+(u+48)>>2]=k+(u+56);b[k+(u+40)>>1]=0;b[k+(u+44)>>1]=3;c[k+(u+36)>>2]=0;c[Ea>>2]=0;c[Fa>>2]=k;c[k+332>>2]=0;va=k+340|0;c[va>>2]=0;c[k+344>>2]=8;wa=k+348|0;c[wa>>2]=k+352;zu(Fa,h,72);y=(U|0)==0;if((c[k+340>>2]|0)>0){x=Ka+20|0;w=Ka+4|0;o=Ka+24|0;h=Fa;p=0;do{if(!y){h=c[(c[h+20>>2]|0)+(p*48|0)>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[x>>0]=2;c[Ka>>2]=78;c[w>>2]=79;c[o>>2]=0;ns(Ka,h)|0;h=c[X>>2]|0;if(a[x>>0]|0)ua=15}else ua=15;if((ua|0)==15){ua=0;ct(f,c[(c[h+20>>2]|0)+(p*48|0)>>2]|0,c[q>>2]|0,16);h=c[X>>2]|0;aa=(c[h+20>>2]|0)+(p*48|0)+20|0;b[aa>>1]=e[aa>>1]|4}p=p+1|0}while((p|0)<(c[h+12>>2]|0))}if(y){if(P)a[k+36>>0]=c[P>>2];if(I&1024)a[k+40>>0]=1}if((c[g>>2]|0)>0){u=0;do{O=c[g+(u*72|0)+48>>2]|0;aa=c[Ea>>2]|0;c[Ea>>2]=aa+1;c[Ea+(aa<<2)+4>>2]=O;u=u+1|0}while((u|0)<(c[g>>2]|0))}r=c[va>>2]|0;if((r|0)>0)do{r=r+-1|0;Au(Fa,r)}while((r|0)>0);b:do if(!(a[xa>>0]|0)){aa=(I&1024|0)==0;c:do if(!aa){d:do if((c[g>>2]|0)==1){H=c[g+48>>2]|0;p=c[g+24>>2]|0;x=c[l>>2]|0;e:do if((x|0)>0){w=c[l+4>>2]|0;o=0;while(1){h=c[w+(o*20|0)>>2]|0;f:do if(!h)h=0;else while(1){y=c[h+4>>2]|0;if(!(y&4096))break f;if(!(y&262144))h=h+12|0;else h=c[(c[h+20>>2]|0)+4>>2]|0;h=c[h>>2]|0;if(!h){h=0;break}}while(0);do if((a[h>>0]|0)==-102){if((c[h+28>>2]|0)!=(H|0))break;if((b[h+32>>1]|0)<0)break e}while(0);o=o+1|0;if((o|0)>=(x|0)){ua=41;break}}}else ua=41;while(0);g:do if((ua|0)==41){h=c[p+8>>2]|0;if(!h)break d;q=l+4|0;p=p+4|0;while(1){if(a[h+50>>0]|0){D=h+46|0;h:do if(!(b[D>>1]|0))y=0;else{F=h+4|0;E=h+32|0;y=0;do{B=b[(c[F>>2]|0)+(y<<1)>>1]|0;if(!(Bu(Fa,H,B,-1,-1,2,h)|0)){o=c[(c[E>>2]|0)+(y<<2)>>2]|0;if((c[l>>2]|0)>0)x=0;else break h;i:while(1){z=c[(c[q>>2]|0)+(x*20|0)>>2]|0;j:do if(!z)w=0;else{w=z;while(1){A=c[w+4>>2]|0;if(!(A&4096))break j;if(!(A&262144))w=w+12|0;else w=c[(c[w+20>>2]|0)+4>>2]|0;w=c[w>>2]|0;if(!w){w=0;break}}}while(0);do if((a[w>>0]|0)==-102){if((b[w+32>>1]|0)!=(b[(c[F>>2]|0)+(y<<1)>>1]|0))break;if((c[w+28>>2]|0)!=(H|0))break;w=_t(f,z)|0;if(!w)break;if(!($c(c[w>>2]|0,o)|0))break i}while(0);x=x+1|0;if((x|0)>=(c[l>>2]|0))break h}if((x|0)<0)break h;if(!(a[(c[p>>2]|0)+(B*24|0)+20>>0]|0))break h}y=y+1|0}while((y|0)<(e[D>>1]|0))}while(0);if((y|0)==(e[D>>1]|0))break g}h=c[h+20>>2]|0;if(!h)break d}}while(0);a[k+40>>0]=1;break c}while(0);if(!P){b[Ba>>1]=e[Ba>>1]|512;c[$>>2]=l}}while(0);k:do if((((U|0)==1?(W=c[Y>>2]|0,V=W+34|0,(b[V>>1]&32)==0):0)?(R=c[W+4>>2]|0,N=c[R+24>>2]|0,(a[N+44>>0]&16)==0):0)?(c[R+72>>2]|0)==0:0){P=c[R+48>>2]|0;z=W+328|0;O=c[S>>2]|0;H=O+36|0;c[H>>2]=0;b[O+42>>1]=0;v=Bu(z,P,-1,0,0,2,0)|0;l:do if(!v){x=c[N+8>>2]|0;m:do if(x){A=O+48|0;n:while(1){do if(a[x+50>>0]|0){if(c[x+36>>2]|0)break;w=x+46|0;h=b[w>>1]|0;if((h&65535)>3)break;q=x+4|0;o:do if(!(h<<16>>16)){h=0;y=0}else{y=0;while(1){h=Bu(z,P,b[(c[q>>2]|0)+(y<<1)>>1]|0,0,0,2,x)|0;if(!h)break;c[(c[A>>2]|0)+(y<<2)>>2]=h;y=y+1|0;h=b[w>>1]|0;if((y|0)>=(h&65535|0))break o}h=b[w>>1]|0}while(0);if((y|0)==(h&65535|0)){A=y;break n}}while(0);x=c[x+20>>2]|0;if(!x)break m}c[H>>2]=4609;if(!(a[x+51>>0]&32)){p=R+64|0;o=c[p>>2]|0;p=c[p+4>>2]|0;w=0;v=0;h=e[x+48>>1]|0;p:while(1){y=h;while(1){h=y+-1|0;if((y|0)<=0)break p;y=b[(c[q>>2]|0)+(h<<1)>>1]|0;if((y&65535)<63)break;else y=h}Y=ew(1,0,y<<16>>16|0)|0;w=Y|w;v=C|v}if((o&~w|0)==0&(p&~v|0)==0)ua=91}else ua=91;if((ua|0)==91)c[H>>2]=4673;Y=A&65535;b[O+40>>1]=Y;b[O+24>>1]=Y;c[O+28>>2]=x;b[O+20>>1]=39;break l}while(0);if(!(c[H>>2]|0)){ua=103;break k}}else{c[H>>2]=4353;c[c[O+48>>2]>>2]=v;b[O+40>>1]=1;b[O+24>>1]=1;b[O+20>>1]=33}while(0);b[O+22>>1]=1;c[W+800>>2]=O;q=c[W+68>>2]|0;q:do if((q|0)>0){r=0;while(1){if((c[W+(r<<2)+72>>2]|0)==(P|0))break;r=r+1|0;if((r|0)>=(q|0)){r=0;q=0;break q}}r=ew(1,0,r|0)|0;q=C}else{r=0;q=0}while(0);p=O+8|0;c[p>>2]=r;c[p+4>>2]=q;c[W+740>>2]=P;b[W+32>>1]=1;p=c[W+8>>2]|0;if(p)a[W+36>>0]=c[p>>2];if(!(b[V>>1]&1024)){ua=120;break}a[W+40>>0]=1;ua=120}else ua=103;while(0);if((ua|0)==103){D=c[Y>>2]|0;h=c[D+4>>2]|0;E=c[c[D>>2]>>2]|0;W=a[D+41>>0]|0;F=W&255;w=c[S>>2]|0;c[w+48>>2]=w+56;b[w+40>>1]=0;b[w+44>>1]=3;c[w+36>>2]=0;o=E+65|0;r:do if(W<<24>>24){p=w+16|0;q=D+68|0;r=w+8|0;s=0;t=0;u=0;v=0;B=0;A=h+8|0;z=0;while(1){a[p>>0]=B;y=c[A+40>>2]|0;x=c[q>>2]|0;s:do if((x|0)>0){h=0;while(1){if((c[D+(h<<2)+72>>2]|0)==(y|0))break;h=h+1|0;if((h|0)>=(x|0)){h=0;y=0;break s}}h=ew(1,0,h|0)|0;y=C}else{h=0;y=0}while(0);W=r;c[W>>2]=h;c[W+4>>2]=y;W=z;z=a[A+36>>0]|0;W=((z|W)&10)==0;t=W?t:s;v=W?v:u;if(!(a[(c[A+16>>2]|0)+44>>0]&16))h=Du(Y,t,v)|0;else h=Cu(Y,t,v)|0;if(h)break;W=Eu(Y,t,v)|0;h=r;if(W)break;if(a[o>>0]|0)break r;B=B+1|0;if((B|0)>=(F|0))break r;else{s=c[h>>2]|s;u=c[h+4>>2]|u;A=A+72|0}}Fu(E,w);break b}while(0);Fu(E,w);Gu(k,0);if(a[xa>>0]|0)break;if(c[$>>2]|0){Gu(k,(e[k+32>>1]|0)+1&65535);if(!(a[xa>>0]|0))ua=120;else break}else ua=121}if((ua|0)==120?(c[$>>2]|0)==0:0)ua=121;if((ua|0)==121?(c[Ia+24>>2]&131072|0)!=0:0){$=k+24|0;c[$>>2]=-1;c[$+4>>2]=-1}if((c[f+64>>2]|0)==0?(a[xa>>0]|0)==0:0){u=a[ya>>0]|0;t:do if((u&255)>1&(l|0)!=0?(b[_>>1]&1024)==0:0){p=Hu(Ea,l)|0;q=C;o=c[Z>>2]|0;if(o){$=Hu(Ea,o)|0;p=$|p;q=C|q}y=k+736|0;h=c[za>>2]|0;x=c[X>>2]|0;w=x+20|0;x=x+12|0;v=u;o=U;do{r=c[y+(((v&255)+-1|0)*80|0)+64>>2]|0;if(!(a[h+((d[r+16>>0]|0)*72|0)+44>>0]&8))break t;if(aa?(c[r+36>>2]&4096|0)==0:0)break t;t=r+8|0;s=c[t>>2]|0;t=c[t+4>>2]|0;if(!((s&p|0)==0&(t&q|0)==0))break t;r=c[w>>2]|0;$=c[x>>2]|0;u=r+($*48|0)|0;if(($|0)>0)do{$=r+40|0;if(!((s&c[$>>2]|0)==0?(t&c[$+4>>2]|0)==0:0)?(c[(c[r>>2]|0)+4>>2]&1|0)==0:0)break t;r=r+48|0}while(r>>>0<u>>>0);v=v+-1<<24>>24;a[ya>>0]=v;o=o+-1|0}while((v&255)>1)}else o=U;while(0);aa=(c[k>>2]|0)+424|0;c[aa>>2]=(c[aa>>2]|0)+(b[k+32>>1]|0);do if((I&4|0)!=0?(T=(c[k+800>>2]|0)+36|0,Q=c[T>>2]|0,(Q&4096|0)!=0):0){a[k+38>>0]=1;if(a[(c[g+24>>2]|0)+44>>0]&32)break;c[T>>2]=Q&-65}while(0);ta=k+736|0;P=(o|0)>0;if(P){M=I&16;N=k+38|0;O=ea+32|0;J=L^1;L=(n|0)==0|J;K=f+68|0;H=54-(I>>>12&1)|0;G=ea+4|0;B=Ia+20|0;z=Ia+16|0;s=0;I=ta;while(1){A=d[I+44>>0]|0;D=g+(A*72|0)+24|0;q=c[D>>2]|0;h=c[q+68>>2]|0;u:do if(!h)w=-1e6;else{y=c[B>>2]|0;if((y|0)<=0){w=0;break}x=c[z>>2]|0;p=0;while(1){w=p+1|0;if((c[x+(p<<4)+12>>2]|0)==(h|0)){w=p;break u}if((w|0)<(y|0))p=w;else break}}while(0);F=c[I+64>>2]|0;E=q+44|0;h=d[E>>0]|0;do if(!(h&2)){if(c[q+12>>2]|0)break;y=c[F+36>>2]|0;if(y&1024){v=c[q+60>>2]|0;v:do if(!v)v=0;else while(1){if((c[v>>2]|0)==(Ia|0))break v;v=c[v+24>>2]|0;if(!v){v=0;break}}while(0);th(ea,sh(ea,149,c[g+(A*72|0)+48>>2]|0,0,0)|0,v,-10);break}if(h&16)break;if(y&64|M){cs(f,w,c[q+32>>2]|0,0,c[q>>2]|0);break}x=g+(A*72|0)+48|0;if(!(a[N>>0]|0))h=54;else{c[ca>>2]=c[x>>2];h=55}Mq(f,c[x>>2]|0,w,q,h);if(a[N>>0]|0)break;if((b[q+38>>1]|0)>=64)break;if(a[E>>0]&32)break;x=g+(A*72|0)+64|0;v=c[x>>2]|0;x=c[x+4>>2]|0;if((v|0)==0&(x|0)==0)u=0;else{u=0;do{v=iw(v|0,x|0,1)|0;x=C;u=u+1|0}while(!((v|0)==0&(x|0)==0))}th(ea,(c[O>>2]|0)+-1|0,u,-14)}while(0);y=F+36|0;w:do if(c[y>>2]&512){h=c[F+28>>2]|0;do if(a[E>>0]&32){if((a[h+51>>0]&3)!=2|J)break;c[I+8>>2]=c[I+4>>2];break w}while(0);do if(!(a[N>>0]|0)){if(!L){u=n;t=H;break}u=c[K>>2]|0;c[K>>2]=u+1;t=54}else{t=c[(c[D>>2]|0)+8>>2]|0;if((t|0)==0|(t|0)==(h|0))u=n;else{u=n;do{u=u+1|0;t=c[t+20>>2]|0}while(!((t|0)==0|(t|0)==(h|0)))}c[da>>2]=u;t=55}while(0);c[I+8>>2]=u;sh(ea,t,u,c[h+40>>2]|0,w)|0;aa=c[Ha>>2]|0;th(aa,-1,ds(f,h)|0,-6);aa=c[y>>2]|0;if(!((aa&15|0)!=0&(aa&32770|0)==0))break;if(b[Ba>>1]&1)break;r=c[G>>2]|0;if(!r)break;a[r+(((c[O>>2]|0)+-1|0)*20|0)+3>>0]=2}while(0);if((w|0)>-1)wr(f,w);s=s+1|0;if((s|0)==(o|0))break;else I=I+80|0}da=(a[xa>>0]|0)==0;c[k+44>>2]=c[O>>2];if(!da)break}else{O=ea+32|0;c[k+44>>2]=c[O>>2]}if(!P)break a;ha=k+24|0;ia=k+36|0;ja=k+39|0;ka=f+80|0;la=f+68|0;ma=f+100|0;na=f+19|0;oa=f+72|0;pa=Ka+20|0;qa=Ka+4|0;ra=Ka+24|0;q=-1;p=-1;sa=0;while(1){V=ta+(sa*80|0)|0;h=ta+(sa*80|0)+64|0;X=ta+(sa*80|0)+44|0;if(c[(c[h>>2]|0)+36>>2]&16384){H=d[X>>0]|0;R=g+(H*72|0)+8|0;W=c[Ha>>2]|0;v=Kq(f)|0;Y=c[ka>>2]|0;c[ka>>2]=Y+1;Y=sh(v,44,Y,0,0)|0;v=c[g+(H*72|0)+24>>2]|0;da=c[va>>2]|0;y=c[wa>>2]|0;Q=y+(da*48|0)|0;J=c[h>>2]|0;x:do if((da|0)>0){w=g+(H*72|0)+48|0;s=v+4|0;t=J+48|0;D=0;z=0;x=0;r=0;B=0;while(1){A=c[y>>2]|0;da=J;do if((c[da>>2]|0)==0&(c[da+4>>2]|0)==0){if(b[y+20>>1]&2)break;if(c[A+4>>2]&1)break;da=c[w>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[pa>>0]=3;c[Ka>>2]=78;c[qa>>2]=79;c[ra>>2]=da;ns(Ka,A)|0;if(!(a[pa>>0]|0))break;da=c[f>>2]|0;r=os(da,r,Ir(da,A,0,0)|0)|0}while(0);do if(!(Iu(y,R,q,p)|0)){F=D;A=z;h=x}else{A=c[y+12>>2]|0;if((A|0)>63){F=0;E=-2147483648}else{F=ew(1,0,A|0)|0;E=C}if(!(B<<24>>24)){B=c[(c[s>>2]|0)+(A*24|0)>>2]|0;c[Ka>>2]=c[v>>2];c[Ka+4>>2]=B;Zc(284,33960,Ka);B=1}if(!((F&D|0)==0&(E&z|0)==0)){F=D;A=z;h=x;break}h=x+1|0;if(Ju(c[f>>2]|0,J,h)|0)break x;c[(c[t>>2]|0)+(x<<2)>>2]=y;F=F|D;A=E|z}while(0);y=y+48|0;if(y>>>0>=Q>>>0){y=F;ua=207;break}else{D=F;z=A;x=h}}}else{A=0;y=0;h=0;r=0;ua=207}while(0);do if((ua|0)==207){ua=0;s=h&65535;b[J+40>>1]=s;b[J+24>>1]=s;s=J+36|0;c[s>>2]=16961;I=g+(H*72|0)+64|0;K=I;E=c[K+4>>2]|0;K=c[K>>2]&~y;M=E&((A|-2147483648)^2147483647);u=v+38|0;N=b[u>>1]|0;F=N<<16>>16;N=N<<16>>16>63?63:F;P=(N|0)>0;if(P){A=0;do{da=ew(1,0,A|0)|0;h=(((da&K|0)!=0|(C&M|0)!=0)&1)+h|0;A=A+1|0}while((A|0)!=(N|0))}if((E|0)<0)h=h+-63+F|0;L=h+1|0;G=qs(c[f>>2]|0,L&65535,0,La)|0;if(!G)break;c[J+28>>2]=G;c[G>>2]=33992;c[G+12>>2]=v;A=c[wa>>2]|0;if(A>>>0<Q>>>0){h=G+4|0;y=G+32|0;E=0;F=0;x=0;do{do if(Iu(A,R,q,p)|0){D=c[A+12>>2]|0;if((D|0)>63){B=0;z=-2147483648}else{B=ew(1,0,D|0)|0;z=C}if(!((B&E|0)==0&(z&F|0)==0))break;da=c[A>>2]|0;b[(c[h>>2]|0)+(x<<1)>>1]=D;D=Ku(f,c[da+12>>2]|0,c[da+16>>2]|0)|0;if(!D)D=11152;else D=c[D>>2]|0;c[(c[y>>2]|0)+(x<<2)>>2]=D;E=B|E;F=z|F;x=x+1|0}while(0);A=A+48|0}while(A>>>0<Q>>>0)}else x=0;if(P){A=G+4|0;z=G+32|0;h=0;do{da=ew(1,0,h|0)|0;if(!((da&K|0)==0&(C&M|0)==0)){b[(c[A>>2]|0)+(x<<1)>>1]=h;c[(c[z>>2]|0)+(x<<2)>>2]=11152;x=x+1|0}h=h+1|0}while((h|0)!=(N|0))}do if((c[I+4>>2]|0)<0){if((b[u>>1]|0)<=63)break;h=G+4|0;y=G+32|0;w=63;do{b[(c[h>>2]|0)+(x<<1)>>1]=w;c[(c[y>>2]|0)+(x<<2)>>2]=11152;x=x+1|0;w=w+1|0}while((w|0)<(b[u>>1]|0))}while(0);b[(c[G+4>>2]|0)+(x<<1)>>1]=-1;c[(c[G+32>>2]|0)+(x<<2)>>2]=11152;A=c[la>>2]|0;c[la>>2]=A+1;y=ta+(sa*80|0)+8|0;c[y>>2]=A;sh(W,56,A,L,0)|0;A=c[Ha>>2]|0;th(A,-1,ds(f,G)|0,-6);c[ma>>2]=(c[ma>>2]|0)+1;A=ta+(sa*80|0)+4|0;t=sh(W,108,c[A>>2]|0,0,0)|0;x=(r|0)!=0;if(x){w=ts(W)|0;ct(f,r,w,16);c[s>>2]=c[s>>2]|131072}else w=0;h=a[na>>0]|0;if(!(h<<24>>24)){s=(c[oa>>2]|0)+1|0;c[oa>>2]=s}else{s=h+-1<<24>>24;a[na>>0]=s;s=c[f+((s&255)<<2)+24>>2]|0}Lt(f,G,c[A>>2]|0,s,0,0,0,0)|0;sh(W,110,c[y>>2]|0,s,0)|0;z=W+4|0;h=c[z>>2]|0;if(h)a[h+(((c[W+32>>2]|0)+-1|0)*20|0)+3>>0]=16;if(x){y=c[W+24>>2]|0;x=~w;do if((w|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[W+32>>2]}while(0);c[y+88>>2]=(c[W+32>>2]|0)+-1}sh(W,9,c[A>>2]|0,t+1|0,0)|0;h=c[z>>2]|0;y=c[W+32>>2]|0;if(h)a[h+((y+-1|0)*20|0)+3>>0]=3;if(y>>>0>t>>>0)c[h+(t*20|0)+8>>2]=y;h=W+24|0;c[(c[h>>2]|0)+88>>2]=y+-1;Wr(f,s);Zt(f);u=c[W+32>>2]|0;if(u>>>0>Y>>>0)c[(c[z>>2]|0)+(Y*20|0)+8>>2]=u;c[(c[h>>2]|0)+88>>2]=u+-1}while(0);Ck(c[f>>2]|0,r);if(a[xa>>0]|0)break b}Lu(f,g,V,sa,d[X>>0]|0,m);c[ta+(sa*80|0)+32>>2]=c[O>>2];ga=c[k>>2]|0;L=ga+8|0;ca=c[L>>2]|0;ea=c[ga>>2]|0;r=k+(sa*80|0)+736|0;K=c[k+(sa*80|0)+800>>2]|0;$=k+(sa*80|0)+780|0;H=d[$>>0]|0;F=c[za>>2]|0;N=F+(H*72|0)+8|0;n=c[F+(H*72|0)+48>>2]|0;y=c[Ea>>2]|0;y:do if((y|0)>0){h=0;while(1){if((c[Ea+(h<<2)+4>>2]|0)==(n|0))break;h=h+1|0;if((h|0)>=(y|0)){h=-1;y=-1;break y}}h=ew(1,0,h|0)|0;h=~h;y=~C}else{h=-1;y=-1}while(0);fa=k+(sa*80|0)+808|0;M=fa;c[M>>2]=h&q;c[M+4>>2]=y&p;M=ha;M=iw(c[M>>2]|0,c[M+4>>2]|0,sa|0)|0;_=M&1;T=K+36|0;if(!(c[T>>2]&64))v=0;else v=(b[Ba>>1]&32)==0;G=ts(ca)|0;P=k+(sa*80|0)+752|0;c[P>>2]=G;aa=k+(sa*80|0)+748|0;c[aa>>2]=G;da=ts(ca)|0;c[k+(sa*80|0)+760>>2]=da;do if(a[$>>0]|0){if(!(a[F+(H*72|0)+44>>0]&8))break;Z=ga+72|0;l=(c[Z>>2]|0)+1|0;c[Z>>2]=l;c[r>>2]=l;sh(ca,25,0,l,0)|0}while(0);A=a[F+(H*72|0)+45>>0]|0;z:do if(!(A&4)){D=c[T>>2]|0;if(D&1024){s=b[K+40>>1]|0;t=s&65535;v=ga+100|0;c[v>>2]=(c[v>>2]|0)+1;v=t+2|0;G=ga+60|0;h=c[G>>2]|0;H=ga+56|0;y=c[H>>2]|0;if((y|0)<(v|0)){$=ga+72|0;u=c[$>>2]|0;c[$>>2]=u+v;u=u+1|0}else{c[G>>2]=h+v;c[H>>2]=y-v;u=h}h=c[aa>>2]|0;B=s<<16>>16==0;if(!B){E=u+2|0;D=K+48|0;F=0;do{A=E+F|0;z=c[(c[D>>2]|0)+(F<<2)>>2]|0;do if(z)if(!(b[z+18>>1]&1)){Nq(ga,c[(c[z>>2]|0)+16>>2]|0,A);break}else{Mu(ga,z,r,F,_,A)|0;h=c[P>>2]|0;break}while(0);F=F+1|0}while((F|0)<(t|0))}sh(ca,25,c[K+24>>2]|0,u,0)|0;sh(ca,25,t,u+1|0,0)|0;_=c[K+32>>2]|0;aa=K+28|0;$=(a[aa>>0]|0)!=0?-11:-2;th(ca,sh(ca,14,n,h,u)|0,_,$);a[aa>>0]=0;if(!B){w=K+30|0;x=K+48|0;h=(s&65535)>1?0-t|0:-1;h=h>>>0>4294967280?0-h|0:16;y=0;do{if(e[w>>1]&1<<y)Nu(r,c[(c[x>>2]|0)+(y<<2)>>2]|0);y=y+1|0}while((y|0)!=(h|0))}a[k+(sa*80|0)+781>>0]=-105;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=c[ca+32>>2];$s(ga,u,v);if((c[H>>2]|0)<(v|0)){c[H>>2]=v;c[G>>2]=u}Zt(ga);ua=459;break}if(!((D&256|0)==0|(D&5|0)==0)){v=c[c[K+48>>2]>>2]|0;aa=ga+72|0;x=(c[aa>>2]|0)+1|0;c[aa>>2]=x;v=Mu(ga,v,r,0,_,x)|0;if((v|0)!=(x|0))Wr(ga,x);ua=c[P>>2]|0;sh(ca,38,v,ua,0)|0;sh(ca,70,n,ua,v)|0;$s(ga,v,1);Ou(ga,n,-1,v);a[k+(sa*80|0)+781>>0]=-100;ua=459;break}if((D&258|0)==258){if(!(D&32)){h=0;x=0}else{h=1;x=c[c[K+48>>2]>>2]|0}if(!(D&16))h=0;else h=c[(c[K+48>>2]|0)+(h<<2)>>2]|0;y=(_|0)!=0;w=y?x:h;h=y?h:x;if(!h)sh(ca,y?105:108,n,G,0)|0;else{$=c[h>>2]|0;aa=Xt(ga,c[$+16>>2]|0,Ka)|0;sh(ca,d[33536+((d[$>>0]|0)+-80)>>0]|0,n,G,aa)|0;$s(ga,aa,1);Wr(ga,c[Ka>>2]|0);Nu(r,h)}if(!w){h=0;y=156}else{aa=c[w>>2]|0;$=ga+72|0;h=(c[$>>2]|0)+1|0;c[$>>2]=h;Nq(ga,c[aa+16>>2]|0,h);aa=a[aa>>0]|0;if(aa<<24>>24==80|aa<<24>>24==82)y=_<<1^83;else y=_<<1|80;Nu(r,w)}x=ca+32|0;aa=c[x>>2]|0;a[k+(sa*80|0)+781>>0]=_^9;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=aa;if((y|0)==156){ua=459;break}aa=ga+72|0;u=(c[aa>>2]|0)+1|0;c[aa>>2]=u;sh(ca,103,n,u,0)|0;Ou(ga,n,-1,u);sh(ca,y,h,G,u)|0;u=c[ca+4>>2]|0;if(!u){ua=459;break}a[u+(((c[x>>2]|0)+-1|0)*20|0)+3>>0]=83;ua=459;break}if(D&512){L=b[K+24>>1]|0;a[Ja>>0]=0;S=c[K+28>>2]|0;U=c[k+(sa*80|0)+744>>2]|0;do if(!(b[Ba>>1]&1)){E=0;A=0}else{if((a[ia>>0]|0)<=0){E=0;A=0;break}A=(e[S+46>>1]|0)>(L&65535);E=A&1;A=A&1}while(0);h=L&65535;if(!(D&32)){F=h;H=0}else{F=h+1|0;A=1;H=c[(c[K+48>>2]|0)+(h<<2)>>2]|0}do if(!(D&16))z=0;else{z=c[(c[K+48>>2]|0)+(F<<2)>>2]|0;if(b[z+20>>1]&256){$=ga+72|0;aa=(c[$>>2]|0)+1|0;c[$>>2]=aa;c[k+(sa*80|0)+772>>2]=aa;sh(ca,25,(a[(c[S+28>>2]|0)+h>>0]|0)==1^_,aa,0)|0;c[k+(sa*80|0)+776>>2]=c[ca+32>>2]}if(H){A=1;break}A=b[(c[S+4>>2]|0)+(h<<1)>>1]|0;if(A<<16>>16<=-1){A=1;break}E=(a[(c[(c[S+12>>2]|0)+4>>2]|0)+((A<<16>>16)*24|0)+20>>0]|0)==0?1:E;A=1}while(0);J=Pu(ga,r,_,A,La)|0;I=c[La>>2]|0;G=(I|0)==0;if(!G)a[Ja>>0]=a[I+h>>0]|0;K=c[P>>2]|0;B=b[S+46>>1]|0;if((L&65535)<(B&65535)?!((a[(c[S+28>>2]|0)+h>>0]|0)==0^((M&1|0)!=0|0!=0)):0)ua=318;else if((_|0)!=0?B<<16>>16==L<<16>>16:0)ua=318;else{N=E;E=0;M=z;P=H}if((ua|0)==318){N=0;M=H;P=z}z=(P|0)!=0;if(z)B=(b[P+18>>1]&40)!=0;else B=1;D=B&1;H=(M|0)!=0;if(H)F=(b[M+18>>1]&40)!=0;else F=1;A=F&1;F=(z|L<<16>>16!=0)&1;do if(z){y=c[(c[P>>2]|0)+16>>2]|0;z=J+h|0;Nq(ga,y,z);if(b[P+20>>1]&256){if(!(a[(c[ca>>2]|0)+65>>0]|0))B=(c[ca+4>>2]|0)+(((c[ca+32>>2]|0)+-1|0)*20|0)|0;else B=29120;c[B+12>>2]=c[k+(sa*80|0)+772>>2];a[B+3>>0]=1}if(Qu(y)|0)sh(ca,76,z,K,0)|0;do if(!G){B=I+h|0;if((xu(y,a[B>>0]|0)|0)<<24>>24==65){a[B>>0]=65;z=65}else z=a[B>>0]|0;if(!(Ru(y,z)|0))break;a[B>>0]=65}while(0);B=h+1|0}else{if(!(N<<24>>24)){B=h;break}sh(ca,28,0,J+h|0,0)|0;B=h+1|0;D=0;F=1}while(0);Su(ga,J,B-(N&255)|0,I);th(ca,sh(ca,d[33544+(F<<2|_|D<<1)>>0]|0,U,K,J)|0,B,-14);do if(H){y=c[(c[M>>2]|0)+16>>2]|0;x=J+h|0;$s(ga,x,1);Nq(ga,y,x);if(b[M+20>>1]&256){if(!(a[(c[ca>>2]|0)+65>>0]|0))z=(c[ca+4>>2]|0)+(((c[ca+32>>2]|0)+-1|0)*20|0)|0;else z=29120;c[z+12>>2]=c[k+(sa*80|0)+772>>2];a[z+3>>0]=1}if(Qu(y)|0)sh(ca,76,x,K,0)|0;do if((xu(y,a[Ja>>0]|0)|0)<<24>>24!=65){if(Ru(y,a[Ja>>0]|0)|0)break;Su(ga,x,1,Ja)}while(0);h=h+1|0}else{if(!(E<<24>>24))break;sh(ca,28,0,J+h|0,0)|0;A=0;h=h+1|0}while(0);ig(ea,I);c[k+(sa*80|0)+788>>2]=c[ca+32>>2];if(h)th(ca,sh(ca,d[33552+(A|_<<1)>>0]|0,U,K,J)|0,h,-14);Nu(r,P);Nu(r,M);do if(!v){h=c[S+12>>2]|0;if(!(a[h+44>>0]&32)){$=ga+72|0;aa=(c[$>>2]|0)+1|0;c[$>>2]=aa;sh(ca,112,U,aa,0)|0;Ou(ga,n,-1,aa);sh(ca,66,n,aa,0)|0;break}if((n|0)==(U|0))break;h=c[h+8>>2]|0;A:do if(!h)A=0;else while(1){if((a[h+51>>0]&3)==2){A=h;break A}h=c[h+20>>2]|0;if(!h){A=0;break}}while(0);F=A+46|0;t=b[F>>1]|0;h=t&65535;y=ga+60|0;x=c[y>>2]|0;w=ga+56|0;s=c[w>>2]|0;if((s|0)<(h|0)){aa=ga+72|0;x=c[aa>>2]|0;c[aa>>2]=x+h;x=x+1|0}else{c[y>>2]=x+h;c[w>>2]=s-h}if(t<<16>>16){s=A+4|0;t=S+48|0;w=S+4|0;B=0;do{A=b[(c[s>>2]|0)+(B<<1)>>1]|0;h=b[t>>1]|0;B:do if(!(h<<16>>16))h=-1;else{z=c[w>>2]|0;y=h&65535;h=0;while(1){if((b[z+(h<<1)>>1]|0)==A<<16>>16)break B;h=h+1|0;if((h|0)>=(y|0)){h=-1;break}}}while(0);sh(ca,47,U,h<<16>>16,B+x|0)|0;B=B+1|0;h=e[F>>1]|0}while((B|0)<(h|0))}th(ca,sh(ca,68,n,da,x)|0,h,-14)}while(0);x=c[T>>2]|0;do if(!(x&4096)){w=k+(sa*80|0)+781|0;if(!_){a[w>>0]=9;break}else{a[w>>0]=8;break}}else a[k+(sa*80|0)+781>>0]=-100;while(0);c[k+(sa*80|0)+784>>2]=U;a[k+(sa*80|0)+782>>0]=x>>>16&1;if(x&15){ua=459;break}a[k+(sa*80|0)+783>>0]=1;ua=459;break}if(!(D&8192))if(!(A&8)){a[k+(sa*80|0)+781>>0]=a[33560+_>>0]|0;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=(sh(ca,d[33568+_>>0]|0,n,G,0)|0)+1;a[k+(sa*80|0)+783>>0]=1;ua=459;break}else{a[k+(sa*80|0)+781>>0]=-100;ua=459;break}G=ga+68|0;Z=c[G>>2]|0;c[G>>2]=Z+1;X=ga+72|0;Y=(c[X>>2]|0)+1|0;c[X>>2]=Y;_=ts(ca)|0;W=c[F+(H*72|0)+24>>2]|0;l=c[c[K+48>>2]>>2]|0;P=c[l+12>>2]|0;a[k+(sa*80|0)+781>>0]=18;c[k+(sa*80|0)+784>>2]=Y;A=a[ya>>0]|0;do if((A&255)>1){F=(A&255)-sa|0;D=F+-1|0;B=ih(ea,(D*72|0)+80|0,0)|0;if(!B)break z;A=F&255;c[B+4>>2]=A;c[B>>2]=A;A=B+8|0;H=A+0|0;z=N+0|0;h=H+72|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));E=c[za>>2]|0;if((F|0)<2){V=B;break}else F=1;while(1){H=A+(F*72|0)+0|0;z=E+((d[k+((F+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;h=H+72|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));if((F|0)<(D|0))F=F+1|0;else{V=B;break}}}else V=c[za>>2]|0;while(0);if(!(b[Ba>>1]&8)){if(!(a[W+44>>0]&32)){A=(c[X>>2]|0)+1|0;c[X>>2]=A;sh(ca,28,0,A,0)|0}else{A=c[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((a[A+51>>0]&3)==2)break C;A=c[A+20>>2]|0;if(!A){A=0;break}}while(0);U=c[G>>2]|0;c[G>>2]=U+1;sh(ca,57,U,e[A+46>>1]|0,0)|0;T=c[L>>2]|0;th(T,-1,ds(ga,A)|0,-6);A=U}T=(c[X>>2]|0)+1|0;c[X>>2]=T}else{T=0;A=0}U=sh(ca,25,0,Y,0)|0;z=c[va>>2]|0;do if((z|0)>1){B=0;F=0;do{E=c[wa>>2]|0;S=E+(B*48|0)|0;D=c[S>>2]|0;do if((S|0)!=(l|0)){if(c[D+4>>2]&1)break;if(b[E+(B*48|0)+20>>1]&2)break;if(!(b[E+(B*48|0)+18>>1]&4095))break;F=os(ea,F,Ir(ea,D,0,0)|0)|0;z=c[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=F;if(!z){S=0;break}S=Vq(ga,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((c[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;s=W+44|0;w=ca+32|0;x=ca+4|0;z=ca+24|0;B=W+8|0;D=ga+60|0;E=ga+56|0;F=S+12|0;Q=0;y=0;h=0;v=240;while(1){H=c[u>>2]|0;if((c[H+(Q*48|0)+8>>2]|0)!=(n|0)?(b[H+(Q*48|0)+18>>1]&512)==0:0)H=v;else ua=407;do if((ua|0)==407){ua=0;H=c[H+(Q*48|0)>>2]|0;do if(!t){if(c[H+4>>2]&1)break;c[F>>2]=H;H=S}while(0);I=Rs(ga,V,H,0,0,v,Z)|0;if(!I){H=v;break}Lu(ga,V,I+736|0,sa,d[$>>0]|0,0);do if(!(b[Ba>>1]&8)){L=(Q|0)==((c[R>>2]|0)+-1|0)?-1:Q;do if(!(a[s>>0]&32)){G=sh(ca,130,A,0,_s(ga,W,-1,n,T,0)|0)|0;th(ca,G,L,-14)}else{H=c[B>>2]|0;D:do if(!H)H=0;else while(1){if((a[H+51>>0]&3)==2)break D;H=c[H+20>>2]|0;if(!H){H=0;break}}while(0);M=b[H+46>>1]|0;J=M&65535;P=c[D>>2]|0;N=c[E>>2]|0;if((N|0)<(J|0)){K=c[X>>2]|0;c[X>>2]=K+J;K=K+1|0}else{c[D>>2]=P+J;c[E>>2]=N-J;K=P}if(M<<16>>16){N=H+4|0;P=0;do{_s(ga,W,b[(c[N>>2]|0)+(P<<1)>>1]|0,n,P+K|0,0)|0;P=P+1|0}while((P|0)<(J|0))}P=(L|0)!=0;if(P){G=sh(ca,69,A,0,K)|0;th(ca,G,J,-14);if((L|0)>-1)ua=426}else{G=0;ua=426}do if((ua|0)==426){ua=0;sh(ca,49,K,J,T)|0;sh(ca,110,A,T,0)|0;if(!P)break;L=c[x>>2]|0;if(!L)break;a[L+(((c[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);$s(ga,K,J);if((c[E>>2]|0)>=(J|0))break;c[E>>2]=J;c[D>>2]=K}while(0);sh(ca,17,Y,_,0)|0;if(!G)break;H=c[w>>2]|0;if(H>>>0>G>>>0)c[(c[x>>2]|0)+(G*20|0)+8>>2]=H;c[(c[z>>2]|0)+88>>2]=H+-1}else sh(ca,17,Y,_,0)|0;while(0);h=(a[I+39>>0]|0)==0?h:1;H=c[I+800>>2]|0;do if(!(c[H+36>>2]&512)){y=0;H=v}else{if((Q|0)!=0?(c[H+28>>2]|0)!=(y|0):0){y=0;H=v;break}y=c[H+28>>2]|0;if((a[s>>0]&32)!=0?(a[y+51>>0]&3)==2:0){y=0;H=v;break}H=(v&65535|4096)&65535}while(0);Ts(I)}while(0);Q=Q+1|0;if((Q|0)>=(c[R>>2]|0))break;else v=H}c[k+(sa*80|0)+792>>2]=y;if(!y){s=h;break}c[k+(sa*80|0)+744>>2]=Z;s=h}else{c[k+(sa*80|0)+792>>2]=0;s=0}while(0);if(S){c[S+12>>2]=0;Ck(ea,S)}w=ca+32|0;h=c[w>>2]|0;if(h>>>0>U>>>0)c[(c[ca+4>>2]|0)+(U*20|0)+4>>2]=h;sh(ca,16,0,c[aa>>2]|0,0)|0;y=c[ca+24>>2]|0;x=~_;do if((_|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[w>>2]}while(0);c[y+88>>2]=(c[w>>2]|0)+-1;if((d[ya>>0]|0)>1)ig(ea,V);if(s){ua=459;break}Nu(r,l);ua=459}else{ua=c[F+(H*72|0)+36>>2]|0;sh(ca,20,ua,0,c[F+(H*72|0)+32>>2]|0)|0;c[k+(sa*80|0)+788>>2]=sh(ca,22,ua,G,0)|0;a[k+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;h=c[va>>2]|0;do if((h|0)>0){u=k+(sa*80|0)+772|0;v=ca+32|0;z=ca+4|0;A=ca+24|0;t=c[wa>>2]|0;while(1){s=t+20|0;y=b[s>>1]|0;do if(!(y&6)){aa=t+40|0;$=fa;if(!((c[$>>2]&c[aa>>2]|0)==0?(c[$+4>>2]&c[aa+4>>2]|0)==0:0)){a[ja>>0]=1;break}x=c[t>>2]|0;if((c[r>>2]|0)!=0?(c[x+4>>2]&1|0)==0:0)break;do if(!(y&512))ct(ga,x,da,16);else{w=sh(ca,46,c[u>>2]|0,0,0)|0;ct(ga,x,da,16);if(!w)break;y=c[v>>2]|0;if(y>>>0>w>>>0)c[(c[z>>2]|0)+(w*20|0)+8>>2]=y;c[(c[A>>2]|0)+88>>2]=y+-1}while(0);b[s>>1]=e[s>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else t=t+48|0}u=c[va>>2]|0;if((u|0)<=0){ua=475;break}w=c[wa>>2]|0;while(1){do if(!(b[w+20>>1]&6)){if((b[w+18>>1]|0)!=1026)break;if((c[w+8>>2]|0)!=(n|0))break;if(c[r>>2]|0)break;y=c[w>>2]|0;h=Bu(Fa,n,c[w+12>>2]|0,q,p,3,0)|0;if(!h)break;if(b[h+20>>1]&4)break;x=ih(ea,48,0)|0;if(!x)break;H=x+0|0;z=(c[h>>2]|0)+0|0;h=H+48|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));c[x+12>>2]=c[y+12>>2];ct(ga,x,da,16);ig(ea,x)}while(0);u=u+-1|0;if((u|0)<=0)break;else w=w+48|0}}else ua=475;while(0);if((ua|0)==475)ua=0;r=c[r>>2]|0;do if(r){c[k+(sa*80|0)+764>>2]=c[ca+32>>2];sh(ca,25,1,r,0)|0;Ys(ga);r=c[va>>2]|0;if((r|0)<=0)break;u=0;t=c[wa>>2]|0;while(1){q=t+20|0;do if(!(b[q>>1]&6)){ca=t+40|0;aa=fa;if(!((c[aa>>2]&c[ca>>2]|0)==0?(c[aa+4>>2]&c[ca+4>>2]|0)==0:0))break;ct(ga,c[t>>2]|0,da,16);b[q>>1]=e[q>>1]|4;r=c[va>>2]|0}while(0);u=u+1|0;if((u|0)>=(r|0))break;else t=t+48|0}}while(0);p=fa;q=c[p>>2]|0;p=c[p+4>>2]|0}c[Aa>>2]=c[ta+(sa*80|0)+24>>2];sa=sa+1|0;if((sa|0)>=(o|0))break a}}}while(0);if(Ga)k=0;else{c[Ca>>2]=c[Da>>2];Tu(Ia,k);k=0}}else{c[Ka>>2]=64;ph(f,33504,Ka);k=0}while(0);i=Ma;return k|0}function Ss(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=fw(a|0,b|0,-2,-1)|0;d=C}else{c=((a|0)!=0)<<31>>31;c=fw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=C}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=fw(c|0,d|0,8,0)|0;a=iw(b|0,C|0,3-a|0)|0;b=C;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=fw(c|0,d|0,8,0)|0;a=ew(b|0,C|0,a+-3|0)|0;b=C}}else{b=0;a=1}while(0);C=b;return a|0}function Ts(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;C=c[e>>2]|0;D=c[C+8>>2]|0;F=c[e+4>>2]|0;G=c[C>>2]|0;Ys(C);H=e+41|0;g=a[H>>0]|0;if(!(g<<24>>24))f=D+24|0;else{f=D+24|0;p=D+32|0;r=D+4|0;o=g&255;do{o=o+-1|0;i=c[e+(o*80|0)+800>>2]|0;A=c[e+(o*80|0)+760>>2]|0;g=c[f>>2]|0;h=~A;if((A|0)<0?(s=c[g+112>>2]|0,(s|0)!=0):0)c[s+(h<<2)>>2]=c[p>>2];c[g+88>>2]=(c[p>>2]|0)+-1;B=e+(o*80|0)+781|0;h=a[B>>0]|0;if(h<<24>>24!=-100?(sh(D,h&255,c[e+(o*80|0)+784>>2]|0,c[e+(o*80|0)+788>>2]|0,d[e+(o*80|0)+782>>0]|0)|0,u=c[r>>2]|0,(u|0)!=0):0)a[u+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=a[e+(o*80|0)+783>>0]|0;t=i+36|0;if((c[t>>2]&2048|0)!=0?(v=e+(o*80|0)+792|0,w=c[v>>2]|0,(w|0)>0):0){A=c[e+(o*80|0)+752>>2]|0;k=c[f>>2]|0;h=~A;if((A|0)<0?(x=c[k+112>>2]|0,(x|0)!=0):0){c[x+(h<<2)>>2]=c[p>>2];l=c[v>>2]|0;j=c[p>>2]|0;c[k+88>>2]=j+-1;g=e+(o*80|0)+796|0;if((l|0)>0)I=16}else{j=c[p>>2]|0;c[k+88>>2]=j+-1;g=e+(o*80|0)+796|0;l=w;I=16}if((I|0)==16){I=0;h=k;n=l;m=(c[g>>2]|0)+((l+-1|0)*12|0)|0;while(1){l=m+4|0;k=c[l>>2]|0;i=k+1|0;if(j>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=j;c[h+88>>2]=j+-1;sh(D,d[m+8>>0]|0,c[m>>2]|0,k,0)|0;l=(c[l>>2]|0)+-1|0;j=c[p>>2]|0;if(j>>>0>l>>>0)c[(c[r>>2]|0)+(l*20|0)+8>>2]=j;h=c[f>>2]|0;c[h+88>>2]=j+-1;n=n+-1|0;if((n|0)<=0)break;else m=m+-12|0}}ig(G,c[g>>2]|0)}A=c[e+(o*80|0)+748>>2]|0;i=c[f>>2]|0;h=~A;if((A|0)<0?(q=c[i+112>>2]|0,(q|0)!=0):0)c[q+(h<<2)>>2]=c[p>>2];h=c[p>>2]|0;c[i+88>>2]=h+-1;i=e+(o*80|0)+756|0;g=c[i>>2]|0;if(g){sh(D,16,0,g,0)|0;i=c[i>>2]|0;h=c[p>>2]|0;if(h>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=h;j=h+-1|0;g=(c[f>>2]|0)+88|0;c[g>>2]=j;i=i+-2|0;if(h>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=h;c[g>>2]=j}i=c[e+(o*80|0)+776>>2]|0;if(i){if(!(a[(c[D>>2]|0)+65>>0]|0))h=(c[r>>2]|0)+((((i|0)<1?h:i)+-1|0)*20|0)|0;else h=29120;sh(D,(c[h+4>>2]|0)==0?141:140,c[e+(o*80|0)+772>>2]|0,i,0)|0}g=c[e+(o*80|0)+736>>2]|0;if(g){j=sh(D,137,g,0,0)|0;g=c[t>>2]|0;if(!(g&64)){sh(D,104,c[F+(o*72|0)+48>>2]|0,0,0)|0;g=c[t>>2]|0}if(g&512)sh(D,104,c[e+(o*80|0)+744>>2]|0,0,0)|0;g=c[e+(o*80|0)+764>>2]|0;if((a[B>>0]|0)==18)sh(D,17,c[e+(o*80|0)+784>>2]|0,g,0)|0;else sh(D,16,0,g,0)|0;g=c[p>>2]|0;if(g>>>0>j>>>0)c[(c[r>>2]|0)+(j*20|0)+8>>2]=g;c[(c[f>>2]|0)+88>>2]=g+-1}}while((o|0)>0)}A=c[e+52>>2]|0;g=c[f>>2]|0;f=~A;if((A|0)<0?(y=c[g+112>>2]|0,(y|0)!=0):0)c[y+(f<<2)>>2]=c[D+32>>2];B=D+32|0;c[g+88>>2]=(c[B>>2]|0)+-1;if(a[H>>0]|0){u=e+34|0;v=e+38|0;w=e+64|0;x=G+65|0;y=D+4|0;z=0;A=e+736|0;while(1){i=d[A+44>>0]|0;j=c[F+(i*72|0)+24>>2]|0;h=c[A+64>>2]|0;if((a[F+(i*72|0)+45>>0]&4)!=0?(a[x>>0]|0)==0:0){k=c[B>>2]|0;h=c[A+32>>2]|0;if(!(a[(c[D>>2]|0)+65>>0]|0))g=(c[y>>2]|0)+(((h|0)<0?k+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(k|0)){l=c[A+4>>2]|0;j=F+(i*72|0)+40|0;i=g;while(1){g=i+4|0;do if((c[g>>2]|0)==(l|0)){f=a[i>>0]|0;if(f<<24>>24==47){a[i>>0]=33;s=i+8|0;c[g>>2]=(c[j>>2]|0)+(c[s>>2]|0);t=i+12|0;c[s>>2]=c[t>>2];c[t>>2]=0;break}else if(f<<24>>24==103){a[i>>0]=28;c[g>>2]=0;c[i+12>>2]=0;break}else break}while(0);h=h+1|0;if((h|0)==(k|0))break;else i=i+20|0}}}else I=64;do if((I|0)==64){I=0;t=j+44|0;if(((a[t>>0]&2)==0?(c[j+12>>2]|0)==0:0)?(b[u>>1]&16)==0:0){g=c[h+36>>2]|0;if((a[v>>0]|0)==0&(g&64|0)==0)sh(D,61,c[F+(i*72|0)+48>>2]|0,0,0)|0;if((g&17152|0)==512?(E=c[A+8>>2]|0,(E|0)!=(c[w>>2]|0)):0)sh(D,61,E,0,0)|0}g=c[h+36>>2]|0;if(!(g&576)){if(!(g&8192))break;g=A+56|0}else g=h+28|0;h=c[g>>2]|0;if((h|0)!=0?(a[x>>0]|0)==0:0){r=c[B>>2]|0;l=c[A+32>>2]|0;if(!(a[(c[D>>2]|0)+65>>0]|0))k=(c[y>>2]|0)+(((l|0)<0?r+-1|0:l)*20|0)|0;else k=29120;if((l|0)<(r|0)){s=h+48|0;p=h+4|0;q=A+8|0;o=j+8|0;f=c[A+4>>2]|0;g=k;while(1){h=g+4|0;a:do if((c[h>>2]|0)==(f|0)){k=a[g>>0]|0;if(k<<24>>24==103){c[h>>2]=c[q>>2];a[g>>0]=112;break}else if(k<<24>>24!=47)break;i=g+8|0;k=c[i>>2]|0;if(a[t>>0]&32){j=o;while(1){j=c[j>>2]|0;if((a[j+51>>0]&3)==2)break;else j=j+20|0}k=b[(c[j+4>>2]|0)+(k<<1)>>1]|0}n=k&65535;k=b[s>>1]|0;if(k<<16>>16){j=c[p>>2]|0;m=k&65535;k=0;while(1){if((b[j+(k<<1)>>1]|0)==n<<16>>16)break;k=k+1|0;if((k|0)>=(m|0))break a}if((k&65535)<<16>>16>-1){c[i>>2]=k<<16>>16;c[h>>2]=c[q>>2]}}}while(0);l=l+1|0;if((l|0)==(r|0))break;else g=g+20|0}}}}while(0);z=z+1|0;if((z|0)>=(d[H>>0]|0))break;else A=A+80|0}}c[C+424>>2]=c[e+56>>2];Tu(G,e);return}function Us(a,b){a=a|0;b=b|0;var d=0,e=0;if((b|0)!=0?(c[b>>2]|0)>0:0){d=0;e=c[b+4>>2]|0;while(1){Uu(a,c[e>>2]|0);d=d+1|0;if((d|0)>=(c[b>>2]|0))break;else e=e+20|0}}return}function Vs(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;h=c[e+24>>2]|0;s=c[h>>2]|0;m=c[h+4>>2]|0;t=c[h+12>>2]|0;g=d[f>>0]|0;a:do if((g|0)==154|(g|0)==156)if((m|0)!=0?(l=c[m>>2]|0,(l|0)>0):0){p=f+28|0;o=c[p>>2]|0;g=0;h=m+8|0;while(1){if((o|0)==(c[h+40>>2]|0))break;g=g+1|0;if((g|0)>=(l|0)){e=1;break a}else h=h+72|0}n=t+28|0;k=t+32|0;h=c[k>>2]|0;b:do if((h|0)>0){m=f+32|0;e=0;l=c[n>>2]|0;while(1){if((c[l+4>>2]|0)==(o|0)?(c[l+8>>2]|0)==(b[m>>1]|0):0)break b;e=e+1|0;if((e|0)<(h|0))l=l+24|0;else break}}else e=0;while(0);c:do if((e|0)>=(h|0)){h=Dt(c[s>>2]|0,c[n>>2]|0,24,k,r)|0;c[n>>2]=h;e=c[r>>2]|0;if((e|0)>-1){c[h+(e*24|0)>>2]=c[f+44>>2];k=c[p>>2]|0;c[h+(e*24|0)+4>>2]=k;l=b[f+32>>1]|0;c[h+(e*24|0)+8>>2]=l<<16>>16;p=s+72|0;m=(c[p>>2]|0)+1|0;c[p>>2]=m;c[h+(e*24|0)+16>>2]=m;m=h+(e*24|0)+12|0;c[m>>2]=-1;c[h+(e*24|0)+20>>2]=f;h=c[t+24>>2]|0;d:do if((h|0)!=0?(q=c[h>>2]|0,(q|0)>0):0){g=0;h=c[h+4>>2]|0;while(1){p=c[h>>2]|0;if(((a[p>>0]|0)==-102?(c[p+28>>2]|0)==(k|0):0)?(b[p+32>>1]|0)==l<<16>>16:0)break;g=g+1|0;if((g|0)>=(q|0))break d;else h=h+20|0}c[m>>2]=g;if((g|0)>=0)break c}while(0);p=t+12|0;q=c[p>>2]|0;c[p>>2]=q+1;c[m>>2]=q}}while(0);c[f+40>>2]=t;a[f>>0]=-100;b[f+34>>1]=e;e=1}else e=1;else if(((g|0)==155?(b[h+28>>1]&8)==0:0)?(c[e+16>>2]|0)==(d[f+38>>0]|0):0){l=t+40|0;m=t+44|0;g=c[m>>2]|0;e:do if((g|0)>0){e=0;h=c[l>>2]|0;while(1){if(!(yu(c[h>>2]|0,f,-1)|0))break e;e=e+1|0;if((e|0)<(g|0))h=h+16|0;else break}}else e=0;while(0);do if((e|0)>=(g|0)){k=c[s>>2]|0;n=a[k+62>>0]|0;k=Dt(k,c[l>>2]|0,16,m,r)|0;c[l>>2]=k;e=c[r>>2]|0;if((e|0)>-1){c[k+(e<<4)>>2]=f;l=s+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[k+(e<<4)+8>>2]=m;m=c[s>>2]|0;l=c[f+8>>2]|0;if(!l)g=0;else{h=l;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;g=h-l&1073741823}h=c[f+20>>2]|0;if(!h)h=0;else h=c[h>>2]|0;c[k+(e<<4)+4>>2]=Oh(m,l,g,h,n,0)|0;if(!(c[f+4>>2]&16)){c[k+(e<<4)+12>>2]=-1;break}else{p=s+68|0;q=c[p>>2]|0;c[p>>2]=q+1;c[k+(e<<4)+12>>2]=q;break}}}while(0);b[f+34>>1]=e;c[f+40>>2]=t;e=1}else e=0;while(0);i=u;return e|0}function Ws(a,b){a=a|0;b=b|0;return 0}function Xs(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((a[b+450>>0]|0)==2){g=c[b+8>>2]|0;h=c[b>>2]|0;c[e>>2]=d;e=qh(h,35e3,e)|0;th(g,sh(g,157,c[b+464>>2]|0,0,0)|0,e,-1)}i=f;return}function Ys(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=b+19|0;i=0;j=b+116|0;while(1){e=j+12|0;f=c[e>>2]|0;if(f){g=j+6|0;if(a[g>>0]|0){h=a[d>>0]|0;if((h&255)<8){a[d>>0]=h+1<<24>>24;c[b+((h&255)<<2)+24>>2]=f}a[g>>0]=0}c[e>>2]=0}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function Zs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+32|0;if((i|0)>=(j|0))ba();x=z;g=f&255;q=34-(g&1)|0;t=c[d>>2]|0;if(!(a[b+23>>0]|0))f=g&253;if((t|0)>0){h=(f&2)==0;k=b+8|0;l=(q|0)==33;m=x+20|0;n=x+4|0;o=x+24|0;p=0;d=c[d+4>>2]|0;while(1){g=c[d>>2]|0;if(!h?(c[x+0>>2]=0,c[x+4>>2]=0,c[x+8>>2]=0,c[x+12>>2]=0,c[x+16>>2]=0,c[x+20>>2]=0,a[m>>0]=1,c[x>>2]=78,c[n>>2]=79,c[o>>2]=0,ns(x,g)|0,(a[m>>0]|0)!=0):0)Ct(b,g,p+e|0,0);else y=8;do if((y|0)==8?(y=0,r=p+e|0,s=es(b,g,r)|0,(s|0)!=(r|0)):0){f=c[k>>2]|0;if(l){if(!(a[(c[f>>2]|0)+65>>0]|0))g=(c[f+4>>2]|0)+(((c[f+32>>2]|0)+-1|0)*20|0)|0;else g=29120;if(((a[g>>0]|0)==33?(u=g+12|0,v=c[u>>2]|0,((c[g+4>>2]|0)+1+v|0)==(s|0)):0)?(w=v+1|0,(w+(c[g+8>>2]|0)|0)==(r|0)):0){c[u>>2]=w;break}}sh(f,q,s,r,0)|0}while(0);p=p+1|0;if((p|0)==(t|0))break;else d=d+20|0}}i=z;return}function _s(d,e,f,g,h,i){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0;n=c[d+8>>2]|0;j=d+116|0;m=0;k=j;while(1){l=c[k+12>>2]|0;if(((l|0)>0?(c[k>>2]|0)==(g|0):0)?(b[k+4>>1]|0)==(f|0):0){h=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else k=k+20|0}do if((m|0)==5){n=d+104|0;i=c[n>>2]|0;c[n>>2]=i+1;c[k+16>>2]=i;k=0;while(1){if((c[j+12>>2]|0)==(h|0))a[j+6>>0]=0;k=k+1|0;if((k|0)==10)break;else j=j+20|0}}else if((m|0)==10){jt(n,e,g,f,h);if(!(i<<24>>24)){Ou(d,g,f,h);break}j=c[n+4>>2]|0;if(j)a[j+(((c[n+32>>2]|0)+-1|0)*20|0)+3>>0]=i}while(0);return h|0}function $s(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=d+-1+e|0;g=b+19|0;k=0;l=b+116|0;while(1){h=l+12|0;i=c[h>>2]|0;if(!((i|0)<(d|0)|(i|0)>(e|0))){j=l+6|0;if(a[j>>0]|0){f=a[g>>0]|0;if((f&255)<8){a[g>>0]=f+1<<24>>24;c[b+((f&255)<<2)+24>>2]=i}a[j>>0]=0}c[h>>2]=0}k=k+1|0;if((k|0)==10)break;else l=l+20|0}return}function at(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=c[d+8>>2]|0;a[e>>0]=1;s=e+44|0;if((c[s>>2]|0)>0){t=A+4|0;v=d+56|0;w=d+60|0;o=A+24|0;p=A+32|0;q=e+36|0;r=d+72|0;x=0;y=c[e+40>>2]|0;f=0;while(1){k=c[(c[y>>2]|0)+20>>2]|0;if(!k){g=0;i=0}else{g=c[k>>2]|0;i=c[w>>2]|0;h=c[v>>2]|0;if((h|0)<(g|0)){i=c[r>>2]|0;c[r>>2]=i+g;i=i+1|0}else{c[w>>2]=i+g;c[v>>2]=h-g}Zs(d,k,i,1)}h=y+12|0;if((c[h>>2]|0)>-1){n=ts(A)|0;vu(d,c[h>>2]|0,n,1,i)}else n=0;m=y+4|0;h=c[m>>2]|0;if(b[h+2>>1]&32){if((g|0)>0){l=0;k=c[k+4>>2]|0;while(1){h=_t(d,c[k>>2]|0)|0;l=l+1|0;j=(h|0)!=0;if(!((l|0)<(g|0)&(j^1)))break;else k=k+20|0}if(!j)z=15}else z=15;if((z|0)==15){z=0;h=c[(c[d>>2]|0)+8>>2]|0}if(!f)if(!(c[q>>2]|0))f=0;else{f=(c[r>>2]|0)+1|0;c[r>>2]=f}th(A,sh(A,36,f,0,0)|0,h,-4);h=c[m>>2]|0}th(A,sh(A,10,0,i,c[y+8>>2]|0)|0,h,-5);h=c[t>>2]|0;if(h)a[h+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=g;$s(d,i,g);$s(d,i,g);if((c[v>>2]|0)<(g|0)){c[v>>2]=g;c[w>>2]=i}if(n){i=c[o>>2]|0;h=~n;if((n|0)<0?(u=c[i+112>>2]|0,(u|0)!=0):0)c[u+(h<<2)>>2]=c[p>>2];c[i+88>>2]=(c[p>>2]|0)+-1;Ys(d)}x=x+1|0;if((x|0)>=(c[s>>2]|0))break;else y=y+16|0}if(f)i=sh(A,45,f,0,0)|0;else i=0}else i=0;Ys(d);f=e+36|0;if((c[f>>2]|0)>0){g=0;h=c[e+28>>2]|0;while(1){Nq(d,c[h+20>>2]|0,c[h+16>>2]|0);g=g+1|0;if((g|0)>=(c[f>>2]|0))break;else h=h+24|0}}a[e>>0]=0;Ys(d);if(i){f=c[A+32>>2]|0;if(f>>>0>i>>>0)c[(c[A+4>>2]|0)+(i*20|0)+8>>2]=f;c[(c[A+24>>2]|0)+88>>2]=f+-1}return}function bt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[a+8>>2]|0;e=b+44|0;if((c[e>>2]|0)>0){f=0;b=c[b+40>>2]|0;while(1){a=c[(c[b>>2]|0)+20>>2]|0;if(!a)a=0;else a=c[a>>2]|0;g=c[b+4>>2]|0;th(d,sh(d,142,c[b+8>>2]|0,a,0)|0,g,-5);f=f+1|0;if((f|0)>=(c[e>>2]|0))break;else b=b+16|0}}return}function ct(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;o=p;m=c[b+8>>2]|0;c[n>>2]=0;c[o>>2]=0;if(!((m|0)==0|(e|0)==0)){q=d[e>>0]|0;h=q^1;a:do switch(q|0){case 71:{l=ts(m)|0;Vu(b,c[e+12>>2]|0,l,g^16);h=b+100|0;c[h>>2]=(c[h>>2]|0)+1;ct(b,c[e+16>>2]|0,f,g);f=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[f+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[f+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 74:{Wu(b,e,f,0,g);break}case 19:{Vu(b,c[e+12>>2]|0,f,g);break}case 72:{ct(b,c[e+12>>2]|0,f,g);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;ct(b,c[e+16>>2]|0,f,g);Zt(b);break}case 77:case 76:{sh(m,h,Xt(b,c[e+12>>2]|0,n)|0,f,0)|0;break}case 79:case 78:case 83:case 80:case 81:case 82:{q=e+12|0;l=Xt(b,c[q>>2]|0,n)|0;k=e+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[q>>2]|0,c[k>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=Xt(b,c[g>>2]|0,n)|0;k=e+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[g>>2]|0,c[k>>2]|0,(a[e>>0]|0)==73?78:79,l,m,f,128);break}case 75:{if(g){bu(b,e,f,f);break a}k=ts(m)|0;bu(b,e,f,k);h=c[m+24>>2]|0;f=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(f<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}default:{if(iu(e)|0){sh(m,16,0,f,0)|0;break a}if(!(Xu(e)|0))sh(m,46,Xt(b,e,n)|0,f,(g|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function dt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[a+8>>2]|0;g=b+44|0;if((c[g>>2]|0)!=(0-(c[b+32>>2]|0)|0)?(sh(f,28,0,c[b+16>>2]|0,c[b+20>>2]|0)|0,(c[g>>2]|0)>0):0){h=0;e=c[b+40>>2]|0;while(1){b=e+12|0;do if((c[b>>2]|0)>-1){d=c[(c[e>>2]|0)+20>>2]|0;if((d|0)!=0?(c[d>>2]|0)==1:0){d=Qs(a,d,0,0)|0;th(f,sh(f,57,c[b>>2]|0,0,0)|0,d,-6);break}ph(a,34944,k);c[b>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[g>>2]|0))break;else e=e+16|0}}i=l;return}function et(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=sh(a,138,b,0,-1)|0;sh(a,16,0,d,0)|0;b=c[a+32>>2]|0;if(b>>>0>e>>>0)c[(c[a+4>>2]|0)+(e*20|0)+8>>2]=b;c[(c[a+24>>2]|0)+88>>2]=b+-1}return}function ft(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0;if((c[(c[a>>2]|0)+24>>2]&8388608|0)!=0?(h=ws(a,b)|0,(h|0)!=0):0){a=0;b=h;do{if((d[b+8>>0]|0|0)==(e|0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)a=d[b+9>>0]|0|a;b=c[b+32>>2]|0}while((b|0)!=0)}else{a=0;h=0}if(g)c[g>>2]=a;return ((a|0)!=0?h:0)|0}function gt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;h=a[d+44>>0]|0;if(h&16){g=c[b>>2]|0;f=d+60|0;while(1){f=c[f>>2]|0;if((c[f>>2]|0)==(g|0))break;else f=f+24|0}if(!(c[(c[c[f+4>>2]>>2]|0)+52>>2]|0))g=8;else g=5}else g=5;do if((g|0)==5){if(((h&1)!=0?(c[(c[b>>2]|0)+24>>2]&2048|0)==0:0)?(a[b+18>>0]|0)==0:0){g=8;break}if((e|0)==0?(c[d+12>>2]|0)!=0:0){c[k>>2]=c[d>>2];ph(b,34456,k);f=1}else f=0}while(0);if((g|0)==8){c[k>>2]=c[d>>2];ph(b,34424,k);f=1}i=l;return f|0}function ht(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p;n=c[b>>2]|0;h=c[d+68>>2]|0;a:do if(h){g=c[n+20>>2]|0;if((g|0)>0){l=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[l+(m<<4)+12>>2]|0)==(h|0)){k=m;break a}if((k|0)<(g|0))m=k;else break}}else k=0}else k=-1e6;while(0);g=Ir(n,e,0,0)|0;h=lr(n,0,0,0)|0;if(h){c[h+16>>2]=gh(n,c[d>>2]|0)|0;c[h+12>>2]=gh(n,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0}e=gr(b,0,h,g,0,0,0,0,0,0)|0;a[o>>0]=12;c[o+4>>2]=f;a[o+1>>0]=0;c[o+8>>2]=0;c[o+12>>2]=0;er(b,e,o)|0;Ik(n,e,1);i=p;return}function it(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p+4|0;h=p;a:do if(c[(c[a>>2]|0)+24>>2]&524288){if(!e){f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,h)|0;if((f|0)!=0?(c[f+8>>2]|0)!=0:0)g=1;else g=(c[d+16>>2]|0)!=0;g=g&1;break}a=c[d+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[a+20>>2]|0;if((h|0)>0){l=0;do{k=c[a+(l<<3)+36>>2]|0;if((c[e+(k<<2)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[m>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[a+4>>2]|0}while((a|0)!=0)}h=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,o)|0;if((h|0)!=0?(g=c[h+8>>2]|0,(g|0)!=0):0)while(1){if(Zu(d,g,e,f)|0){g=1;break a}g=c[g+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=p;return g|0}function jt(e,f,g,h,i){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0;if((h|0)>=0?(b[f+36>>1]|0)!=(h|0):0){j=d[f+44>>0]|0;n=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[f+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[j+51>>0]&3)==2)break a;j=c[j+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[j+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[j+4>>2]|0;k=k&65535;j=0;while(1){if((b[l+(j<<1)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}sh(e,n,g,j,i)|0}else sh(e,103,g,i,0)|0;if((h|0)>-1)Jt(e,f,h,i);return}function kt(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[j>>2]|0;do if(!g){h=c[f+12>>2]|0;g=c[d>>2]|0;i=f+48|0;d=mg((e[i>>1]|0)+1|0,0)|0;c[j>>2]=d;if(!d){a[g+65>>0]=1;g=0;break}if(!(b[i>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[(c[f>>2]|0)+(g<<1)>>1]|0;if(d<<16>>16<0)d=68;else d=a[(c[h>>2]|0)+((d<<16>>16)*24|0)+21>>0]|0;a[(c[j>>2]|0)+g>>0]=d;g=g+1|0}while((g|0)<(e[i>>1]|0));d=c[j>>2]|0}a[d+g>>0]=0;g=c[j>>2]|0}while(0);return g|0}function lt(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=d+44|0;if(!(a[r>>0]&16)){k=c[b>>2]|0;m=c[d+68>>2]|0;a:do if(m){n=c[k+20>>2]|0;if((n|0)>0){k=c[k+16>>2]|0;l=0;while(1){j=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(m|0))break a;if((j|0)<(n|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);q=Kq(b)|0;if((f|0)<0)f=c[b+68>>2]|0;k=f+1|0;p=(h|0)!=0;if(p)c[h>>2]=f;do if(!(a[r>>0]&32)){if((g|0)!=0?(a[g>>0]|0)==0:0){o=15;break}Mq(b,f,l,d,e)}else o=15;while(0);if((o|0)==15)cs(b,l,c[d+32>>2]|0,(e|0)==55&1,c[d>>2]|0);if(i)c[i>>2]=k;f=c[d+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;n=k;j=0;while(1){k=n+1|0;if((a[f+51>>0]&3)==2?(a[r>>0]&32)!=0&p:0)c[h>>2]=n;j=j+1|0;if(!(!m?(a[g+j>>0]|0)==0:0)){sh(q,e,n,c[f+40>>2]|0,l)|0;o=c[d>>2]|0;th(o,-1,ds(b,f)|0,-6)}f=c[f+20>>2]|0;if(!f)break;else n=k}}f=b+68|0;if((k|0)>(c[f>>2]|0))c[f>>2]=k}else j=0;return j|0}function mt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[g>>2]|0;e=c[h+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[e+(f<<2)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Tc(e,(b<<2)+4|0)|0;if(!b){a[(c[h>>2]|0)+65>>0]=1;break}else{c[h+520>>2]=b;e=c[g>>2]|0;c[g>>2]=e+1;c[b+(e<<2)>>2]=d;break}}while(0);return}function nt(d,e,f,g,h,i,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;w=c[d+8>>2]|0;x=ts(w)|0;u=(a[e+44>>0]&32)>>>4^70;if(!(m<<24>>24))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);if((it(d,e,0,0)|0)!=0|(f|0)!=0){q=l&255;r=rt(d,f,0,0,3,e,q)|0;r=qt(d,e)|0|r;o=d+72|0;n=c[o>>2]|0;m=n+1|0;s=e+38|0;c[o>>2]=m+(b[s>>1]|0);sh(w,33,i,m,0)|0;o=b[s>>1]|0;if(o<<16>>16>0){t=(r|0)==-1;p=n+2|0;n=0;do{if(!t){if((n|0)<32?(1<<n&r|0)!=0:0)v=9}else v=9;if((v|0)==9){v=0;jt(w,e,g,n,p+n|0);o=b[s>>1]|0}n=n+1|0}while((n|0)<(o<<16>>16|0))}t=w+32|0;s=c[t>>2]|0;tt(d,f,109,0,1,e,m,q,x);if((s|0)<(c[t>>2]|0))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);vt(d,e,m,0,0,0)}else m=0;if((c[e+12>>2]|0)==0?(wt(d,e,g,h,0),sh(w,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)th(w,-1,c[e>>2]|0,0);yt(d,e,0,m,0,0);tt(d,f,109,0,2,e,m,l&255,x);n=c[w+24>>2]|0;m=~x;if((x|0)<0?(y=c[n+112>>2]|0,(y|0)!=0):0)c[y+(m<<2)>>2]=c[w+32>>2];c[n+88>>2]=(c[w+32>>2]|0)+-1;return}function ot(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=c[b+8>>2]|0;d=c[b+404>>2]|0;if(d){l=(c[b>>2]|0)+16|0;m=b+19|0;n=b+72|0;o=j+32|0;p=j+4|0;k=j+24|0;do{f=c[d+8>>2]|0;g=c[l>>2]|0;i=c[d+12>>2]|0;e=a[m>>0]|0;if(!(e<<24>>24)){h=(c[n>>2]|0)+1|0;c[n>>2]=h}else{h=e+-1<<24>>24;a[m>>0]=h;h=c[b+((h&255)<<2)+24>>2]|0}Mq(b,0,f,c[(c[g+(f<<4)+12>>2]|0)+72>>2]|0,55);g=i+1|0;f=sh(j,77,g,0,0)|0;sh(j,74,0,g,0)|0;e=c[o>>2]|0;if(e>>>0>f>>>0)c[(c[p>>2]|0)+(f*20|0)+8>>2]=e;c[(c[k>>2]|0)+88>>2]=e+-1;sh(j,49,i+-1|0,2,h)|0;sh(j,75,0,h,g)|0;e=c[p>>2]|0;if(e)a[e+(((c[o>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(j,61,0,0,0)|0;Wr(b,h);d=c[d>>2]|0}while((d|0)!=0)}return}function pt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c[g>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[g+4>>2]=f;f=jr(b,d,g,0)|0;i=h;return f|0}function qt(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o+4|0;n=o;if(c[(c[a>>2]|0)+24>>2]&524288){f=c[d+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[f+20>>2]|0;if((g|0)>0){h=0;do{p=c[f+(h<<3)+36>>2]|0;e=((p|0)>31?-1:1<<p)|e;h=h+1|0}while((h|0)<(g|0))}f=c[f+4>>2]|0}while((f|0)!=0)}f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,k)|0;if((f|0)!=0?(l=c[f+8>>2]|0,(l|0)!=0):0)do{c[n>>2]=0;It(a,d,l,n,0)|0;f=c[n>>2]|0;if((f|0)!=0?(m=b[f+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[f+4>>2]|0;g=0;do{f=b[h+(g<<1)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[l+12>>2]|0}while((l|0)!=0)}else e=0;i=o;return e|0}function rt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[b+8>>0]|0|0)==(k|0)?((d[b+9>>0]|0)&g|0)!=0:0)?(Yu(c[b+16>>2]|0,e)|0)!=0:0)?(l=_u(a,b,h,i)|0,(l|0)!=0):0)j=c[l+(f<<2)+16>>2]|j;b=c[b+32>>2]|0}while((b|0)!=0)}return j|0}function st(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[l>>2]|0;do if(!g){i=c[d>>2]|0;k=e+38|0;h=(b[k>>1]|0)+1|0;h=mg(h,((h|0)<0)<<31>>31)|0;if(!h){a[i+65>>0]=1;break}if((b[k>>1]|0)>0){i=e+4|0;g=0;do{a[h+g>>0]=a[(c[i>>2]|0)+(g*24|0)+21>>0]|0;g=g+1|0}while((g|0)<(b[k>>1]|0))}else g=0;do{a[h+g>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[h+g>>0]|0)==65);c[l>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){th(d,-1,h,g);break}else{th(d,sh(d,48,f,g,0)|0,h,g);break}}while(0);return}function tt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[b+8>>0]|0|0)==(e|0)?(d[b+9>>0]|0|0)==(g|0):0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)$u(a,b,h,i,j,k);b=c[b+32>>2]|0}while((b|0)!=0);return}function ut(d,f,g,h,k,l,m,n,o,p,q){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+16|0;if((i|0)>=(j|0))ba();I=la;fa=(m|0)!=0;N=c[d>>2]|0;ka=Kq(d)|0;A=b[f+38>>1]|0;ia=f+44|0;if(!(a[ia>>0]&32)){ea=1;da=0}else{u=f+8|0;while(1){u=c[u>>2]|0;if((a[u+51>>0]&3)==2)break;else u=u+20|0}ea=e[u+46>>1]|0;da=u}if(A<<16>>16>0){w=f+36|0;v=f+4|0;u=o<<24>>24==10;t=d+408|0;s=l+1|0;B=ka+4|0;C=ka+32|0;D=ka+24|0;E=o&255;y=A<<16>>16;x=0;do{a:do if((x|0)!=(b[w>>1]|0)?(F=c[v>>2]|0,G=a[F+(x*24|0)+20>>0]|0,H=G&255,G<<24>>24!=0):0){if(u)if(G<<24>>24==10)ja=14;else{A=H;ja=11}else{A=E;ja=11}do if((ja|0)==11){ja=0;if((A|0)==5)A=(c[F+(x*24|0)+4>>2]|0)==0?2:5;if((A|0)==4){sh(ka,76,s+x|0,p,0)|0;break a}else if((A|0)==3|(A|0)==1)break;else if((A|0)==2){ja=14;break}z=s+x|0;A=sh(ka,77,z,0,0)|0;Nq(d,c[(c[v>>2]|0)+(x*24|0)+4>>2]|0,z);z=c[C>>2]|0;if(z>>>0>A>>>0)c[(c[B>>2]|0)+(A*20|0)+8>>2]=z;c[(c[D>>2]|0)+88>>2]=z+-1;break a}while(0);if((ja|0)==14){ja=0;A=c[t>>2]|0;a[((A|0)==0?d:A)+21>>0]=1;A=2}ca=c[F+(x*24|0)>>2]|0;c[I>>2]=c[f>>2];c[I+4>>2]=ca;ca=qh(N,27824,I)|0;th(ka,sh(ka,23,1299,A,s+x|0)|0,ca,-1);A=c[B>>2]|0;if(A)a[A+(((c[C>>2]|0)+-1|0)*20|0)+3>>0]=1}while(0);x=x+1|0}while((x|0)!=(y|0))}x=c[f+24>>2]|0;if(((x|0)!=0?(c[N+24>>2]&8192|0)==0:0)?(c[d+92>>2]=l+1,(c[x>>2]|0)>0):0){w=x+4|0;s=ka+24|0;y=ka+32|0;A=0;u=o<<24>>24==10?2:o&255;while(1){z=ts(ka)|0;Vu(d,c[(c[w>>2]|0)+(A*20|0)>>2]|0,z,16);if((u|0)==4){sh(ka,16,0,p,0)|0;t=4}else{v=c[(c[w>>2]|0)+(A*20|0)+4>>2]|0;if(!v)v=c[f>>2]|0;t=(u|0)==5?2:u;vs(d,275,t,v,0,3)}v=c[s>>2]|0;u=~z;if((z|0)<0?(J=c[v+112>>2]|0,(J|0)!=0):0)c[J+(u<<2)>>2]=c[y>>2];c[v+88>>2]=(c[y>>2]|0)+-1;A=A+1|0;if((A|0)>=(c[x>>2]|0))break;else u=t}}if(n<<24>>24!=0&(da|0)==0){w=ts(ka)|0;s=a[f+45>>0]|0;if(o<<24>>24==10)s=s<<24>>24==10?2:s&255;else s=o&255;if(fa?(sh(ka,79,l,w,m)|0,K=c[ka+4>>2]|0,(K|0)!=0):0)a[K+(((c[ka+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;b:do if(!((s|0)!=5|o<<24>>24==5)?(r=c[f+8>>2]|0,(r|0)!=0):0){while(1){if(((a[r+50>>0]|0)+-3&255)<2)break;r=c[r+20>>2]|0;if(!r){x=0;break b}}x=sh(ka,16,0,0,0)|0}else x=0;while(0);sh(ka,70,h,w,l)|0;c:do switch(s|0){case 4:{sh(ka,16,0,p,0)|0;s=0;break}case 3:case 2:case 1:{ja=49;break}case 5:{if((c[N+24>>2]&262144|0)!=0?(L=ft(d,f,109,0,0)|0,(L|0)!=0):0)s=L;else if(!(it(d,f,0,0)|0)){if(!(c[f+8>>2]|0)){s=1;break c}s=c[d+408>>2]|0;a[((s|0)==0?d:s)+20>>0]=1;wt(d,f,h,k,0);s=1;break c}else s=0;ca=c[d+408>>2]|0;a[((ca|0)==0?d:ca)+20>>0]=1;nt(d,f,s,h,k,l,1,0,5,1);s=1;break}default:{s=2;ja=49}}while(0);if((ja|0)==49){Bt(d,s,f);s=0}v=ka+24|0;u=c[v>>2]|0;t=~w;if((w|0)<0?(M=c[u+112>>2]|0,(M|0)!=0):0)c[M+(t<<2)>>2]=c[ka+32>>2];r=ka+32|0;c[u+88>>2]=(c[r>>2]|0)+-1;if(!x){t=0;x=0}else{t=sh(ka,16,0,0,0)|0;r=c[r>>2]|0;if(r>>>0>x>>>0)c[(c[ka+4>>2]|0)+(x*20|0)+8>>2]=r;c[(c[v>>2]|0)+88>>2]=r+-1}}else{t=0;x=0;s=0}A=c[f+8>>2]|0;if(A){_=l+1|0;$=d+60|0;aa=d+56|0;ca=d+72|0;Q=n<<24>>24==0;R=ka+24|0;S=ka+32|0;T=o<<24>>24==10;U=ka+4|0;V=da+46|0;W=da+32|0;X=da+4|0;Y=m+1|0;Z=d+408|0;O=N+24|0;P=ea&65535;w=o&255;v=f+36|0;u=d+92|0;E=0;r=0;z=-1;while(1){L=g+(r<<2)|0;do if(c[L>>2]|0){if(!(E<<24>>24)){st(ka,f,_);E=1}M=r+k|0;o=ts(ka)|0;K=A+36|0;if(c[K>>2]|0){sh(ka,28,0,c[L>>2]|0,0)|0;c[u>>2]=_;ct(d,c[K>>2]|0,o,16);c[u>>2]=0}N=A+48|0;F=b[N>>1]|0;I=F&65535;H=c[$>>2]|0;G=c[aa>>2]|0;if((G|0)<(I|0)){n=c[ca>>2]|0;c[ca>>2]=n+I;n=n+1|0}else{c[$>>2]=H+I;c[aa>>2]=G-I;n=H}if(!(F<<16>>16))J=z;else{J=A+4|0;G=0;do{y=b[(c[J>>2]|0)+(G<<1)>>1]|0;I=y<<16>>16;if(y<<16>>16>=0?y<<16>>16!=(b[v>>1]|0):0){H=G+n|0;I=_+I|0;ja=81}else{I=G+n|0;if((z|0)!=(I|0)){H=I;z=(c[K>>2]|0)==0?I:-1;I=l;ja=81}}if((ja|0)==81){ja=0;sh(ka,34,I,H,0)|0;F=b[N>>1]|0}G=G+1|0;I=F&65535}while((G|0)<(I|0));J=z}sh(ka,49,n,I,c[L>>2]|0)|0;$s(d,n,e[N>>1]|0);K=(da|0)==(A|0);if(fa&K&Q){z=c[R>>2]|0;y=~o;if((o|0)<0?(ga=c[z+112>>2]|0,(ga|0)!=0):0)c[ga+(y<<2)>>2]=c[S>>2];c[z+88>>2]=(c[S>>2]|0)+-1;z=J;break}D=a[A+50>>0]|0;C=D&255;if(!(D<<24>>24)){z=e[N>>1]|0;$s(d,n,z);if((c[aa>>2]|0)<(z|0)){c[aa>>2]=z;c[$>>2]=n}z=c[R>>2]|0;y=~o;if((o|0)<0?(ha=c[z+112>>2]|0,(ha|0)!=0):0)c[ha+(y<<2)>>2]=c[S>>2];c[z+88>>2]=(c[S>>2]|0)+-1;z=J;break}if(T)L=D<<24>>24==10?2:C;else L=w;z=e[A+46>>1]|0;th(ka,sh(ka,67,M,o,n)|0,z,-14);do if(!K){I=c[$>>2]|0;H=c[aa>>2]|0;if((H|0)<(ea|0)){I=c[ca>>2]|0;c[ca>>2]=I+ea;I=I+1|0;break}else{c[$>>2]=I+ea;c[aa>>2]=H-ea;break}}else I=n;while(0);do if(fa|(L|0)==5){if(!(a[ia>>0]&32)){sh(ka,112,M,I,0)|0;if(!fa)break;sh(ka,79,I,o,m)|0;D=c[U>>2]|0;if(!D)break;a[D+(((c[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;break}do if(!K){if(!(b[V>>1]|0))break;C=A+4|0;B=0;do{F=b[(c[X>>2]|0)+(B<<1)>>1]|0;H=b[N>>1]|0;d:do if(!(H<<16>>16))H=-1;else{D=c[C>>2]|0;G=H&65535;H=0;while(1){if((b[D+(H<<1)>>1]|0)==F<<16>>16)break d;H=H+1|0;if((H|0)>=(G|0)){H=-1;break}}}while(0);sh(ka,47,M,H<<16>>16,B+I|0)|0;B=B+1|0}while((B|0)<(e[V>>1]|0))}while(0);if(!fa)break;C=(a[A+51>>0]&3)==2?n:I;H=b[V>>1]|0;if(!(H<<16>>16))break;G=(H&65535)+(c[S>>2]|0)|0;F=0;D=78;do{H=_q(d,c[(c[W>>2]|0)+(F<<2)>>2]|0)|0;z=(F|0)==((e[V>>1]|0)+-1|0);G=z?o:G;D=z?79:D;th(ka,sh(ka,D,Y+(b[(c[X>>2]|0)+(F<<1)>>1]|0)|0,G,F+C|0)|0,H,-4);H=c[U>>2]|0;if(H)a[H+(((c[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;F=F+1|0}while((F|0)<(e[V>>1]|0))}while(0);if((L|0)==3|(L|0)==2|(L|0)==1)ju(d,L,A);else if((L|0)==4)sh(ka,16,0,p,0)|0;else{z=c[Z>>2]|0;a[((z|0)==0?d:z)+20>>0]=1;if(!(c[O>>2]&262144))D=0;else D=ft(d,f,109,0,0)|0;nt(d,f,D,h,k,I,P,0,5,K&1);s=1}H=c[R>>2]|0;G=~o;do if((o|0)<0){D=c[H+112>>2]|0;if(!D)break;c[D+(G<<2)>>2]=c[S>>2]}while(0);c[H+88>>2]=(c[S>>2]|0)+-1;z=e[N>>1]|0;$s(d,n,z);if((c[aa>>2]|0)<(z|0)){c[aa>>2]=z;c[$>>2]=n}if((I|0)==(n|0)){z=J;break}$s(d,I,ea);if((c[aa>>2]|0)>=(ea|0)){z=J;break}c[aa>>2]=ea;c[$>>2]=I;z=J}while(0);A=c[A+20>>2]|0;if(!A)break;else r=r+1|0}}if(x){sh(ka,16,0,x+1|0,0)|0;r=c[ka+32>>2]|0;if(r>>>0>t>>>0)c[(c[ka+4>>2]|0)+(t*20|0)+8>>2]=r;c[(c[ka+24>>2]|0)+88>>2]=r+-1}c[q>>2]=s;i=la;return}function vt(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=i;i=i+32|0;if((i|0)>=(j|0))ba();Q=Z+20|0;O=Z+16|0;M=Z+12|0;N=Z+8|0;X=Z+4|0;W=Z;S=c[e>>2]|0;L=e+438|0;R=a[L>>0]|0;V=S+24|0;a:do if(c[V>>2]&524288){P=f+68|0;m=c[P>>2]|0;b:do if(m){o=c[S+20>>2]|0;if((o|0)>0){n=c[S+16>>2]|0;r=0;while(1){q=r+1|0;if((c[n+(r<<4)+12>>2]|0)==(m|0)){q=r;break b}if((q|0)<(o|0))r=q;else break}}else q=0}else q=-1e6;while(0);K=c[(c[S+16>>2]|0)+(q<<4)>>2]|0;x=c[f+16>>2]|0;if(!x)n=f;else{z=(k|0)==0;A=R<<24>>24==0;B=S+65|0;C=g+1|0;D=e+68|0;E=(g|0)==0;F=(h|0)==0;G=e+408|0;H=f+36|0;I=S+284|0;J=(l|0)!=0;y=x;do{c[O>>2]=0;c[M>>2]=0;c:do if(!z){x=c[y+8>>2]|0;if($c(c[f>>2]|0,x)|0){w=c[y+20>>2]|0;if((w|0)>0){n=0;do{m=c[y+(n<<3)+36>>2]|0;if((c[k+(m<<2)>>2]|0)>-1){Y=17;break c}n=n+1|0;if((m|0)==(b[H>>1]|0)&J){Y=17;break c}}while((n|0)<(w|0))}}else Y=17}else{x=c[y+8>>2]|0;Y=17}while(0);do if((Y|0)==17){Y=0;if(!(a[L>>0]|0))v=oh(e,0,x,K)|0;else v=Wh(S,x,K)|0;x=(v|0)==0;if(!x?(It(e,v,y,O,M)|0)==0:0){x=c[M>>2]|0;if(!x){c[N>>2]=c[y+36>>2];x=N}n=y+20|0;if((c[n>>2]|0)>0){t=c[O>>2]|0;o=(t|0)==0;r=v+36|0;s=v+4|0;t=t+4|0;m=0;u=0;do{w=x+(u<<2)|0;if((c[w>>2]|0)==(b[H>>1]|0))c[w>>2]=-1;if(c[I>>2]|0){if(o)w=r;else w=(c[t>>2]|0)+(u<<1)|0;m=(av(e,c[v>>2]|0,c[(c[s>>2]|0)+((b[w>>1]|0)*24|0)>>2]|0,q)|0)==2&1}u=u+1|0}while((u|0)<(c[n>>2]|0));w=v}else{w=v;m=0}cs(e,q,c[v+32>>2]|0,0,c[w>>2]|0);c[D>>2]=(c[D>>2]|0)+1;if(!E)bv(e,q,v,c[O>>2]|0,y,x,g,-1,m);d:do if(!F){w=c[G>>2]|0;w=c[((w|0)==0?e:w)+528>>2]|0;do if(w){w=c[w>>2]|0;if((w|0)==(c[y+28>>2]|0)?(a[y+25>>0]|0)==7:0)break d;if((w|0)!=(c[y+32>>2]|0))break;if((a[y+26>>0]|0)==7)break d}while(0);bv(e,q,v,c[O>>2]|0,y,x,h,1,m)}while(0);ig(S,c[M>>2]|0);break}if(A)break a;if(a[B>>0]|0)break a;if(x){x=Kq(e)|0;w=y+20|0;n=c[w>>2]|0;m=(c[x+32>>2]|0)+1+n|0;if((n|0)>0){n=0;do{sh(x,76,C+(c[y+(n<<3)+36>>2]|0)|0,m,0)|0;n=n+1|0}while((n|0)<(c[w>>2]|0))}sh(x,134,d[y+24>>0]|0,-1,0)|0}}while(0);y=c[y+4>>2]|0}while((y|0)!=0);n=f;m=c[P>>2]|0}m=Zm(m+56|0,c[n>>2]|0,Q)|0;if((m|0)!=0?(p=c[m+8>>2]|0,T=S+65|0,(p|0)!=0):0){r=(k|0)!=0;s=e+408|0;t=e+20|0;u=e+68|0;v=(h|0)==0;w=(g|0)==0;x=r&1;q=R<<24>>24==0;do{c[X>>2]=0;c[W>>2]=0;if(!(r?(Zu(f,p,k,l)|0)==0:0))Y=57;do if((Y|0)==57){Y=0;n=p+24|0;if((((a[n>>0]|0)==0?(c[V>>2]&16777216|0)==0:0)?(c[s>>2]|0)==0:0)?(a[t>>0]|0)==0:0)break;if(It(e,f,p,X,W)|0){if(q)break a;if(!(a[T>>0]|0))break;else break a}m=lr(S,0,0,0)|0;if(m){H=c[p>>2]|0;c[m+24>>2]=H;o=m+16|0;c[o>>2]=c[H>>2];H=H+40|0;b[H>>1]=(b[H>>1]|0)+1<<16>>16;H=c[u>>2]|0;c[u>>2]=H+1;c[m+48>>2]=H;if(!v)cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,h,-1);if((!w?(U=a[p+x+25>>0]|0,cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,g,1),(a[n>>0]|0)==0):0)?!(U<<24>>24==7|U<<24>>24==9):0){H=c[s>>2]|0;a[((H|0)==0?e:H)+21>>0]=1}c[o>>2]=0;zo(S,m)}ig(S,c[W>>2]|0)}while(0);p=c[p+12>>2]|0}while((p|0)!=0)}}while(0);i=Z;return}function wt(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();r=s;q=c[b+8>>2]|0;l=c[d+8>>2]|0;a:do if(a[d+44>>0]&32){if(l){k=l;while(1){if((a[k+51>>0]&3)==2){p=5;break a}k=c[k+20>>2]|0;if(!k){k=0;p=5;break}}}}else{k=0;p=5}while(0);if((p|0)==5?(l|0)!=0:0){n=(h|0)==0;o=0;d=0;m=-1;while(1){if(n){if((l|0)!=(k|0))p=10}else if(!((l|0)==(k|0)?1:(c[h+(o<<2)>>2]|0)==0))p=10;if((p|0)==10){p=0;m=Lt(b,l,f,0,1,r,d,m)|0;sh(q,111,o+g|0,m,e[((a[l+51>>0]&8)==0?l+48|0:l+46|0)>>1]|0)|0;Mt(b,c[r>>2]|0);d=l}l=c[l+20>>2]|0;if(!l)break;else o=o+1|0}}i=s;return}function xt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=Kq(d)|0;q=c[e+8>>2]|0;if(!q){n=e+44|0;p=0}else{r=(l|0)!=0;n=e+44|0;s=r?17:1;t=w+4|0;u=w+32|0;p=0;v=0;m=q;while(1){o=i+(v<<2)|0;q=c[o>>2]|0;do if(q){if(c[m+36>>2]|0){sh(w,76,q,(c[u>>2]|0)+2|0,0)|0;q=c[o>>2]|0}sh(w,110,v+g|0,q,0)|0;if((a[m+51>>0]&3)==2){q=(a[n>>0]&32)!=0;if(q|r)p=q?s:16;else{p=1;break}}else if(r)p=16;else{p=1;break}q=c[t>>2]|0;if(!q)p=1;else{a[q+(((c[u>>2]|0)+-1|0)*20|0)+3>>0]=p;p=1}}while(0);m=c[m+20>>2]|0;if(!m)break;else v=v+1|0}}if(!(a[n>>0]&32)){o=h+1|0;n=d+19|0;m=a[n>>0]|0;if(!(m<<24>>24)){i=d+72|0;q=(c[i>>2]|0)+1|0;c[i>>2]=q}else{q=m+-1<<24>>24;a[n>>0]=q;q=c[d+((q&255)<<2)+24>>2]|0}n=e+38|0;sh(w,49,o,b[n>>1]|0,q)|0;if(!(p<<24>>24))st(w,e,0);$s(d,o,b[n>>1]|0);o=d+18|0;if(!(a[o>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)n=m;else n=(m&255|16)&255;sh(w,75,f,q,h)|0;if(!(a[o>>0]|0))th(w,-1,c[e>>2]|0,0);m=c[w+4>>2]|0;if(m)a[m+(((c[w+32>>2]|0)+-1|0)*20|0)+3>>0]=n}return}function yt(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+64|0;if((i|0)>=(j|0))ba();R=Y+52|0;Q=Y+48|0;V=Y+8|0;U=Y;T=Y+40|0;W=Y+32|0;S=Y+24|0;if(((c[(c[d>>2]|0)+24>>2]&524288|0)!=0?(P=e+68|0,l=Zm((c[P>>2]|0)+56|0,c[e>>2]|0,Y+16|0)|0,(l|0)!=0):0)?(m=c[l+8>>2]|0,(m|0)!=0):0){O=(h|0)==0;H=(f|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=e+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(Zu(e,m,h,k)|0)==0:0)){E=c[d>>2]|0;D=a[m+I+25>>0]|0;F=D&255;G=m+(I<<2)+28|0;f=c[G>>2]|0;do if(!(D<<24>>24==0|(f|0)!=0)){c[R>>2]=0;c[Q>>2]=0;if(!(It(d,e,m,R,Q)|0)){r=m+20|0;if((c[r>>2]|0)>0){x=34352;w=c[x>>2]|0;x=c[x+4>>2]|0;z=34360;y=c[z>>2]|0;z=c[z+4>>2]|0;A=m+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;o=0;l=0;n=0;do{f=V;c[f>>2]=w;c[f+4>>2]=x;f=U;c[f>>2]=y;c[f+4>>2]=z;f=c[Q>>2]|0;if(!f)f=A;else f=f+(B<<2)|0;q=c[f>>2]|0;s=c[R>>2]|0;if(!s)u=34368;else u=c[(c[L>>2]|0)+((b[(c[s+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;c[W>>2]=u;f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)>>2]|0;c[T>>2]=f;if(!u)t=0;else{v=u;while(1)if(!(a[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}c[J>>2]=t;if(!f)p=0;else{u=f;while(1)if(!(a[u>>0]|0))break;else u=u+1|0;p=u-f&1073741823}c[K>>2]=p;v=Vq(d,27,0,0,V)|0;v=Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0;n=os(E,n,Vq(d,79,v,Vq(d,27,0,0,T)|0,0)|0)|0;if(H){u=Vq(d,27,0,0,V)|0;u=Vq(d,122,u,Vq(d,27,0,0,W)|0,0)|0;v=Vq(d,27,0,0,U)|0;l=os(E,l,Vq(d,73,u,Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==8){f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)+4>>2]|0;if(!f){f=Vq(d,101,0,0,0)|0;break}else{f=Ir(E,f,0,0)|0;break}}else if(D<<24>>24==9){f=Vq(d,27,0,0,U)|0;f=Vq(d,122,f,Vq(d,27,0,0,W)|0,0)|0}else f=Vq(d,101,0,0,0)|0;while(0);o=hr(d,o,f)|0;ir(d,o,T,0)}B=B+1|0}while((B|0)<(c[r>>2]|0));f=m}else{f=m;o=0;l=0;n=0}ig(E,c[Q>>2]|0);v=c[c[f>>2]>>2]|0;if(!v)p=0;else{f=v;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;p=f-v&1073741823}if(D<<24>>24==6){c[S>>2]=v;c[M>>2]=p;f=pt(E,57,34376)|0;if(f)a[f+1>>0]=2;u=hr(d,0,f)|0;u=gr(d,u,lr(E,0,S,0)|0,n,0,0,0,0,0,0)|0;t=0}else{u=0;t=n}q=E+250|0;r=a[q>>0]|0;a[q>>0]=0;f=p+77|0;s=ih(E,f,0)|0;if(s){bw(s|0,0,f|0)|0;n=s+36|0;c[s+28>>2]=n;D=s+76|0;c[s+48>>2]=D;c[s+52>>2]=p;gw(D|0,v|0,p|0)|0;c[s+56>>2]=Ir(E,t,1,0)|0;c[s+60>>2]=Lr(E,o,1)|0;c[s+44>>2]=cr(E,u,1)|0;if(!l){f=s;l=0}else{l=Vq(d,19,l,0,0)|0;c[s+12>>2]=Ir(E,l,1,0)|0;f=s}}else{f=0;n=0}a[q>>0]=r;Ck(E,t);Ck(E,l);Jk(E,o);Ik(E,u,1);if((a[E+65>>0]|0)==1){Gk(E,f);f=0;break}if((F|0)==6)a[n>>0]=119;else if((F|0)==9?!H:0)a[n>>0]=109;else X=49;if((X|0)==49){X=0;a[n>>0]=110}c[n+4>>2]=f;F=c[P>>2]|0;c[s+20>>2]=F;c[s+24>>2]=F;c[G>>2]=f;a[s+8>>0]=N}else f=0}while(0);if(f)$u(d,f,e,g,2,0)}m=c[m+12>>2]|0}while((m|0)!=0)}i=Y;return}function zt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=b[d+46>>1]|0;a:do if(f<<16>>16==(b[e+46>>1]|0)?(a[d+50>>0]|0)==(a[e+50>>0]|0):0){if(f<<16>>16){g=c[e+4>>2]|0;h=c[d+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;p=0;do{if((b[g+(p<<1)>>1]|0)!=(b[h+(p<<1)>>1]|0)){f=0;break a}if((a[(c[i>>2]|0)+p>>0]|0)!=(a[(c[j>>2]|0)+p>>0]|0)){f=0;break a}m=c[(c[k>>2]|0)+(p<<2)>>2]|0;n=c[(c[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){f=0;break a}}else{if(o){f=0;break a}if($c(m,n)|0){f=0;break a}}p=p+1|0}while((p|0)<(f&65535|0))}f=(yu(c[e+36>>2]|0,c[d+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function At(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[e+44>>0]&8))f=0;else{h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[g>>2]|0;a:do if(!f)i=5;else while(1){if((c[f+4>>2]|0)==(e|0))break a;f=c[f>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=ih(c[b>>2]|0,16,0)|0;if(!f){f=0;break}c[f>>2]=c[g>>2];c[g>>2]=f;c[f+4>>2]=e;c[f+8>>2]=d;b=h+72|0;g=c[b>>2]|0;c[f+12>>2]=g+2;c[b>>2]=g+3}f=c[f+12>>2]|0}while(0);return f|0}function Bt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0}
function Pt(b,d){b=b|0;d=d|0;var e=0;if(d&1)if(!(c[b+12>>2]|0))d=(c[b+20>>2]|0)==0?12:28;else d=28;else d=48;if((c[b+4>>2]&1024|0)==0?(e=c[b+8>>2]|0,(e|0)!=0):0){b=e;while(1)if(!(a[b>>0]|0))break;else b=b+1|0;d=(d|1)+(b-e&1073741823)|0}return d+7&-8|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;h=e+20|0;d=c[h>>2]|0;if((d|0)>0){g=0;f=c[e+16>>2]|0;while(1){e=c[(c[f+12>>2]|0)+16>>2]|0;if(e){d=e;do{Rt(a,c[d+8>>2]|0,b);d=c[d>>2]|0}while((d|0)!=0);d=c[h>>2]|0}g=g+1|0;if((g|0)>=(d|0))break;else f=f+16|0}}return}function Rt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=c[d+8>>2]|0;if(f){m=(e|0)==0;k=d+68|0;l=a+408|0;do{a:do if(!m){i=f+32|0;d=b[f+48>>1]|0;if(d<<16>>16){h=c[f+4>>2]|0;d=d&65535;g=0;do{if((b[h+(g<<1)>>1]|0)>-1?($c(c[(c[i>>2]|0)+(g<<2)>>2]|0,e)|0)==0:0){n=9;break a}g=g+1|0}while((g|0)<(d|0))}}else n=9;while(0);if((n|0)==9){n=0;d=c[a>>2]|0;g=c[k>>2]|0;b:do if(g){j=c[d+20>>2]|0;if((j|0)>0){h=c[d+16>>2]|0;i=0;while(1){d=i+1|0;if((c[h+(i<<4)+12>>2]|0)==(g|0)){d=i;break b}if((d|0)<(j|0))i=d;else break}}else d=0}else d=-1e6;while(0);j=c[l>>2]|0;wr(a,d);j=((j|0)==0?a:j)+328|0;c[j>>2]=c[j>>2]|1<<d;rs(a,f,-1)}f=c[f+20>>2]|0}while((f|0)!=0)}return}function St(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[(c[(c[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]|0;g=c[a+408>>2]|0;wr(a,b);g=((g|0)==0?a:g)+328|0;c[g>>2]=c[g>>2]|1<<b;g=a+68|0;e=c[g>>2]|0;c[g>>2]=e+3;dv(a,b,e,0,0);f=(c[a+72>>2]|0)+1|0;g=c[g>>2]|0;d=c[d+16>>2]|0;if(d)do{ev(a,c[d+8>>2]|0,0,e,f,g);d=c[d>>2]|0}while((d|0)!=0);fv(a,b);return}function Tt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=c[a>>2]|0;h=c[b+68>>2]|0;a:do if(h){i=c[e+20>>2]|0;if((i|0)>0){f=c[e+16>>2]|0;e=0;while(1){g=e+1|0;if((c[f+(e<<4)+12>>2]|0)==(h|0)){g=e;break a}if((g|0)<(i|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=c[a+408>>2]|0;wr(a,g);e=((e|0)==0?a:e)+328|0;c[e>>2]=c[e>>2]|1<<g;e=a+68|0;f=c[e>>2]|0;c[e>>2]=f+3;if(!d)dv(a,g,f,c[b>>2]|0,28544);else dv(a,g,f,c[d>>2]|0,28536);ev(a,b,d,f,(c[a+72>>2]|0)+1|0,c[e>>2]|0);fv(a,g);return}function Ut(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;f=((d|0)/2|0)+1|0;f=ih(b,f,((f|0)<0)<<31>>31)|0;b=d+-1|0;if(f){if((b|0)>0){e=0;do{g=a[c+e>>0]|0;h=a[c+(e|1)>>0]|0;a[f+((e|0)/2|0)>>0]=(0-(h>>>6&1)&9)+h&15|(0-(g>>>6&1)&9)+g<<4;e=e+2|0}while((e|0)<(b|0));b=(d&-2|0)/2|0}else b=0;a[f+b>>0]=0}return f|0}function Vt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m+8|0;l=m;k=c[b+8>>2]|0;g=d+8|0;do if(!(c[d+4>>2]&1024)){g=c[g>>2]|0;d=fi(g,l)|0;if((d|0)!=0?!((d|0)==2&(e|0)!=0):0)if(!(Bc(g,29144,2)|0)){c[h>>2]=g;ph(b,29152,h);break}else{Wt(k,g,e,f);break}if(e){if((d|0)==2){d=0;g=-2147483648}else{d=l;d=$v(0,0,c[d>>2]|0,c[d+4>>2]|0)|0;g=C}e=l;c[e>>2]=d;c[e+4>>2]=g}d=ih(c[k>>2]|0,8,0)|0;if(d){e=l;h=c[e>>2]|0;e=c[e+4>>2]|0;g=d;b=g;a[b>>0]=h;a[b+1>>0]=h>>8;a[b+2>>0]=h>>16;a[b+3>>0]=h>>24;g=g+4|0;a[g>>0]=e;a[g+1>>0]=e>>8;a[g+2>>0]=e>>16;a[g+3>>0]=e>>24}th(k,sh(k,26,0,f,0)|0,d,-13)}else{d=c[g>>2]|0;sh(k,25,(e|0)==0?d:0-d|0,f,0)|0}while(0);i=m;return}function Wt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;if(d){g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;Pl(d,k,g-d&1073741823,1)|0;if(e)h[k>>3]=-+h[k>>3];g=ih(c[b>>2]|0,8,0)|0;if(g){d=k;m=c[d>>2]|0;d=c[d+4>>2]|0;e=g;k=e;a[k>>0]=m;a[k+1>>0]=m>>8;a[k+2>>0]=m>>16;a[k+3>>0]=m>>24;e=e+4|0;a[e>>0]=d;a[e+1>>0]=d>>8;a[e+2>>0]=d>>16;a[e+3>>0]=d>>24}th(b,sh(b,133,0,f,0)|0,g,-12)}i=l;return}function Xt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();g=m;a:do if(!d)k=0;else while(1){f=c[d+4>>2]|0;if(!(f&4096)){k=d;break a}if(!(f&262144))d=d+12|0;else d=c[(c[d+20>>2]|0)+4>>2]|0;d=c[d>>2]|0;if(!d){k=0;break}}while(0);b:do if(((a[b+23>>0]|0)!=0?(a[k>>0]|0)!=-97:0)?(c[g+0>>2]=0,c[g+4>>2]=0,c[g+8>>2]=0,c[g+12>>2]=0,c[g+16>>2]=0,c[g+20>>2]=0,f=g+20|0,a[f>>0]=2,c[g>>2]=78,c[g+4>>2]=79,c[g+24>>2]=0,ns(g,k)|0,(a[f>>0]|0)!=0):0){f=c[b+316>>2]|0;c[e>>2]=0;c:do if((f|0)!=0?(h=c[f>>2]|0,(h|0)>0):0){d=h;f=c[f+4>>2]|0;while(1){if((a[f+13>>0]&4)!=0?(yu(c[f>>2]|0,k,-1)|0)==0:0)break;d=d+-1|0;if((d|0)<=0)break c;else f=f+20|0}f=c[f+16>>2]|0;break b}while(0);d=b+72|0;f=(c[d>>2]|0)+1|0;c[d>>2]=f;Ct(b,k,f,1)}else l=18;while(0);do if((l|0)==18){d=b+19|0;f=a[d>>0]|0;if(!(f<<24>>24)){d=b+72|0;f=(c[d>>2]|0)+1|0;c[d>>2]=f}else{f=f+-1<<24>>24;a[d>>0]=f;f=c[b+((f&255)<<2)+24>>2]|0}d=es(b,k,f)|0;if((d|0)==(f|0)){c[e>>2]=f;break}else{Wr(b,f);c[e>>2]=0;f=d;break}}while(0);i=m;return f|0}function Yt(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0;l=Ku(b,d,e)|0;k=xu(d,gv(e)|0)|0;e=b+8|0;d=c[e>>2]|0;th(d,sh(d,f,h,i,g)|0,l,-4);e=c[e>>2]|0;d=c[e+4>>2]|0;if(d)a[d+(((c[e+32>>2]|0)+-1|0)*20|0)+3>>0]=k&255|j;return}function Zt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=b+100|0;c[d>>2]=(c[d>>2]|0)+-1;g=b+19|0;j=0;k=b+116|0;while(1){h=k+12|0;i=c[h>>2]|0;if((i|0)!=0?(c[k+8>>2]|0)>(c[d>>2]|0):0){e=k+6|0;if(a[e>>0]|0){f=a[g>>0]|0;if((f&255)<8){a[g>>0]=f+1<<24>>24;c[b+((f&255)<<2)+24>>2]=i}a[e>>0]=0}c[h>>2]=0}j=j+1|0;if((j|0)==10)break;else k=k+20|0}return}function _t(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=c[d>>2]|0;a:do if(e){b:while(1){g=c[e+4>>2]|0;if(g&512){e=0;k=21;break a}switch(a[e>>0]|0){case -97:{if((a[e+38>>0]|0)==95){k=7;break b}else k=8;break}case 38:case -98:{e=c[e+12>>2]|0;break}case 95:{k=7;break b}case 62:case -102:case -100:{k=8;break}default:k=11}if((k|0)==8){f=c[e+44>>2]|0;if(!f)k=11;else{k=9;break}}c:do if((k|0)==11){k=0;if(!(g&256)){e=0;k=21;break a}f=c[e+12>>2]|0;if((f|0)!=0?(c[f+4>>2]&256|0)!=0:0){e=f;continue b}h=c[e+16>>2]|0;f=c[e+20>>2]|0;if((f|0)!=0&(g&2048|0)==0?(i=c[f>>2]|0,(i|0)>0):0){f=c[f+4>>2]|0;g=0;while(1){e=c[f+(g*20|0)>>2]|0;g=g+1|0;if(c[e+4>>2]&256)break c;if((g|0)>=(i|0)){e=h;break}}}else e=h}while(0);if(!e){e=0;k=21;break a}}if((k|0)==7)e=ss(d,a[j+62>>0]|0,0,c[e+8>>2]|0)|0;else if((k|0)==9){e=b[e+32>>1]|0;if(e<<16>>16<=-1){e=0;k=21;break}e=Un(j,a[j+62>>0]|0,c[(c[f+4>>2]|0)+((e<<16>>16)*24|0)+16>>2]|0,0)|0}if(e)if(!(ss(d,a[(c[d>>2]|0)+62>>0]|0,e,c[e>>2]|0)|0))e=0;else k=21;else{e=0;k=21}}else{e=0;k=21}while(0);return e|0}function $t(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r+4|0;p=r;c[q>>2]=0;c[p>>2]=0;if((((h|0)!=0?(a[h>>0]|0)==-102:0)?(m=c[h+44>>2]|0,(m|0)!=0):0)?(a[m+44>>0]&16)!=0:0){h=m+60|0;while(1){h=c[h>>2]|0;if((c[h>>2]|0)==(d|0))break;else h=h+24|0}l=c[h+8>>2]|0;k=(c[l>>2]|0)+72|0;if((c[k>>2]|0)!=0?(o=f+24|0,n=gh(d,c[o>>2]|0)|0,(n|0)!=0):0){m=a[n>>0]|0;if(m<<24>>24){h=n;do{a[h>>0]=a[9328+(m&255)>>0]|0;h=h+1|0;m=a[h>>0]|0}while(m<<24>>24!=0)}g=pc[c[k>>2]&31](l,g,n,q,p)|0;ig(d,n);if(g){h=c[o>>2]|0;if(!h){h=37;l=0}else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;h=(l-h&1073741823)+37|0;l=0}k=ih(d,h,l)|0;if(k){bw(k|0,0,h|0)|0;m=k+0|0;l=f+0|0;h=m+36|0;do{c[m>>2]=c[l>>2];m=m+4|0;l=l+4|0}while((m|0)<(h|0));m=k+36|0;c[k+24>>2]=m;h=c[o>>2]|0;if(!h)l=1;else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=(l-h&1073741823)+1|0}gw(m|0,h|0,l|0)|0;c[k+12>>2]=c[q>>2];c[k+4>>2]=c[p>>2];p=k+2|0;b[p>>1]=e[p>>1]|16}else k=f}else k=f}else k=f}else k=f;i=r;return k|0}function au(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+80|0;if((i|0)>=(j|0))ba();x=z;v=z+72|0;o=z+52|0;w=z+48|0;n=z+28|0;y=Kq(b)|0;a:do if(!y)g=0;else{g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;g=d+4|0;if(!(c[g>>2]&32)){q=Kq(b)|0;m=b+80|0;h=c[m>>2]|0;c[m>>2]=h+1;h=sh(q,44,h,0,0)|0}else h=-1;if((a[b+450>>0]|0)==2){l=c[b>>2]|0;m=(a[d>>0]|0)==75?29104:29112;q=c[b+468>>2]|0;c[x>>2]=(h|0)>-1?10360:29088;c[x+4>>2]=m;c[x+8>>2]=q;l=qh(l,29056,x)|0;th(y,sh(y,157,c[b+464>>2]|0,0,0)|0,l,-1);l=d}else l=d;m=a[l>>0]|0;b:do if(m<<24>>24==75){n=d+12|0;k=gv(c[n>>2]|0)|0;a[v>>0]=k;s=b+68|0;t=c[s>>2]|0;c[s>>2]=t+1;s=d+28|0;c[s>>2]=t;r=(f|0)!=0;t=sh(y,57,t,r&1^1,0)|0;if(r)u=0;else u=Ns(c[b>>2]|0,1,1)|0;m=d+20|0;do if(!(c[g>>2]&2048)){m=c[m>>2]|0;if(m){if(!(k<<24>>24))a[v>>0]=65;if(u)c[u+20>>2]=_t(b,c[n>>2]|0)|0;f=b+19|0;k=a[f>>0]|0;if(k<<24>>24){q=k+-1<<24>>24;a[f>>0]=q;l=c[b+((q&255)<<2)+24>>2]|0;if(!(q<<24>>24))p=24;else{q=k+-2<<24>>24;a[f>>0]=q;q=c[b+((q&255)<<2)+24>>2]|0}}else{p=b+72|0;l=(c[p>>2]|0)+1|0;c[p>>2]=l;p=24}if((p|0)==24){p=b+72|0;q=(c[p>>2]|0)+1|0;c[p>>2]=q}if(r)sh(y,28,0,q,0)|0;n=c[m>>2]|0;if((n|0)>0){k=x+20|0;g=x+4|0;p=x+24|0;o=y+32|0;f=c[m+4>>2]|0;while(1){m=c[f>>2]|0;do if((h|0)>-1){c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[x+16>>2]=0;c[x+20>>2]=0;a[k>>0]=1;c[x>>2]=78;c[g>>2]=79;c[p>>2]=0;ns(x,m)|0;if(a[k>>0]|0)break;vh(y,h);h=-1}while(0);do if(r)if(!(Is(m,w)|0)){m=es(b,m,l)|0;sh(y,38,m,(c[o>>2]|0)+2|0,0)|0;sh(y,75,c[s>>2]|0,q,m)|0;break}else{sh(y,84,c[s>>2]|0,q,c[w>>2]|0)|0;break}else{m=es(b,m,l)|0;th(y,sh(y,49,m,1,q)|0,v,1);$s(b,m,1);sh(y,110,c[s>>2]|0,q,0)|0}while(0);n=n+-1|0;if((n|0)<=0)break;else f=f+20|0}}Wr(b,l);Wr(b,q)}if(!u){k=h;g=0;break b}}else{l=c[m>>2]|0;q=c[s>>2]|0;a[o>>0]=11;c[o+4>>2]=q;c[o+8>>2]=0;c[o+12>>2]=0;a[o+1>>0]=k;c[l+8>>2]=0;if(!(er(b,l,o)|0)){c[u+20>>2]=Ku(b,c[n>>2]|0,c[c[(c[l>>2]|0)+4>>2]>>2]|0)|0;break}if(!u){g=0;break a}q=(c[u>>2]|0)+-1|0;c[u>>2]=q;if(q){g=0;break a}Sc(u);g=0;break a}while(0);th(y,t,u,-6);k=h;g=0}else{k=c[d+20>>2]|0;l=b+72|0;g=(c[l>>2]|0)+1|0;c[l>>2]=g;a[n>>0]=0;l=n+4|0;c[l>>2]=g;a[n+1>>0]=0;f=n+8|0;c[f>>2]=0;c[n+12>>2]=0;if(m<<24>>24==119){a[n>>0]=10;c[f>>2]=g;sh(y,28,0,g,0)|0}else{a[n>>0]=3;sh(y,25,0,g,0)|0}q=k+60|0;Ck(c[b>>2]|0,c[q>>2]|0);c[q>>2]=Vq(b,132,0,0,20624)|0;c[k+8>>2]=0;if(er(b,k,n)|0){g=0;break a}k=h;g=c[l>>2]|0}while(0);if(e)hv(y,c[d+28>>2]|0,e);if((k|0)>-1){h=c[y+32>>2]|0;if(h>>>0>k>>>0)c[(c[y+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[y+24>>2]|0)+88>>2]=h+-1}Zt(b)}while(0);i=z;return g|0}function bu(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();m=y+4|0;v=y+8|0;t=y;c[m>>2]=0;x=c[b+8>>2]|0;h=(f|0)==(g|0);l=iv(b,e,3,h?0:m)|0;a[v>>0]=jv(e)|0;n=b+100|0;c[n>>2]=(c[n>>2]|0)+1;n=b+19|0;k=a[n>>0]|0;if(!(k<<24>>24)){r=b+72|0;w=(c[r>>2]|0)+1|0;c[r>>2]=w}else{w=k+-1<<24>>24;a[n>>0]=w;w=c[b+((w&255)<<2)+24>>2]|0}k=e+12|0;Nq(b,c[k>>2]|0,w);do if((l|0)==5){r=c[e+20>>2]|0;p=_t(b,c[k>>2]|0)|0;s=ts(x)|0;q=(g|0)!=(f|0);if(q){k=a[n>>0]|0;if(!(k<<24>>24)){o=b+72|0;k=(c[o>>2]|0)+1|0;c[o>>2]=k}else{k=k+-1<<24>>24;a[n>>0]=k;k=c[b+((k&255)<<2)+24>>2]|0}sh(x,85,w,w,k)|0;o=k}else o=0;if((c[r>>2]|0)>0){n=r+4|0;m=(o|0)==0;l=x+4|0;k=x+32|0;h=0;do{e=Xt(b,c[(c[n>>2]|0)+(h*20|0)>>2]|0,t)|0;if(!m?(Qu(c[(c[n>>2]|0)+(h*20|0)>>2]|0)|0)!=0:0)sh(x,85,o,e,o)|0;if((h|0)<((c[r>>2]|0)+-1|0)|q){th(x,sh(x,79,w,s,e)|0,p,-4);e=c[l>>2]|0;if(e)a[e+(((c[k>>2]|0)+-1|0)*20|0)+3>>0]=a[v>>0]|0}else{th(x,sh(x,78,w,f,e)|0,p,-4);e=c[l>>2]|0;if(e)a[e+(((c[k>>2]|0)+-1|0)*20|0)+3>>0]=d[v>>0]|0|16}Wr(b,c[t>>2]|0);h=h+1|0}while((h|0)<(c[r>>2]|0))}if(o){sh(x,76,o,g,0)|0;sh(x,16,0,f,0)|0}k=c[x+24>>2]|0;h=~s;if((s|0)<0?(u=c[k+112>>2]|0,(u|0)!=0):0)c[u+(h<<2)>>2]=c[x+32>>2];c[k+88>>2]=(c[x+32>>2]|0)+-1;Wr(b,o)}else{do if(Qu(c[k>>2]|0)|0){if(h){sh(x,76,w,f,0)|0;break}k=sh(x,77,w,0,0)|0;sh(x,108,c[e+28>>2]|0,f,0)|0;sh(x,16,0,g,0)|0;h=c[x+32>>2]|0;if(h>>>0>k>>>0)c[(c[x+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[x+24>>2]|0)+88>>2]=h+-1}while(0);if((l|0)==1){sh(x,38,w,f,0)|0;sh(x,70,c[e+28>>2]|0,f,w)|0;break}th(x,sh(x,48,w,1,0)|0,v,1);h=c[e+28>>2]|0;if(!(c[m>>2]|0)){th(x,sh(x,68,h,f,w)|0,1,-14);break}k=sh(x,69,h,0,w)|0;th(x,k,1,-14);sh(x,76,c[m>>2]|0,g,0)|0;sh(x,16,0,f,0)|0;h=c[x+32>>2]|0;if(h>>>0>k>>>0)c[(c[x+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[x+24>>2]|0)+88>>2]=h+-1}while(0);Wr(b,w);Zt(b);i=y;return}function cu(f,g){f=f|0;g=g|0;var k=0,l=0,m=0,n=0,o=0,p=0.0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+48|0;if((i|0)>=(j|0))ba();B=C;z=C+28|0;k=c[f+24>>2]|0;A=c[k>>2]|0;x=g+4|0;n=c[x>>2]|0;a:do if(!(n&4)){c[x>>2]=n|4;switch(d[g>>0]|0){case 27:{k=kv(A,0,0,c[g+8>>2]|0,k,g)|0;break a}case 122:{l=c[g+16>>2]|0;if((a[l>>0]|0)==27){n=l;l=g;m=0}else{n=c[l+16>>2]|0;m=c[(c[g+12>>2]|0)+8>>2]|0}k=kv(A,m,c[(c[l+12>>2]|0)+8>>2]|0,c[n+8>>2]|0,k,g)|0;break a}case 135:{l=k+28|0;k=b[l>>1]|0;if(k&4){c[B>>2]=27456;ph(A,27472,B);k=b[l>>1]|0}if(k&16){c[B>>2]=27456;ph(A,27512,B)}break}case 153:{w=g+20|0;t=c[w>>2]|0;if(!t)m=0;else m=c[t>>2]|0;n=a[(c[A>>2]|0)+62>>0]|0;y=k+28|0;if(b[y>>1]&16){c[B>>2]=27200;ph(A,27512,B)}u=c[g+8>>2]|0;if(!u)r=0;else{o=u;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;r=o-u&1073741823}l=Oh(c[A>>2]|0,u,r,m,n,0)|0;do if(!l){if(Oh(c[A>>2]|0,u,r,-2,n,0)|0){c[B>>2]=r;c[B+4>>2]=u;ph(A,27392,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1;break}if(!(a[(c[A>>2]|0)+145>>0]|0)){c[B>>2]=r;c[B+4>>2]=u;ph(A,27368,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1}}else{q=(c[l+12>>2]|0)==0;v=l+2|0;do if(b[v>>1]&1024){c[x>>2]=c[x>>2]|266240;if((m|0)!=2){c[g+28>>2]=(a[c[l+24>>2]>>0]|0)==117?8388608:125829120;break}o=c[(c[t+4>>2]|0)+20>>2]|0;h[B>>3]=-1.0;if((a[o>>0]|0)==-123){n=c[o+8>>2]|0;if(!n)o=0;else{o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-n&1073741823}Pl(n,B,o,1)|0;p=+h[B>>3];if(!(p>1.0)){o=~~(p*134217728.0);c[g+28>>2]=o;if((o|0)>=0)break}else s=22}else s=22;if((s|0)==22)c[g+28>>2]=-1;ph(A,27216,B);s=k+24|0;c[s>>2]=(c[s>>2]|0)+1}while(0);o=l+24|0;n=Oq(A,31,0,c[o>>2]|0,0)|0;if(!n){if(b[v>>1]&2048)c[x>>2]=c[x>>2]|524288;if(!q)break;o=b[y>>1]|0;if(!(o&1)){c[B>>2]=r;c[B+4>>2]=u;ph(A,27328,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1;break}b[y>>1]=o&65534;hu(f,t)|0;a[g>>0]=-101;n=g+38|0;a[n>>0]=0;b:do if(k){m=B+24|0;l=z+4|0;o=z+8|0;while(1){u=c[k+4>>2]|0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B>>2]=87;c[m>>2]=z;c[z>>2]=u;c[l>>2]=0;c[o>>2]=0;hu(B,c[w>>2]|0)|0;if((c[l>>2]|0)>0)break;if(!(c[o>>2]|0))break;a[n>>0]=(a[n>>0]|0)+1<<24>>24;k=c[k+16>>2]|0;if(!k)break b}u=k+28|0;b[u>>1]=e[v>>1]&4096|e[u>>1]|2}while(0);b[y>>1]=e[y>>1]|1;k=1;break a}else if((n|0)==1){c[B>>2]=c[o>>2];ph(A,27288,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1}a[g>>0]=101;k=1;break a}while(0);hu(f,t)|0;k=1;break a}case 75:case 20:case 119:{if(n&2048){o=k+20|0;l=c[o>>2]|0;m=k+28|0;n=b[m>>1]|0;if(n&4){c[B>>2]=27440;ph(A,27472,B);n=b[m>>1]|0}if(n&16){c[B>>2]=27440;ph(A,27512,B)}gu(f,c[g+20>>2]|0)|0;if((l|0)!=(c[o>>2]|0))c[x>>2]=c[x>>2]|32}break}default:{}}if(!(c[A+64>>2]|0))k=(a[(c[A>>2]|0)+65>>0]|0)!=0?2:0;else k=2}else k=1;while(0);i=C;return k|0}function du(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;M=i;i=i+80|0;if((i|0)>=(j|0))ba();L=M;J=M+64|0;E=M+32|0;m=b[f+6>>1]|0;h=m&65535;a:do if(!(h&2)){D=c[d+24>>2]|0;K=c[d+12>>2]|0;d=c[K>>2]|0;if(!(h&16)){zs(K,f,D);if(c[K+64>>2]|0){g=2;break}g=(a[d+65>>0]|0)!=0?2:1;break}F=f+52|0;g=(c[F>>2]|0)!=0;G=(f|0)==0;b:do if(!G){h=E+28|0;o=E+4|0;A=E+16|0;B=E+8|0;w=d+65|0;v=K+492|0;u=(D|0)==0;t=L+4|0;s=L+12|0;r=L+24|0;q=K+64|0;x=f;c:while(1){y=x+6|0;b[y>>1]=m&65535|2;c[E+0>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[E+12>>2]=0;c[E+16>>2]=0;c[E+20>>2]=0;c[E+24>>2]=0;c[E+28>>2]=0;c[E>>2]=K;if(hs(E,c[x+60>>2]|0)|0){g=2;break a}if(hs(E,c[x+64>>2]|0)|0){g=2;break a}m=c[x+32>>2]|0;if(b[y>>1]&8192){z=x+48|0;c[(c[m+28>>2]|0)+48>>2]=c[z>>2];c[z>>2]=0}z=x+32|0;if((c[m>>2]|0)>0){p=0;do{k=c[m+(p*72|0)+28>>2]|0;if(k){d=c[v>>2]|0;if(u)n=0;else{n=0;l=D;do{n=(c[l+20>>2]|0)+n|0;l=c[l+16>>2]|0}while((l|0)!=0)}l=c[m+(p*72|0)+16>>2]|0;if(l)c[v>>2]=l;c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L>>2]=82;c[t>>2]=83;c[s>>2]=K;c[r>>2]=D;gu(L,k)|0;c[v>>2]=d;if(c[q>>2]|0){g=2;break a}if(a[w>>0]|0){g=2;break a}if(!u){l=D;do{n=n-(c[l+20>>2]|0)|0;l=c[l+16>>2]|0}while((l|0)!=0)}m=m+(p*72|0)+45|0;a[m>>0]=a[m>>0]&-3|((n|0)!=0&1)<<1&255;m=c[z>>2]|0}p=p+1|0}while((p|0)<(c[m>>2]|0))}b[h>>1]=1;c[o>>2]=m;c[A>>2]=D;n=c[x>>2]|0;if((c[n>>2]|0)>0){m=n+4|0;l=0;do{if(hs(E,c[(c[m>>2]|0)+(l*20|0)>>2]|0)|0){g=2;break a}l=l+1|0}while((l|0)<(c[n>>2]|0))}k=c[x+40>>2]|0;m=(k|0)!=0;n=b[h>>1]|0;if(!m?(C=n&65535,(C&2|0)==0):0)b[h>>1]=C&65534;else b[y>>1]=n&4096|e[y>>1]|4;n=c[x+44>>2]|0;if(!((n|0)==0|m)){H=32;break}c[B>>2]=c[x>>2];if(hs(E,n)|0){g=2;break a}if(hs(E,c[x+36>>2]|0)|0){g=2;break a}c[A>>2]=0;b[h>>1]=e[h>>1]|1;if(b[y>>1]&8192){z=(c[(c[z>>2]|0)+28>>2]|0)+48|0;c[x+48>>2]=c[z>>2];c[z>>2]=0}if(!g?(mv(E,x,c[x+48>>2]|0,26880)|0)!=0:0){g=2;break a}if(a[w>>0]|0){g=2;break a}do if(m){if(mv(E,x,k,26888)|0){g=2;break a}if(a[w>>0]|0){g=2;break a}l=c[k>>2]|0;if((l|0)<=0)break;n=0;m=c[k+4>>2]|0;while(1){if(c[(c[m>>2]|0)+4>>2]&2){H=46;break c}n=n+1|0;if((n|0)>=(l|0))break;else m=m+20|0}}while(0);l=c[x+52>>2]|0;if(!l)break b;x=l;m=b[l+6>>1]|0}if((H|0)==32){ph(K,26832,L);g=2;break a}else if((H|0)==46){ph(K,26896,L);g=2;break a}}while(0);if(g?(I=c[f+48>>2]|0,(I|0)!=0):0){C=c[K>>2]|0;h=c[I>>2]|0;if((h|0)>(c[C+96>>2]|0)){ph(K,26960,L);g=2;break}if((h|0)>0){d=I+4|0;g=0;do{h=(c[d>>2]|0)+(g*20|0)+13|0;a[h>>0]=a[h>>0]&-2;g=g+1|0;h=c[I>>2]|0}while((g|0)<(h|0))}c[f+56>>2]=0;g=c[F>>2]|0;if(!g)if(G)d=I+4|0;else H=60;else while(1){c[g+56>>2]=f;f=c[g+52>>2]|0;if(!f){f=g;H=60;break}else{B=g;g=f;f=B}}d:do if((H|0)==60){d=I+4|0;u=C+65|0;v=L+4|0;w=L+8|0;x=L+28|0;y=L+24|0;z=L+4|0;t=f;e:while(1){s=c[t>>2]|0;if((h|0)<=0)break d;q=t+32|0;g=0;p=0;r=c[d>>2]|0;while(1){c[J>>2]=-1;o=r+13|0;do if(!(a[o>>0]&1)){h=c[r>>2]|0;f:do if(!h)h=0;else while(1){f=c[h+4>>2]|0;if(!(f&4096))break f;if(!(f&262144))h=h+12|0;else h=c[(c[h+20>>2]|0)+4>>2]|0;h=c[h>>2]|0;if(!h){h=0;break}}while(0);if(!(Is(h,J)|0)){f=nv(s,h)|0;c[J>>2]=f;if(!f){n=Ir(C,h,0,0)|0;if(!(a[u>>0]|0)){k=c[t>>2]|0;c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L+24>>2]=0;c[L+28>>2]=0;c[L>>2]=K;c[v>>2]=c[q>>2];c[w>>2]=k;b[x>>1]=1;c[y>>2]=0;A=(c[K>>2]|0)+68|0;f=a[A>>0]|0;a[A>>0]=1;B=hs(L,n)|0;a[A>>0]=f;g:do if(!B){m=k+4|0;l=c[k>>2]|0;k=0;while(1){if((k|0)>=(l|0)){f=0;break g}f=k+1|0;if((yu(c[(c[m>>2]|0)+(k*20|0)>>2]|0,n,-1)|0)<2)break;else k=f}}else f=0;while(0);c[J>>2]=f}else f=0;Ck(C,n)}if((f|0)<=0){f=1;break}}else{k=c[J>>2]|0;f=c[s>>2]|0;if((k|0)<1|(k|0)>(f|0))break e;else f=k}c[L>>2]=0;c[z>>2]=0;k=jr(C,132,L,0)|0;if(!k){g=2;break a}l=k+4|0;c[l>>2]=c[l>>2]|1024;c[k+8>>2]=f;l=c[r>>2]|0;if((l|0)==(h|0))c[r>>2]=k;else c[l+12>>2]=k;Ck(C,h);b[r+16>>1]=f;a[o>>0]=a[o>>0]|1;f=p}else f=p;while(0);g=g+1|0;h=c[I>>2]|0;if((g|0)>=(h|0))break;else{p=f;r=r+20|0}}t=c[t+56>>2]|0;if(!((t|0)!=0&(f|0)!=0))break d}c[L>>2]=g+1;c[L+4>>2]=26880;c[L+8>>2]=f;ph(K,27064,L);g=2;break a}while(0);f=0;while(1){if((f|0)>=(h|0)){g=1;break a}g=f+1|0;if(!(a[(c[d>>2]|0)+(f*20|0)+13>>0]&1))break;else f=g}c[L>>2]=g;ph(K,27e3,L);g=2}else g=1}else g=1;while(0);i=M;return g|0}function eu(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[e>>2]|0;a:do if(f){s=c[f>>2]|0;e=s*24|0;k=ih(x,e,0)|0;if(k)bw(k|0,0,e|0)|0;b[g>>1]=s;c[h>>2]=k;if((s|0)>0){q=f+4|0;t=x+65|0;e=0;r=k;while(1){n=c[q>>2]|0;f=c[n+(e*20|0)>>2]|0;b:do if(!f)f=0;else while(1){l=c[f+4>>2]|0;if(!(l&4096))break b;if(!(l&262144))f=f+12|0;else f=c[(c[f+20>>2]|0)+4>>2]|0;f=c[f>>2]|0;if(!f){f=0;break}}while(0);l=c[n+(e*20|0)+4>>2]|0;do if(!l){while(1){l=a[f>>0]|0;if(l<<24>>24==27){y=24;break}else if(l<<24>>24==-102){v=f;y=18;break}else if(l<<24>>24!=122)break;f=c[f+16>>2]|0}if((y|0)==24){y=0;c[w>>2]=c[f+8>>2];f=qh(x,10344,w)|0;break}if((y|0)==18?(y=0,u=c[v+44>>2]|0,(u|0)!=0):0){f=b[v+32>>1]|0;if(f<<16>>16<0)f=b[u+36>>1]|0;else f=f<<16>>16;if((f|0)>-1)f=c[(c[u+4>>2]|0)+(f*24|0)>>2]|0;else f=20456;c[w>>2]=f;f=qh(x,10344,w)|0;break}c[w>>2]=c[n+(e*20|0)+8>>2];f=qh(x,10344,w)|0}else f=gh(x,l)|0;while(0);if(a[t>>0]|0)break;if(!f){m=0;f=0}else{l=f;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;m=l-f&1073741823}c:do if((e|0)>0){l=0;n=0;o=m;p=f;while(1){if(!($c(c[k+(n*24|0)>>2]|0,p)|0)){f=o;while(1){m=f+-1|0;if((m|0)<=1)break;if(((d[p+m>>0]|0)+-48|0)>>>0<10)f=m;else break}if((f|0)>0)m=(a[p+m>>0]|0)==58?m:o;else m=o;a[p+m>>0]=0;l=l+1|0;c[w>>2]=p;c[w+4>>2]=l;f=qh(x,26824,w)|0;ig(x,p);if(!f){f=0;break c}else n=-1}else{m=o;f=p}n=n+1|0;if((n|0)>=(e|0))break;else{o=m;p=f}}}while(0);c[r>>2]=f;e=e+1|0;if((e|0)<(s|0))r=r+24|0;else{f=t;break a}}ig(x,f);f=t}else y=6}else{b[g>>1]=0;c[h>>2]=0;k=0;y=6}while(0);if((y|0)==6){f=x+65|0;e=0}if(a[f>>0]|0){if((e|0)>0){f=0;do{ig(x,c[k+(f*24|0)>>2]|0);f=f+1|0}while((f|0)!=(e|0))}ig(x,k);c[h>>2]=0;b[g>>1]=0}i=z;return}function fu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!(a[p+65>>0]|0)){c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q+4>>2]=c[g+32>>2];m=c[(c[g>>2]|0)+4>>2]|0;l=f+38|0;if((b[l>>1]|0)>0){g=0;h=0;n=0;o=c[f+4>>2]|0;while(1){k=c[m+(n*20|0)>>2]|0;s=o+22|0;c[o+12>>2]=gh(p,uu(q,k,s)|0)|0;g=fw(d[s>>0]|0,0,g|0,h|0)|0;h=C;s=gv(k)|0;a[o+21>>0]=s<<24>>24==0?65:s;k=_t(e,k)|0;if(k)c[o+16>>2]=gh(p,c[k>>2]|0)|0;n=n+1|0;if((n|0)>=(b[l>>1]|0))break;else o=o+24|0}h=ew(g|0,h|0,2)|0;g=C}else{h=0;g=0}b[f+42>>1]=bs(h,g)|0}i=r;return}function gu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;do if(!b)d=0;else{g=a+4|0;e=c[g>>2]|0;if((e|0)==0?(c[a+8>>2]|0)==0:0){d=0;break}j=a+16|0;c[j>>2]=(c[j>>2]|0)+1;h=a+8|0;a:while(1){if((e|0)!=0?(d=nc[e&127](a,b)|0,(d|0)!=0):0){k=24;break}if(hu(a,c[b>>2]|0)|0){k=19;break}if(ns(a,c[b+36>>2]|0)|0){k=19;break}if(hu(a,c[b+40>>2]|0)|0){k=19;break}if(ns(a,c[b+44>>2]|0)|0){k=19;break}if(hu(a,c[b+48>>2]|0)|0){k=19;break}if(ns(a,c[b+60>>2]|0)|0){k=19;break}if(ns(a,c[b+64>>2]|0)|0){k=19;break}e=c[b+32>>2]|0;if((e|0)!=0?(i=c[e>>2]|0,(i|0)>0):0){f=i;e=e+8|0;while(1){if(gu(a,c[e+20>>2]|0)|0){k=19;break a}f=f+-1|0;if((f|0)<=0)break;else e=e+72|0}}e=c[h>>2]|0;if(e)fc[e&15](a,b);b=c[b+52>>2]|0;if(!b){d=0;break}e=c[g>>2]|0}if((k|0)==19){c[j>>2]=(c[j>>2]|0)+-1;d=2;break}else if((k|0)==24)d=d&2;c[j>>2]=(c[j>>2]|0)+-1}while(0);return d|0}function hu(a,b){a=a|0;b=b|0;var d=0;a:do if((b|0)!=0?(d=c[b>>2]|0,(d|0)>0):0){b=c[b+4>>2]|0;while(1){if(ns(a,c[b>>2]|0)|0){d=2;break a}d=d+-1|0;if((d|0)<=0){d=0;break}else b=b+20|0}}else d=0;while(0);return d|0}function iu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)==0&1;else a=0;i=d;return a|0}function ju(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();q=s;l=c[g+12>>2]|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=200;a[q+24>>0]=1;a[q+25>>0]=0;c[q>>2]=c[d>>2];o=g+46|0;if(b[o>>1]|0){p=g+4|0;m=l+4|0;r=0;do{n=c[(c[m>>2]|0)+((b[(c[p>>2]|0)+(r<<1)>>1]|0)*24|0)>>2]|0;if(r)Ok(q,28920,2);k=c[l>>2]|0;if(!k)h=0;else{h=k;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-k&1073741823}Ok(q,k,h);Ok(q,28928,1);if(!n)h=0;else{h=n;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-n&1073741823}Ok(q,n,h);r=r+1|0}while((r|0)<(e[o>>1]|0))}r=pg(q)|0;vs(d,(a[g+51>>0]&3)==2?1555:2067,f,r,-1,2);i=s;return}function ku(a,b){a=a|0;b=b|0;return 0}function lu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r+8|0;o=r;p=f+52|0;a:do if((c[p>>2]|0)!=0?(h=c[f+48>>2]|0,!((h|0)==0|(f|0)==0)):0){g=f;while(1){n=a[g+4>>0]|0;if(!(n<<24>>24==119|n<<24>>24==116))break;g=c[g+52>>2]|0;if(!g){g=0;break a}}k=c[h+4>>2]|0;g=c[h>>2]|0;while(1){h=g+-1|0;if((g|0)<=0){g=0;break a}if(!(c[(c[k+(h*20|0)>>2]|0)+4>>2]&256))g=h;else break}if((g|0)>=1){g=c[d+12>>2]|0;l=c[g>>2]|0;d=ih(l,72,0)|0;if(d){m=d+0|0;n=m+72|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(n|0));k=o;c[k>>2]=0;c[k+4>>2]=0;k=fr(g,0,0,0,o,d,0,0)|0;if(k){m=d+0|0;h=f+0|0;n=m+72|0;do{c[m>>2]=c[h>>2];m=m+4|0;h=h+4|0}while((m|0)<(n|0));c[f+32>>2]=k;c[q>>2]=0;c[q+4>>2]=0;c[f>>2]=hr(g,0,jr(l,116,q,0)|0)|0;a[f+4>>0]=119;c[f+36>>2]=0;c[d+40>>2]=0;c[d+44>>2]=0;c[d+48>>2]=0;c[p>>2]=0;c[f+56>>2]=0;g=f+6|0;b[g>>1]=(e[g>>1]|0)&57279|8192;c[(c[d+52>>2]|0)+56>>2]=d;c[d+60>>2]=0;c[d+64>>2]=0;g=0}else g=2}else g=2}else g=0}else g=0;while(0);i=r;return g|0}function mu(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;X=i;i=i+32|0;if((i|0)>=(j|0))ba();W=X;T=X+16|0;G=f+12|0;V=c[G>>2]|0;U=c[V>>2]|0;R=g+6|0;n=e[R>>1]|0;b[R>>1]=n|16;S=U+65|0;a:do if(!(a[S>>0]|0)){F=g+32|0;P=c[F>>2]|0;if((P|0)!=0&(n&16|0)==0){Q=c[g>>2]|0;if((c[f+8>>2]|0)==9){n=g;while(1){m=c[n+56>>2]|0;if(!m)break;else n=m}n=c[n+68>>2]|0;if(n){C=V+532|0;c[n+4>>2]=c[C>>2];c[C>>2]=n;a[V+449>>0]=0}}ys(V,P);O=P+8|0;n=c[P>>2]|0;b:do if((n|0)>0){B=0;v=O;c:while(1){if(!(a[v+37>>0]&8)){C=v+16|0;h=c[G>>2]|0;if(c[C>>2]|0){k=h;N=10;break}s=c[h>>2]|0;m=h+532|0;o=c[m>>2]|0;d:do if((c[v+4>>2]|0)==0?(E=c[v+8>>2]|0,!((E|0)==0|(o|0)==0)):0){e:while(1){p=c[o>>2]|0;if((p|0)>0){l=0;do{n=o+(l<<4)+8|0;k=c[n>>2]|0;if(!($c(E,k)|0)){z=l;break e}l=l+1|0}while((l|0)<(p|0))}o=c[o+4>>2]|0;if(!o){N=46;break d}}w=o+(z<<4)+20|0;p=c[w>>2]|0;if(p){g=p;N=21;break c}y=ih(s,76,0)|0;if(!y){g=C;N=23;break c}q=y+0|0;p=q+76|0;do{a[q>>0]=0;q=q+1|0}while((q|0)<(p|0));c[C>>2]=y;t=y+40|0;b[t>>1]=1;c[y>>2]=gh(s,c[n>>2]|0)|0;b[y+36>>1]=-1;b[y+28>>1]=200;A=y+44|0;a[A>>0]=d[A>>0]|2;A=cr(s,c[o+(z<<4)+16>>2]|0,0)|0;c[v+20>>2]=A;if(a[s+65>>0]|0){g=2;break a}x=((a[A+4>>0]|0)+-115&255)<2;if(x?(u=c[A+32>>2]|0,D=c[u>>2]|0,(D|0)>0):0){p=A+6|0;q=D;s=0;do{do if(!(c[u+(s*72|0)+12>>2]|0)){r=c[u+(s*72|0)+16>>2]|0;if(!r)break;if($c(r,c[n>>2]|0)|0)break;c[u+(s*72|0)+24>>2]=y;q=u+(s*72|0)+45|0;a[q>>0]=a[q>>0]|8;b[t>>1]=(b[t>>1]|0)+1<<16>>16;b[p>>1]=e[p>>1]|2048;q=c[u>>2]|0}while(0);s=s+1|0}while((s|0)<(q|0))}if((e[t>>1]|0)>2){g=n;N=34;break c}c[w>>2]=28176;l=c[m>>2]|0;c[m>>2]=o;if(x)p=c[A+52>>2]|0;else p=A;gu(f,p)|0;p=A;while(1){k=c[p+52>>2]|0;if(!k)break;else p=k}k=c[p>>2]|0;p=c[o+(z<<4)+12>>2]|0;do if(p){if(!k)break;r=c[k>>2]|0;k=c[p>>2]|0;if((r|0)!=(k|0)){g=r;N=42;break c}}else p=k;while(0);eu(h,p,y+38|0,y+4|0);if(x){c[w>>2]=(b[A+6>>1]&2048)==0?28280:28240;gu(f,A)|0}c[w>>2]=0;c[m>>2]=l;if(!(c[C>>2]|0))N=46}else N=46;while(0);do if((N|0)==46){N=0;if(!(c[v+8>>2]|0)){o=c[v+20>>2]|0;if(gu(f,o)|0){g=2;break a}m=ih(U,76,0)|0;if(!m){g=C;N=49;break c}q=m+0|0;p=q+76|0;do{a[q>>0]=0;q=q+1|0}while((q|0)<(p|0));c[C>>2]=m;b[m+40>>1]=1;c[W>>2]=m;c[m>>2]=qh(U,27760,W)|0;while(1){n=c[o+52>>2]|0;if(!n)break;else o=n}eu(V,c[o>>2]|0,m+38|0,m+4|0);b[m+36>>1]=-1;b[m+28>>1]=200;C=m+44|0;a[C>>0]=d[C>>0]|2;break}h=Qr(V,0,v)|0;c[C>>2]=h;if(!h){g=2;break a}o=h+40|0;n=b[o>>1]|0;if(n<<16>>16==-1){g=C;N=55;break c}b[o>>1]=n+1<<16>>16;o=h+12|0;if((c[o>>2]|0)==0?(a[h+44>>0]&16)==0:0)break;if(dr(V,h)|0){g=2;break a}C=cr(U,c[o>>2]|0,0)|0;c[v+20>>2]=C;gu(f,C)|0}while(0);if(Nt(V,v)|0){g=2;break a}n=c[P>>2]|0}B=B+1|0;if((B|0)>=(n|0))break b;else v=v+72|0}if((N|0)==10){while(1){h=c[g+56>>2]|0;if(!h)break;else g=h}g=c[g+68>>2]|0;if(!g){g=1;break a}c[k+532>>2]=c[g+4>>2];g=1;break a}else if((N|0)==21){c[W>>2]=k;ph(h,g,W);g=2;break a}else if((N|0)==23){c[g>>2]=0;g=2;break a}else if((N|0)==34){c[W>>2]=c[g>>2];ph(h,28128,W);g=2;break a}else if((N|0)==42){c[W>>2]=c[n>>2];c[W+4>>2]=g;c[W+8>>2]=k;ph(h,28200,W);c[m>>2]=l;g=2;break a}else if((N|0)==49){c[g>>2]=0;g=2;break a}else if((N|0)==55){c[W>>2]=c[h>>2];ph(V,27776,W);c[g>>2]=0;g=2;break a}}while(0);if(!(a[S>>0]|0)){v=c[F>>2]|0;f:do if(((c[v>>2]|0)+-1|0)>0){w=g+36|0;y=0;z=v+8|0;A=v+80|0;g:while(1){x=c[A+16>>2]|0;if(!((c[z+16>>2]|0)==0|(x|0)==0)){D=d[A+36>>0]|0;u=D&32;s=(u|0)==0;u=u>>>5;t=A+44|0;if(D&4){if(c[t>>2]|0){N=73;break}n=A+48|0;if(c[n>>2]|0){N=73;break}k=x+38|0;o=b[k>>1]|0;if(o<<16>>16>0){h=x+4|0;r=y+1|0;q=0;do{m=c[(c[h>>2]|0)+(q*24|0)>>2]|0;l=0;do{p=ov(c[v+(l*72|0)+24>>2]|0,m)|0;if((p|0)>-1){o=l;N=77;break}l=l+1|0}while((l|0)<(r|0));if((N|0)==77){N=0;pv(V,v,o,p,r,q,u,w);o=b[k>>1]|0}q=q+1|0}while((q|0)<(o<<16>>16|0))}}else n=A+48|0;o=c[t>>2]|0;if(o){if(c[n>>2]|0){N=81;break}if(!s){qv(o,c[A+40>>2]|0);o=c[t>>2]|0}c[w>>2]=os(c[V>>2]|0,c[w>>2]|0,o)|0;c[t>>2]=0}m=c[n>>2]|0;if((m|0)!=0?(M=m+4|0,(c[M>>2]|0)>0):0){l=y+1|0;p=0;do{h=c[(c[m>>2]|0)+(p<<3)>>2]|0;k=ov(x,h)|0;if((k|0)<0){N=91;break g}else o=0;while(1){n=ov(c[v+(o*72|0)+24>>2]|0,h)|0;if((n|0)>-1)break;o=o+1|0;if((o|0)>=(l|0)){N=91;break g}}pv(V,v,o,n,l,k,u,w);p=p+1|0}while((p|0)<(c[M>>2]|0))}}y=y+1|0;if((y|0)>=((c[v>>2]|0)+-1|0))break f;else{z=z+72|0;A=A+72|0}}if((N|0)==73){c[W>>2]=0;ph(V,27928,W);g=2;break a}else if((N|0)==81){ph(V,27984,W);g=2;break a}else if((N|0)==91){c[W>>2]=h;ph(V,28040,W);g=2;break a}}while(0);h=c[Q>>2]|0;o=(h|0)>0;h:do if(o){k=c[Q+4>>2]|0;n=0;do{m=c[k+(n*20|0)>>2]|0;l=a[m>>0]|0;if(l<<24>>24==122){if((a[c[m+16>>2]>>0]|0)==116)break h}else if(l<<24>>24==116)break h;n=n+1|0}while((n|0)<(h|0))}else n=0;while(0);if((n|0)<(h|0)){M=c[Q+4>>2]|0;n=c[(c[V>>2]|0)+24>>2]|0;if(!(n&32))L=0;else L=(n&64|0)==0;if(o){H=U+20|0;I=U+16|0;J=T+4|0;K=0;h=0;do{m=M+(K*20|0)|0;o=c[m>>2]|0;n=a[o>>0]|0;if(n<<24>>24==122)if((a[c[o+16>>2]>>0]|0)==116){f=c[(c[o+12>>2]|0)+8>>2]|0;N=110}else N=106;else if(n<<24>>24==116){f=0;N=110}else N=106;do if((N|0)==106){h=hr(V,h,o)|0;if(h){C=M+(K*20|0)+4|0;B=(c[h>>2]|0)+-1|0;A=c[h+4>>2]|0;c[A+(B*20|0)+4>>2]=c[C>>2];D=M+(K*20|0)+8|0;c[A+(B*20|0)+8>>2]=c[D>>2];c[C>>2]=0;c[D>>2]=0}c[m>>2]=0}else if((N|0)==110){if((c[P>>2]|0)>0){D=(f|0)==0;E=(f|0)!=0;F=0;G=O;n=0;while(1){s=c[G+16>>2]|0;m=c[G+20>>2]|0;o=c[G+12>>2]|0;if(!o)o=c[s>>2]|0;if(a[S>>0]|0)break;if((m|0)!=0?(b[m+6>>1]&512)!=0:0){C=0;N=125}else N=117;do if((N|0)==117){N=0;if(!D?($c(f,o)|0)!=0:0)break;p=c[s+68>>2]|0;if(!p){m=0;C=27816;N=125;break}l=c[H>>2]|0;q=c[I>>2]|0;if((l|0)>0){k=0;while(1){m=k+1|0;if((c[q+(k<<4)+12>>2]|0)==(p|0)){m=k;break}if((m|0)<(l|0))k=m;else break}if((m|0)>-1)l=m;else{m=0;C=27816;N=125;break}}else l=0;m=0;C=c[q+(l<<4)>>2]|0;N=125}while(0);do if((N|0)==125){N=0;B=s+38|0;t=b[B>>1]|0;if(t<<16>>16<=0)break;x=s+4|0;w=(m|0)!=0;q=E&w;y=(F|0)>0;r=y&D;v=G+36|0;y=y^1;u=G+48|0;p=(C|0)==0;z=0;do{s=c[x>>2]|0;k=c[s+(z*24|0)>>2]|0;if(!(q?(rv(c[(c[(c[m>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0,0,f,0)|0)==0:0))N=129;i:do if((N|0)==129){N=0;if(a[s+(z*24|0)+23>>0]&2)break;if(r){if(!((a[v>>0]&4)==0|y)){s=0;do{if((ov(c[P+(s*72|0)+24>>2]|0,k)|0)>-1){n=1;break i}s=s+1|0}while((s|0)<(F|0))}if((sv(c[u>>2]|0,k)|0)>-1){n=1;break}}t=pt(U,27,k)|0;if(!L?(c[P>>2]|0)<=1:0){l=k;A=0}else N=137;do if((N|0)==137){N=0;t=Vq(V,122,pt(U,27,o)|0,t,0)|0;if(!p)t=Vq(V,122,pt(U,27,C)|0,t,0)|0;if(!L){l=k;A=0;break}c[W>>2]=o;c[W+4>>2]=k;A=qh(U,27824,W)|0;l=A}while(0);h=hr(V,h,t)|0;c[T>>2]=l;if(!l)t=0;else{t=l;while(1)if(!(a[t>>0]|0))break;else t=t+1|0;t=t-l&1073741823}c[J>>2]=t;ir(V,h,T,0);do if(h){if(!(b[R>>1]&512))break;s=(c[h>>2]|0)+-1|0;k=c[h+4>>2]|0;if(w)t=gh(U,c[(c[(c[m>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0)|0;else{c[W>>2]=C;c[W+4>>2]=o;c[W+8>>2]=l;t=qh(U,27832,W)|0}c[k+(s*20|0)+8>>2]=t;t=k+(s*20|0)+13|0;a[t>>0]=a[t>>0]|2}while(0);ig(U,A);t=b[B>>1]|0;n=1}while(0);z=z+1|0}while((z|0)<(t<<16>>16|0))}while(0);F=F+1|0;if((F|0)>=(c[P>>2]|0))break;else G=G+72|0}if(n)break}if(!f){ph(V,27872,W);break}else{c[W>>2]=f;ph(V,27848,W);break}}while(0);K=K+1|0}while((K|0)<(c[Q>>2]|0))}else h=0;Jk(U,Q);c[g>>2]=h}else h=c[g>>2]|0;if((h|0)!=0?(c[h>>2]|0)>(c[U+96>>2]|0):0){ph(V,27896,W);g=0}else g=0}else g=2}else g=1}else g=2;while(0);i=X;return g|0}function nu(a,b){a=a|0;b=b|0;var d=0;d=c[a+12>>2]|0;while(1){a=c[b+56>>2]|0;if(!a)break;else b=a}b=c[b+68>>2]|0;if(b)c[d+532>>2]=c[b+4>>2];return}function ou(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=f+6|0;i=e[h>>1]|0;if((i&32|0)==0?(b[h>>1]=i|32,l=c[d+12>>2]|0,j=c[f+32>>2]|0,g=c[j>>2]|0,(g|0)>0):0){f=0;h=j+8|0;while(1){d=c[h+16>>2]|0;if(((d|0)!=0?(a[d+44>>0]&2)!=0:0)?(k=c[h+20>>2]|0,(k|0)!=0):0){g=k;while(1){i=c[g+52>>2]|0;if(!i)break;else g=i}fu(l,d,g);g=c[j>>2]|0}f=f+1|0;if((f|0)>=(g|0))break;else h=h+72|0}}return}function pu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((a|0)!=0?(d=c[a>>2]|0,(d|0)>0):0){g=c[a+4>>2]|0;f=0;do{e=c[g+(f*20|0)>>2]|0;if((e|0)!=0?(h=c[e+24>>2]|0,(h|0)>(c[b>>2]|0)):0){c[b>>2]=h;d=c[a>>2]|0}f=f+1|0}while((f|0)<(d|0))}return}function qu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;if(((b|0)!=0?(Cs(a,c[b>>2]|0,d,e),Cs(a,c[b+40>>2]|0,d,e),Cs(a,c[b+48>>2]|0,d,e),g=b+44|0,c[g>>2]=Ds(a,c[g>>2]|0,d,e)|0,g=b+36|0,c[g>>2]=Ds(a,c[g>>2]|0,d,e)|0,qu(a,c[b+52>>2]|0,d,e),g=c[b+32>>2]|0,(g|0)!=0):0)?(f=c[g>>2]|0,(f|0)>0):0){b=f;f=g+8|0;while(1){qu(a,c[f+20>>2]|0,d,e);b=b+-1|0;if((b|0)<=0)break;else f=f+72|0}}return}function ru(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[d+48>>2]|0;l=c[f>>2]|0;g=c[b>>2]|0;m=Ns(g,l+1|0,1)|0;if((m|0)!=0&(l|0)>0){k=f+4|0;i=g+8|0;h=m+16|0;j=0;do{g=c[k>>2]|0;f=c[g+(j*20|0)>>2]|0;if(!(c[f+4>>2]&256)){g=Os(b,d,(e[g+(j*20|0)+16>>1]|0)+-1|0)|0;if(!g)g=c[i>>2]|0;f=tv(b,f,c[g>>2]|0)|0;c[(c[k>>2]|0)+(j*20|0)>>2]=f}else g=_t(b,f)|0;c[m+(j<<2)+20>>2]=g;a[(c[h>>2]|0)+j>>0]=a[(c[k>>2]|0)+(j*20|0)+12>>0]|0;j=j+1|0}while((j|0)!=(l|0))}return m|0}function su(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;h=c[d>>2]|0;a:do if((f|0)!=0?(a[h+65>>0]|0)==0:0){k=c[f>>2]|0;if((k|0)>(c[h+96>>2]|0)){c[n>>2]=g;ph(d,27120,n);e=1;break}m=c[e>>2]|0;if((k|0)>0){h=k;e=0;l=c[f+4>>2]|0;while(1){k=b[l+16>>1]|0;if(k<<16>>16){k=k&65535;h=c[m>>2]|0;if((k|0)>(h|0))break;uv(d,m,k+-1|0,c[l>>2]|0,g,0);h=c[f>>2]|0}e=e+1|0;if((e|0)>=(h|0)){e=0;break a}else l=l+20|0}c[n>>2]=e+1;c[n+4>>2]=g;c[n+8>>2]=h;ph(d,27064,n);e=1}else e=0}else e=0;while(0);i=o;return e|0}function tu(b,e,f,g,h,i,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=b+8|0;u=c[t>>2]|0;w=u+32|0;l=c[w>>2]|0;x=ts(u)|0;if(i){n=sh(u,46,i,0,0)|0;m=f+8|0;p=c[m>>2]|0;r=i+1|0;o=f+12|0;q=c[o>>2]|0;if(j)c[j>>2]=(c[j>>2]|0)+1;p=sh(u,42,p,r,q)|0;th(u,p,j,-6);p=p+2|0;sh(u,43,p,x,p)|0;p=c[w>>2]|0;if(p>>>0>n>>>0)c[(c[u+4>>2]|0)+(n*20|0)+8>>2]=p;c[(c[u+24>>2]|0)+88>>2]=p+-1;sh(u,33,c[m>>2]|0,r,(c[o>>2]|0)+-1|0)|0;sh(u,25,1,i,0)|0}if(!(a[(c[b>>2]|0)+65>>0]|0)){et(u,c[e+12>>2]|0,x);switch(d[g>>0]|0){case 12:case 14:{m=b+19|0;o=a[m>>0]|0;if(o<<24>>24){i=o+-1<<24>>24;a[m>>0]=i;n=c[b+((i&255)<<2)+24>>2]|0;if(!(i<<24>>24))s=12;else{o=o+-2<<24>>24;a[m>>0]=o;o=c[b+((o&255)<<2)+24>>2]|0;m=n}}else{s=b+72|0;n=(c[s>>2]|0)+1|0;c[s>>2]=n;s=12}if((s|0)==12){m=b+72|0;o=(c[m>>2]|0)+1|0;c[m>>2]=o;m=n}sh(u,49,c[f+8>>2]|0,c[f+12>>2]|0,m)|0;n=g+4|0;sh(u,74,c[n>>2]|0,o,0)|0;sh(u,75,c[n>>2]|0,m,o)|0;n=c[u+4>>2]|0;if(n)a[n+(((c[w>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,o);Wr(b,m);break}case 11:{o=g+1|0;a[o>>0]=xu(c[c[(c[e>>2]|0)+4>>2]>>2]|0,a[o>>0]|0)|0;n=b+19|0;m=a[n>>0]|0;if(!(m<<24>>24)){s=b+72|0;n=(c[s>>2]|0)+1|0;c[s>>2]=n}else{s=m+-1<<24>>24;a[n>>0]=s;n=c[b+((s&255)<<2)+24>>2]|0}s=f+8|0;th(u,sh(u,49,c[s>>2]|0,1,n)|0,o,1);$s(b,c[s>>2]|0,1);sh(u,110,c[g+4>>2]|0,n,0)|0;Wr(b,n);break}case 10:{s=c[f+8>>2]|0;sh(c[t>>2]|0,32,s,c[g+4>>2]|0,1)|0;$s(b,s,1);break}case 13:{q=g+8|0;n=c[q>>2]|0;if(!n){n=c[f+12>>2]|0;o=b+60|0;m=c[o>>2]|0;j=b+56|0;p=c[j>>2]|0;if((p|0)<(n|0)){s=b+72|0;m=c[s>>2]|0;c[s>>2]=m+n;m=m+1|0}else{c[o>>2]=m+n;c[j>>2]=p-n}c[q>>2]=m;c[g+12>>2]=n}else{m=n;n=c[g+12>>2]|0}s=c[f+8>>2]|0;sh(c[t>>2]|0,32,s,m,n)|0;$s(b,s,n);sh(u,22,c[g+4>>2]|0,0,0)|0;break}default:{i=f+8|0;s=f+12|0;sh(u,35,c[i>>2]|0,c[s>>2]|0,0)|0;$s(b,c[i>>2]|0,c[s>>2]|0)}}m=c[e+8>>2]|0;if(m)sh(u,140,m,k,0)|0;m=c[u+24>>2]|0;n=~x;if((x|0)<0?(v=c[m+112>>2]|0,(v|0)!=0):0)c[v+(n<<2)>>2]=c[w>>2];c[m+88>>2]=(c[w>>2]|0)+-1;sh(u,18,h,0,0)|0}else l=0;return l|0}function uu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+80|0;if((i|0)>=(j|0))ba();r=s+64|0;q=s+32|0;h=s;a[r>>0]=1;if((f|0)!=0?(c[e+4>>2]|0)!=0:0){k=d[f>>0]|0;a:do if((k|0)==154|(k|0)==156){p=b[f+32>>1]|0;h=p<<16>>16;if(e){o=f+28|0;b:while(1){while(1){n=c[e+4>>2]|0;m=c[n>>2]|0;c:do if((m|0)>0){f=c[o>>2]|0;k=0;while(1){l=k+1|0;if((c[n+(k*72|0)+48>>2]|0)==(f|0)){l=k;break c}if((l|0)<(m|0))k=l;else break}}else l=0;while(0);if((l|0)>=(m|0))break;m=c[n+(l*72|0)+24>>2]|0;l=c[n+(l*72|0)+28>>2]|0;f=(m|0)==0;if(!((e|0)!=0&f))break b}e=c[e+16>>2]|0;if(!e){h=0;break a}}if(!f){if(l){if(p<<16>>16<=-1){h=0;break}k=c[l>>2]|0;if((h|0)>=(c[k>>2]|0)){h=0;break}h=c[(c[k+4>>2]|0)+(h*20|0)>>2]|0;c[q+4>>2]=c[l+32>>2];c[q+16>>2]=e;c[q>>2]=c[e>>2];h=uu(q,h,r)|0;break}if(c[m+68>>2]|0){if(p<<16>>16<0)h=b[m+36>>1]|0;if((h|0)<0)h=11144;else{p=c[m+4>>2]|0;q=c[p+(h*24|0)+12>>2]|0;a[r>>0]=a[p+(h*24|0)+22>>0]|0;h=q}}else h=0}else h=0}else h=0}else if((k|0)==119){p=c[f+20>>2]|0;q=c[c[(c[p>>2]|0)+4>>2]>>2]|0;c[h+4>>2]=c[p+32>>2];c[h+16>>2]=e;c[h>>2]=c[e>>2];h=uu(h,q,r)|0}else h=0;while(0);if(g)a[g>>0]=a[r>>0]|0}else h=0;i=s;return h|0}function vu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;j=c[b+8>>2]|0;h=b+19|0;i=a[h>>0]|0;if(!(i<<24>>24)){i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h}else{i=i+-1<<24>>24;a[h>>0]=i;h=c[b+((i&255)<<2)+24>>2]|0}th(j,sh(j,69,d,e,g)|0,f,-14);sh(j,49,g,f,h)|0;sh(j,110,d,h,0)|0;Wr(b,h);return}function wu(b,d,f,g,h,i){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;u=b+8|0;z=c[u>>2]|0;y=d+24|0;k=a[y>>0]&1;n=k<<24>>24==0;k=(k^1)&255;j=c[d>>2]|0;o=c[j>>2]|0;p=o+h+k|0;s=b+72|0;m=c[s>>2]|0;x=m+1|0;c[s>>2]=x;v=d+4|0;q=c[v>>2]|0;i=(i|0)==0;if(i){c[s>>2]=x+p;t=m+2|0}else t=g-o-k|0;Zs(b,j,t,1);if(n)sh(z,73,c[d+8>>2]|0,t+o|0,0)|0;if(i){sh(c[u>>2]|0,32,g,k+o+t|0,h)|0;$s(b,g,h)}sh(z,49,t+q|0,p-q|0,x)|0;if((q|0)>0){j=c[s>>2]|0;h=j+1|0;i=c[v>>2]|0;c[s>>2]=i+j;if(n)g=sh(z,46,t+o|0,0,0)|0;else g=sh(z,59,c[d+8>>2]|0,0,0)|0;sh(z,42,h,t,c[v>>2]|0)|0;m=c[d+20>>2]|0;if((m|0)<0)m=(c[z+32>>2]|0)+-1|0;if(!(a[(c[z>>2]|0)+65>>0]|0))m=(c[z+4>>2]|0)+(m*20|0)|0;else m=29120;if(!(a[(c[b>>2]|0)+65>>0]|0)){c[m+8>>2]=p-i;m=m+16|0;i=c[m>>2]|0;bw(c[i+16>>2]|0,0,e[i+6>>1]|0)|0;th(z,-1,i,-6);c[m>>2]=Qs(b,c[d>>2]|0,q,(e[i+8>>1]|0)+-1|0)|0;m=z+32|0;i=c[m>>2]|0;l=i+1|0;sh(z,43,l,0,l)|0;l=ts(z)|0;c[d+16>>2]=l;k=(c[s>>2]|0)+1|0;c[s>>2]=k;c[d+12>>2]=k;sh(z,17,k,l,0)|0;l=d+8|0;sh(z,119,c[l>>2]|0,0,0)|0;k=c[m>>2]|0;if(k>>>0>g>>>0)c[(c[z+4>>2]|0)+(g*20|0)+8>>2]=k;j=z+24|0;c[(c[j>>2]|0)+88>>2]=k+-1;k=c[v>>2]|0;sh(c[u>>2]|0,32,t,h,k)|0;$s(b,t,k);k=c[m>>2]|0;if(k>>>0>i>>>0)c[(c[z+4>>2]|0)+(i*20|0)+8>>2]=k;c[(c[j>>2]|0)+88>>2]=k+-1;r=23}}else{l=d+8|0;r=23}if((r|0)==23?(sh(z,110-(a[y>>0]&1)|0,c[l>>2]|0,x,0)|0,w=c[f+8>>2]|0,(w|0)!=0):0){k=c[f+12>>2]|0;k=sh(z,139,(k|0)==0?w:k+1|0,0,-1)|0;sh(z,105,c[l>>2]|0,0,0)|0;sh(z,95,c[l>>2]|0,0,0)|0;j=c[z+32>>2]|0;if(j>>>0>k>>>0)c[(c[z+4>>2]|0)+(k*20|0)+8>>2]=j;c[(c[z+24>>2]|0)+88>>2]=j+-1}return}function xu(a,b){a=a|0;b=b|0;a=gv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function yu(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;do if(!((d|0)==0|(e|0)==0)){j=c[d+4>>2]|0;k=c[e+4>>2]|0;l=k|j;if(l&1024){if((j&1024&k|0)!=0?(c[d+8>>2]|0)==(c[e+8>>2]|0):0){g=0;break}g=2;break}g=a[d>>0]|0;h=a[e>>0]|0;if(g<<24>>24!=h<<24>>24){if(g<<24>>24==95?(yu(c[d+12>>2]|0,e,f)|0)<2:0){g=1;break}if(h<<24>>24==95?(yu(d,c[e+12>>2]|0,f)|0)<2:0){g=1;break}g=2;break}if((!(g<<24>>24==-100|g<<24>>24==-102)?(i=c[d+8>>2]|0,(i|0)!=0):0)?(Wv(i,c[e+8>>2]|0)|0)!=0:0){g=g<<24>>24==95?1:2;break}if(!((k^j)&16)){if(!(l&16384)){if(l&2048){g=2;break}if(yu(c[d+12>>2]|0,c[e+12>>2]|0,f)|0){g=2;break}if(yu(c[d+16>>2]|0,c[e+16>>2]|0,f)|0){g=2;break}if(Ps(c[d+20>>2]|0,c[e+20>>2]|0,f)|0){g=2;break}if(!(l&8192)){if((b[d+32>>1]|0)!=(b[e+32>>1]|0)){g=2;break}h=c[d+28>>2]|0;g=c[e+28>>2]|0;if((h|0)!=(g|0)?(h|0)!=(f|0)|(g|0)>-1:0){g=2;break}}}g=0}else g=2}else g=(e|0)==(d|0)?0:2;while(0);return g|0}function zu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b+8|0;a[f>>0]=e;a:do if(d){while(1){if((a[d>>0]|0)!=e<<24>>24)break;zu(b,c[d+12>>2]|0,e);d=c[d+16>>2]|0;a[f>>0]=e;if(!d)break a}vv(b,d,0)|0}while(0);return}function Au(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;D=c[f>>2]|0;Q=c[D>>2]|0;S=c[Q>>2]|0;L=S+65|0;do if(!(a[L>>0]|0)){T=f+20|0;k=c[T>>2]|0;h=k+(g*48|0)|0;_=D+68|0;R=c[h>>2]|0;s=R+12|0;l=c[s>>2]|0;x=wv(_,l)|0;w=C;j=a[R>>0]|0;u=j&255;do if(j<<24>>24==76){i=k+(g*48|0)+32|0;c[i>>2]=0;c[i+4>>2]=0;i=0;t=0}else if(j<<24>>24==75){m=R+20|0;if(!(c[R+4>>2]&2048)){i=Hu(_,c[m>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t;break}else{i=xv(_,c[m>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t;break}}else{i=wv(_,c[R+16>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t}while(0);q=wv(_,R)|0;m=C;N=R+4|0;if(!(c[N>>2]&1)){O=0;P=0;v=m}else{o=b[R+36>>1]|0;n=c[_>>2]|0;a:do if((n|0)>0){p=0;while(1){if((c[D+(p<<2)+72>>2]|0)==(o|0))break;p=p+1|0;if((p|0)>=(n|0)){p=0;o=0;break a}}p=ew(1,0,p|0)|0;o=C}else{p=0;o=0}while(0);O=fw(p|0,o|0,-1,-1)|0;P=C;q=p|q;v=o|m}r=k+(g*48|0)+40|0;c[r>>2]=q;c[r+4>>2]=v;r=k+(g*48|0)+8|0;c[r>>2]=-1;c[k+(g*48|0)+4>>2]=-1;z=k+(g*48|0)+18|0;b[z>>1]=0;p=u+-75|0;if(p>>>0<9?(499>>>(p&511)&1)!=0:0){b:do if(!l)l=0;else while(1){p=c[l+4>>2]|0;if(!(p&4096))break b;if(!(p&262144))n=l+12|0;else n=c[(c[l+20>>2]|0)+4>>2]|0;l=c[n>>2]|0;if(!l){l=0;break}}while(0);p=c[R+16>>2]|0;c:do if(!p)p=0;else while(1){o=c[p+4>>2]|0;if(!(o&4096))break c;if(!(o&262144))p=p+12|0;else p=c[(c[p+20>>2]|0)+4>>2]|0;p=c[p>>2]|0;if(!p){p=0;break}}while(0);t=(i&x|0)==0&(t&w|0)==0?4095:1024;if((a[l>>0]|0)==-102){m=c[l+28>>2]|0;c[r>>2]=m;c[k+(g*48|0)+12>>2]=b[l+32>>1];if((u|0)==75)n=1;else if((u|0)==76)n=128;else n=2<<u+-79&65535;b[z>>1]=n&t}else m=-1;if((p|0)!=0?(a[p>>0]|0)==-102:0){if((m|0)>-1){l=Ir(S,R,0,0)|0;if(a[L>>0]|0){Ck(S,l);break}m=vv(f,l,3)|0;if(!m)break;n=c[T>>2]|0;k=n+(m*48|0)|0;c[n+(m*48|0)+4>>2]=g;b[n+(m*48|0)+16>>1]=b[n+(g*48|0)+16>>1]|0;h=n+(g*48|0)+22|0;a[h>>0]=(a[h>>0]|0)+1<<24>>24;h=n+(g*48|0)|0;p=n+(g*48|0)+20|0;b[p>>1]=e[p>>1]|8;if(((a[R>>0]|0)==79?(c[N>>2]&1|0)==0:0)?(b[S+60>>1]&512)==0:0){s=n+(g*48|0)+18|0;b[s>>1]=e[s>>1]|1024;s=1024}else s=0}else{s=0;l=R;k=h}j=l+16|0;o=(c[j>>2]|0)+4|0;n=c[o>>2]|0;m=n&256;i=l+12|0;p=c[i>>2]|0;do if((m|0)==(c[p+4>>2]&256|0)){if(m){c[o>>2]=n&-257;break}p=(_t(Q,p)|0)==0;n=c[i>>2]|0;if(p)p=n;else{p=n+4|0;c[p>>2]=c[p>>2]|256;p=n}}while(0);n=c[j>>2]|0;c[j>>2]=p;c[i>>2]=n;m=a[l>>0]|0;if((m&255)>79){m=((m&255)+176^2)+80&255;a[l>>0]=m}l=c[n+4>>2]|0;if(l&4096)do{if(!(l&262144))n=n+12|0;else n=c[(c[n+20>>2]|0)+4>>2]|0;n=c[n>>2]|0;l=c[n+4>>2]|0}while((l&4096|0)!=0);c[k+8>>2]=c[n+28>>2];c[k+12>>2]=b[n+32>>1];l=k+32|0;c[l>>2]=O|x;c[l+4>>2]=P|w;l=k+40|0;c[l>>2]=q;c[l+4>>2]=v;l=m&255;if((l|0)==76)l=128;else if((l|0)==75)l=1;else l=2<<l+-79&65535;b[k+18>>1]=l+s&(t&65535)}}else H=59;do if((H|0)==59){if(j<<24>>24==74){if((a[f+8>>0]|0)!=72)break;m=(c[R+20>>2]|0)+4|0;i=R+36|0;j=0;while(1){q=d[34144+j>>0]|0;l=Ir(S,l,0,0)|0;l=Vq(Q,q,l,Ir(S,c[(c[m>>2]|0)+(j*20|0)>>2]|0,0,0)|0,0)|0;if(l){q=l+4|0;c[q>>2]=c[q>>2]|c[N>>2]&1;b[l+36>>1]=b[i>>1]|0}q=vv(f,l,3)|0;Au(f,q);k=c[T>>2]|0;c[k+(q*48|0)+4>>2]=g;b[k+(q*48|0)+16>>1]=b[k+(g*48|0)+16>>1]|0;q=k+(g*48|0)+22|0;a[q>>0]=(a[q>>0]|0)+1<<24>>24;j=j+1|0;if((j|0)==2)break;l=c[s>>2]|0}h=k+(g*48|0)|0;break}else if(j<<24>>24!=71)break;x=ih(S,416,0)|0;d:do if(x){bw(x|0,0,416)|0;c[k+(g*48|0)+12>>2]=x;A=k+(g*48|0)+20|0;b[A>>1]=e[A>>1]|16;c[x>>2]=D;c[x+4>>2]=0;A=x+12|0;c[A>>2]=0;c[x+16>>2]=8;B=x+20|0;c[B>>2]=x+24;zu(x,R,71);m=c[A>>2]|0;if((m|0)>0)do{m=m+-1|0;Au(x,m)}while((m|0)>0);if(!(a[L>>0]|0)){p=c[A>>2]|0;if((p|0)>0){w=D+68|0;v=-1;u=-1;i=-1;h=-1;t=c[B>>2]|0;while(1){p=p+-1|0;o=t+18|0;s=b[o>>1]|0;if(!(s&255)){l=ih(S,408,0)|0;if(!l){m=v;n=u;i=0;h=0}else{c[t+12>>2]=l;n=t+20|0;b[n>>1]=e[n>>1]|32;b[o>>1]=512;c[l>>2]=c[f>>2];n=l+4|0;c[n>>2]=0;m=l+12|0;c[m>>2]=0;c[l+16>>2]=8;q=l+20|0;c[q>>2]=l+24;zu(l,c[t>>2]|0,72);o=c[m>>2]|0;if((o|0)>0)do{o=o+-1|0;Au(l,o)}while((o|0)>0);c[n>>2]=f;if((a[L>>0]|0)==0?(y=c[m>>2]|0,(y|0)>0):0){o=0;n=0;h=0;r=c[q>>2]|0;while(1){m=(d[c[r>>2]>>0]|0)+-75|0;do if(m>>>0<9){if(!(499>>>(m&511)&1))break;l=c[r+8>>2]|0;j=c[w>>2]|0;e:do if((j|0)>0){m=0;while(1){if((c[D+(m<<2)+72>>2]|0)==(l|0))break;m=m+1|0;if((m|0)>=(j|0)){m=0;l=0;break e}}m=ew(1,0,m|0)|0;l=C}else{m=0;l=0}while(0);o=m|o;n=l|n}while(0);h=h+1|0;if((h|0)>=(y|0))break;else r=r+48|0}}else{o=0;n=0}m=o&v;n=n&u;i=0;h=0}}else{n=b[t+20>>1]|0;if(!(n&8)){q=c[t+8>>2]|0;l=c[w>>2]|0;m=(l|0)>0;f:do if(m){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(l|0)){j=0;r=0;break f}}j=ew(1,0,o|0)|0;r=C}else{j=0;r=0}while(0);if(!(n&2)){o=j;q=r}else{q=c[(c[B>>2]|0)+((c[t+4>>2]|0)*48|0)+8>>2]|0;g:do if(m){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(l|0)){o=0;q=0;break g}}o=ew(1,0,o|0)|0;q=C}else{o=0;q=0}while(0);o=o|j;q=q|r}l=(s&2)==0;m=o&v;n=q&u;i=l?0:o&i;h=l?0:q&h}else{m=v;n=u}}o=(m|0)!=0|(n|0)!=0;if(!((p|0)>0&o))break;else{v=m;u=n;t=t+48|0}}q=x+408|0;c[q>>2]=m;c[q+4>>2]=n;b[z>>1]=(m|0)==0&(n|0)==0?0:256;if(o)H=104}else{i=x+408|0;c[i>>2]=-1;c[i+4>>2]=-1;b[z>>1]=256;i=-1;h=-1;H=104}h:do if((H|0)==104)if((c[A>>2]|0)==2){l=c[B>>2]|0;m=0;i:while(1){j=m+1|0;if((b[l+18>>1]|0)!=512)if(!m)o=l;else break h;else{n=c[l+12>>2]|0;if((c[n+12>>2]|0)<=(m|0))break h;o=(c[n+20>>2]|0)+(m*48|0)|0}if(!o)break h;else p=0;while(1){if((b[l+66>>1]|0)==512){n=c[l+60>>2]|0;if((c[n+12>>2]|0)<=(p|0)){m=j;continue i}n=(c[n+20>>2]|0)+(p*48|0)|0;if(!n){m=j;continue i}}else if(!p)n=l+48|0;else{m=j;continue i}yv(f,o,n);l=c[B>>2]|0;p=p+1|0}}}while(0);if(!((i|0)==0&(h|0)==0)){r=D+68|0;q=-1;s=0;while(1){n=c[A>>2]|0;if((n|0)<=0)break d;p=c[B>>2]|0;while(1){j=n;n=n+-1|0;l=p+20|0;b[l>>1]=e[l>>1]&65471;l=c[p+8>>2]|0;if((l|0)!=(q|0)){m=c[r>>2]|0;j:do if((m|0)>0){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(l|0))break;o=o+1|0;if((o|0)>=(m|0)){o=0;m=0;break j}}o=ew(1,0,o|0)|0;m=C}else{o=0;m=0}while(0);if(!((o&i|0)==0&(m&h|0)==0)){o=j;break}}if((n|0)<=0)break d;else p=p+48|0}m=c[p+12>>2]|0;if((o|0)<1)break d;else o=l;while(1){if((o|0)==(l|0)){if((c[p+12>>2]|0)!=(m|0)){n=l;m=1;break}q=gv(c[(c[p>>2]|0)+16>>2]|0)|0;if(!(q<<24>>24==0|q<<24>>24==(gv(c[(c[p>>2]|0)+12>>2]|0)|0)<<24>>24)){n=l;m=1;break}q=p+20|0;b[q>>1]=e[q>>1]|64}else{q=p+20|0;b[q>>1]=e[q>>1]&65471}if((n|0)<=0){n=l;m=0;break}o=c[p+56>>2]|0;n=n+-1|0;p=p+48|0}s=s+1|0;if(!((s|0)<2&m))break;else q=n}if(!m){l=c[A>>2]|0;if((l|0)>0){m=0;i=0;j=c[B>>2]|0;while(1){l=l+-1|0;if(b[j+20>>1]&64){m=Ir(S,c[(c[j>>2]|0)+16>>2]|0,0,0)|0;i=hr(c[D>>2]|0,i,m)|0;m=c[(c[j>>2]|0)+12>>2]|0}if((l|0)<=0){l=m;break}else j=j+48|0}}else{l=0;i=0}j=Vq(Q,75,Ir(S,l,0,0)|0,0,0)|0;if(!j)Jk(S,i);else{q=j+4|0;c[q>>2]=c[q>>2]|c[N>>2]&1;b[j+36>>1]=b[R+36>>1]|0;c[j+20>>2]=i;q=vv(f,j,3)|0;Au(f,q);k=c[T>>2]|0;c[k+(q*48|0)+4>>2]=g;b[k+(q*48|0)+16>>1]=b[k+(g*48|0)+16>>1]|0;q=k+(g*48|0)+22|0;a[q>>0]=(a[q>>0]|0)+1<<24>>24}b[k+(g*48|0)+18>>1]=2048}}}}else c[k+(g*48|0)+12>>2]=0;while(0);h=(c[T>>2]|0)+(g*48|0)|0}while(0);k:do if((a[f+8>>0]|0)==72){u=c[Q>>2]|0;if((a[R>>0]|0)==-103){t=R+20|0;q=c[t>>2]|0;if((q|0)!=0?(c[q>>2]|0)==2:0){m=c[R+8>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}l=Oh(u,m,l,2,1,0)|0;if(((((l|0)!=0?(E=b[l+2>>1]|0,(E&4)!=0):0)?(K=c[l+4>>2]|0,I=a[K>>0]|0,J=a[K+1>>0]|0,K=a[K+2>>0]|0,M=(E&65535)>>>3&1,F=(c[t>>2]|0)+4|0,G=c[(c[F>>2]|0)+20>>2]|0,(a[G>>0]|0)==-102):0)?(gv(G)|0)<<24>>24==66:0)?(a[(c[G+44>>2]|0)+44>>0]&16)==0:0){k=c[c[F>>2]>>2]|0;l:do if(!k)k=0;else while(1){j=c[k+4>>2]|0;if(!(j&4096))break l;if(!(j&262144))k=k+12|0;else k=c[(c[k+20>>2]|0)+4>>2]|0;k=c[k>>2]|0;if(!k){k=0;break}}while(0);j=a[k>>0]|0;r=j<<24>>24==-121;do if(r){l=c[Q+476>>2]|0;o=b[k+32>>1]|0;p=o<<16>>16;do if(!l){i=0;m=0}else{H=p+-1|0;G=c[l+60>>2]|0;i=G+(H*40|0)|0;if(b[G+(H*40|0)+8>>1]&1){i=0;m=0;break}m=c[l>>2]|0;n=ih(m,40,0)|0;if(!n){i=0;m=0;break}l=n+0|0;j=l+40|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(j|0));H=n+8|0;b[H>>1]=1;c[n+32>>2]=m;Wg(n,i)|0;if((b[H>>1]&15)!=2){i=n;m=0;break}i=n;m=Og(n,1)|0}while(0);l=c[Q+8>>2]|0;if(o<<16>>16>32){c[l+188>>2]=-1;q=m;H=177;break}else{q=l+188|0;c[q>>2]=c[q>>2]|1<<p+-1;q=m;H=177;break}}else if(j<<24>>24==97){i=0;q=c[k+8>>2]|0;H=177}else i=0;while(0);do if((H|0)==177)if(q){m=0;while(1){H=a[q+m>>0]|0;j=H<<24>>24==I<<24>>24;l=m+1|0;if(H<<24>>24!=K<<24>>24&((H<<24>>24==0|j|H<<24>>24==J<<24>>24)^1))m=l;else break}if(m){if((a[q+(m+-1)>>0]|0)==-1)break;if(j)l=(a[q+l>>0]|0)==0;else l=0;n=l&1;s=pt(u,97,q)|0;if(s)a[(c[s+8>>2]|0)+m>>0]=0;do if(r){m=c[Q+8>>2]|0;j=b[k+32>>1]|0;if(j<<16>>16>32)c[m+188>>2]=-1;else{K=m+188|0;c[K>>2]=c[K>>2]|1<<(j<<16>>16)+-1}if(!l){n=0;break}if(!(a[(c[k+8>>2]|0)+1>>0]|0))break;j=Q+19|0;l=a[j>>0]|0;if(!(l<<24>>24)){K=Q+72|0;j=(c[K>>2]|0)+1|0;c[K>>2]=j}else{K=l+-1<<24>>24;a[j>>0]=K;j=c[Q+((K&255)<<2)+24>>2]|0}es(Q,k,j)|0;k=c[m+32>>2]|0;if(k>>>0>0)c[(c[m+4>>2]|0)+((k+-1|0)*20|0)+12>>2]=0;Wr(Q,j)}while(0);Ih(i);if(!q){H=217;break k}o=c[(c[(c[t>>2]|0)+4>>2]|0)+20>>2]|0;m=Ir(S,s,0,0)|0;p=M<<16>>16!=0;do if(!p){if(a[(c[Q>>2]|0)+65>>0]|0)break;i=h+20|0;b[i>>1]=e[i>>1]|1024;i=s+8|0;l=c[i>>2]|0;k=a[l>>0]|0;if(!(k<<24>>24))break;h=m+8|0;j=0;do{K=k&255;a[l>>0]=((d[10368+K>>0]|223)^32)&K;a[(c[h>>2]|0)+j>>0]=a[9328+K>>0]|0;j=j+1|0;l=(c[i>>2]|0)+j|0;k=a[l>>0]|0}while(k<<24>>24!=0)}while(0);if(!(a[L>>0]|0)){k=c[m+8>>2]|0;if(!k)j=-1;else{j=k;while(1)if(!(a[j>>0]|0))break;else j=j+1|0;j=(j-k&1073741823)+-1|0}k=k+j|0;j=a[k>>0]|0;if(p)i=n;else{i=j<<24>>24==64?0:n;j=a[9328+(j&255)>>0]|0}a[k>>0]=(j&255)+1;l=i}else l=n;i=M<<16>>16==0?13752:11152;j=Vq(Q,83,tv(Q,Ir(S,o,0,0)|0,i)|0,s,0)|0;if(j){M=j+4|0;c[M>>2]=c[M>>2]|c[N>>2]&1;b[j+36>>1]=b[R+36>>1]|0}k=vv(f,j,259)|0;Au(f,k);i=Vq(Q,82,tv(Q,Ir(S,o,0,0)|0,i)|0,m,0)|0;if(i){M=i+4|0;c[M>>2]=c[M>>2]|c[N>>2]&1;b[i+36>>1]=b[R+36>>1]|0}i=vv(f,i,259)|0;Au(f,i);j=c[T>>2]|0;h=j+(g*48|0)|0;if(!l){H=217;break k}c[j+(k*48|0)+4>>2]=g;N=j+(g*48|0)+16|0;b[j+(k*48|0)+16>>1]=b[N>>1]|0;H=j+(g*48|0)+22|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;c[j+(i*48|0)+4>>2]=g;b[j+(i*48|0)+16>>1]=b[N>>1]|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;H=217;break k}}while(0);Ih(i);H=217}else H=217}else H=217}}else H=217;while(0);if((H|0)==217)if(((((a[R>>0]|0)==-103?($c(c[R+8>>2]|0,31416)|0)==0:0)?(U=c[R+20>>2]|0,(c[U>>2]|0)==2):0)?(V=c[U+4>>2]|0,W=c[V+20>>2]|0,(a[W>>0]|0)==-102):0)?(X=c[V>>2]|0,Y=wv(_,X)|0,Z=C,_=wv(_,W)|0,(_&Y|0)==0&(C&Z|0)==0):0){_=vv(f,Vq(Q,51,0,Ir(S,X,0,0)|0,0)|0,3)|0;h=c[T>>2]|0;X=h+(_*48|0)+32|0;c[X>>2]=Y;c[X+4>>2]=Z;c[h+(_*48|0)+8>>2]=c[W+28>>2];c[h+(_*48|0)+12>>2]=b[W+32>>1];b[h+(_*48|0)+18>>1]=64;c[h+(_*48|0)+4>>2]=g;b[h+(_*48|0)+16>>1]=b[h+(g*48|0)+16>>1]|0;Y=h+(g*48|0)+22|0;a[Y>>0]=(a[Y>>0]|0)+1<<24>>24;Y=h+(g*48|0)+20|0;b[Y>>1]=e[Y>>1]|8;Y=h+(g*48|0)+40|0;Z=c[Y+4>>2]|0;_=h+(_*48|0)+40|0;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;h=h+(g*48|0)|0}g=h+32|0;Z=g;_=c[Z+4>>2]|P;c[g>>2]=c[Z>>2]|O;c[g+4>>2]=_}while(0);return}function Bu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))ba();l=m;h=zv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[d>>2]|0;d=c[d+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[k+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Av(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Cu(e,f,g){e=e|0;f=f|0;g=g|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;la=i;i=i+16|0;if((i|0)>=(j|0))ba();ia=la;v=c[e>>2]|0;ga=c[v>>2]|0;ja=c[ga>>2]|0;fa=c[e+4>>2]|0;ha=c[e+12>>2]|0;u=d[ha+16>>0]|0;v=c[v+4>>2]|0;da=c[v+(u*72|0)+24>>2]|0;x=c[e+8>>2]|0;ea=fa+20|0;fa=fa+12|0;l=c[fa>>2]|0;if((l|0)>0){n=c[v+(u*72|0)+48>>2]|0;o=0;m=0;p=c[ea>>2]|0;while(1){if((c[p+8>>2]|0)==(n|0))m=((b[p+18>>1]&-1153)<<16>>16!=0&1)+m|0;o=o+1|0;if((o|0)==(l|0))break;else p=p+48|0}}else m=0;if(!x)t=0;else{r=c[x>>2]|0;a:do if((r|0)>0){p=c[x+4>>2]|0;o=v+(u*72|0)+48|0;q=0;while(1){n=c[p+(q*20|0)>>2]|0;if((a[n>>0]|0)!=-102){l=q;break a}l=q+1|0;if((c[n+28>>2]|0)!=(c[o>>2]|0)){l=q;break a}if((l|0)<(r|0))q=l;else break}}else l=0;while(0);t=(l|0)==(r|0)?r:0}l=(m*20|0)+56+(t<<3)|0;ca=ih(ja,l,0)|0;do if(!ca){ph(ga,15776,ia);l=7}else{bw(ca|0,0,l|0)|0;l=ca+56|0;s=l+(m*12|0)|0;c[ca>>2]=m;Y=ca+8|0;c[Y>>2]=t;_=ca+4|0;c[_>>2]=l;c[ca+12>>2]=s;aa=ca+16|0;c[aa>>2]=s+(t<<3);n=c[fa>>2]|0;if((n|0)>0){q=c[v+(u*72|0)+48>>2]|0;p=0;r=0;o=c[ea>>2]|0;while(1){if((c[o+8>>2]|0)==(q|0)?(y=b[o+18>>1]|0,(y&-1153)<<16>>16!=0):0){c[l+(r*12|0)>>2]=c[o+12>>2];c[l+(r*12|0)+8>>2]=p;a[l+(r*12|0)+4>>0]=(y&255)==1?2:y&255;r=r+1|0}p=p+1|0;if((p|0)==(n|0))break;else o=o+48|0}}if((t|0)>0){l=c[x+4>>2]|0;m=0;do{c[s+(m<<3)>>2]=b[(c[l+(m*20|0)>>2]|0)+32>>1];a[s+(m<<3)+4>>0]=a[l+(m*20|0)+12>>0]|0;m=m+1|0}while((m|0)!=(t|0))}A=ha;c[A>>2]=0;c[A+4>>2]=0;A=ha+18|0;b[A>>1]=0;c[ha+36>>2]=1024;B=ha+40|0;b[B>>1]=0;D=ha+28|0;a[D>>0]=0;E=c[aa>>2]|0;F=c[ca>>2]|0;if(Ju(ja,ha,F)|0){ig(ja,ca);l=7;break}W=ca+28|0;X=ca+24|0;G=ca+20|0;H=ca+32|0;I=ca+40|0;J=ca+48|0;K=da+60|0;L=ga+64|0;O=(F|0)>0;P=ha+30|0;Q=ha+24|0;R=ha+32|0;S=ha+29|0;T=ha+20|0;U=ha+22|0;V=ha+48|0;v=0;y=0;x=0;b:while(1){if(!((y|0)!=0|(v&1|0)==0))if((v|0)>2){l=0;break}else z=v+1|0;else z=v;if((x|0)==0&(z|0)>1){l=0;break}p=c[ca>>2]|0;if((p|0)>0){m=c[ea>>2]|0;n=0;o=c[_>>2]|0;while(1){v=c[o+8>>2]|0;if(!z){l=o+5|0;a[l>>0]=0;u=(b[m+(v*48|0)+18>>1]&1)==0;y=u?y:1;v=m+(v*48|0)+32|0;v=(c[v>>2]|0)!=0|(c[v+4>>2]|0)!=0;if(v|u^1)x=v?1:x;else a[l>>0]=1}else if((z|0)==1){u=m+(v*48|0)+32|0;a[o+5>>0]=(c[u>>2]|0)==0&(c[u+4>>2]|0)==0&1}else if((z|0)==2)a[o+5>>0]=b[m+(v*48|0)+18>>1]&1^1;else a[o+5>>0]=1;n=n+1|0;if((n|0)>=(p|0)){u=y;break}else o=o+12|0}}else u=y;bw(E|0,0,p<<3|0)|0;if(c[W>>2]|0)Sc(c[X>>2]|0);c[G+0>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[G+12>>2]=0;h[I>>3]=5.e+98;l=J;c[l>>2]=25;c[l+4>>2]=0;l=c[ga>>2]|0;v=K;while(1){v=c[v>>2]|0;if((c[v>>2]|0)==(l|0))break;else v=v+24|0}y=c[v+8>>2]|0;v=nc[c[(c[y>>2]|0)+12>>2]&127](y,ca)|0;do if((v|0)==7)a[(c[ga>>2]|0)+65>>0]=1;else if(v){l=c[y+8>>2]|0;if(l){c[ia>>2]=l;ph(ga,10344,ia);break}if((v|0)!=516){v=v&255;if(v>>>0>26|(v|0)==2)v=16328;else v=c[15488+(v<<2)>>2]|0}else v=16344;c[ia>>2]=v;ph(ga,10344,ia)}while(0);v=y+8|0;Sc(c[v>>2]|0);c[v>>2]=0;v=c[ca>>2]|0;if((v|0)>0){l=0;do{if((a[(c[_>>2]|0)+(l*12|0)+5>>0]|0)==0?(c[(c[aa>>2]|0)+(l<<3)>>2]|0)>0:0){c[ia>>2]=c[da>>2];ph(ga,34096,ia);v=c[ca>>2]|0}l=l+1|0}while((l|0)<(v|0))}l=c[L>>2]|0;if(l)break;y=c[_>>2]|0;t=ha;c[t>>2]=f;c[t+4>>2]=g;c:do if(O){v=0;do{c[(c[V>>2]|0)+(v<<2)>>2]=0;v=v+1|0}while((v|0)!=(F|0));b[P>>1]=0;if(O){n=f;m=g;l=0;t=0;v=-1;while(1){p=c[E+(t<<3)>>2]|0;q=p+-1|0;do if((p|0)>0){r=c[y+8>>2]|0;if((p|0)>(F|0)|(r|0)<0){ka=65;break b}if((r|0)>=(c[fa>>2]|0)){ka=65;break b}o=(c[V>>2]|0)+(q<<2)|0;if(c[o>>2]|0){ka=65;break b}s=c[ea>>2]|0;ma=s+(r*48|0)+32|0;n=n|c[ma>>2];m=m|c[ma+4>>2];ma=ha;c[ma>>2]=n;c[ma+4>>2]=m;c[o>>2]=s+(r*48|0);v=(q|0)>(v|0)?q:v;do if((p|0)<17){if(!(a[E+(t<<3)+4>>0]|0))break;l=(l&65535|1<<q)&65535;b[P>>1]=l}while(0);if(!(b[s+(r*48|0)+18>>1]&1))break;if(!(a[E+(t<<3)+4>>0]|0))break c;c[H>>2]=0}while(0);t=t+1|0;if((t|0)>=(F|0)){ka=73;break}else y=y+12|0}}else{v=-1;ka=73}}else{b[P>>1]=0;v=-1;ka=73}while(0);if((ka|0)==73){ka=0;b[B>>1]=v+1;c[Q>>2]=c[G>>2];a[D>>0]=c[W>>2];c[W>>2]=0;c[R>>2]=c[X>>2];if(!(c[H>>2]|0))v=0;else v=c[Y>>2]&255;a[S>>0]=v;b[A>>1]=0;w=+h[I>>3];h[k>>3]=w;v=c[k>>2]|0;l=c[k+4>>2]|0;do if(!(w<=1.0))if(!(w<=2.0e9)){v=iw(v|0,l|0,52)|0;v=fw(v|0,C|0,64514,0)|0;v=(v<<16>>16)*10&65535;break}else{v=bs(~~w>>>0,+N(w)>=1.0?(w>0.0?~~+$(+M(w/4294967296.0),4294967295.0)>>>0:~~+Z((w-+(~~w>>>0))/4294967296.0)>>>0):0)|0;break}else v=0;while(0);b[T>>1]=v;t=J;b[U>>1]=bs(c[t>>2]|0,c[t+4>>2]|0)|0;Bv(e,ha)|0;if(a[D>>0]|0){Sc(c[R>>2]|0);a[D>>0]=0}}v=z+1|0;if((v|0)>=4){l=0;break}else y=u}if((ka|0)==65){c[ia>>2]=c[da>>2];ph(ga,34064,ia);l=1}if(c[W>>2]|0)Sc(c[X>>2]|0);ig(ja,ca)}while(0);i=la;return l|0}function Du(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0;da=i;i=i+64|0;if((i|0)>=(j|0))ba();p=da;o=da+56|0;n=da+52|0;b[n>>1]=-1;$=c[f+12>>2]|0;aa=c[f>>2]|0;G=c[aa+4>>2]|0;H=d[$+16>>0]|0;W=G+(H*72|0)+8|0;m=G+(H*72|0)+24|0;I=c[m>>2]|0;X=c[f+4>>2]|0;Y=G+(H*72|0)+76|0;k=c[Y>>2]|0;do if(!k){if(a[I+44>>0]&32){p=c[I+8>>2]|0;break}k=p+0|0;l=k+52|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(l|0));b[p+46>>1]=1;b[p+48>>1]=1;c[p+4>>2]=n;c[p+8>>2]=o;a[p+50>>0]=5;c[p+12>>2]=I;b[p+44>>1]=b[I+42>>1]|0;b[o>>1]=b[I+28>>1]|0;b[o+2>>1]=0;if(!(a[G+(H*72|0)+45>>0]&1))c[p+20>>2]=c[(c[m>>2]|0)+8>>2]}else p=k;while(0);o=b[I+28>>1]|0;if(o<<16>>16<11)B=0;else{B=o<<16>>16;B=((bs(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[f+16>>2]|0)==0?(b[aa+34>>1]&128)==0:0)?(c[(c[c[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(c[Y>>2]|0)==0:0)?(q=a[G+(H*72|0)+45>>0]|0,(q&5)==0):0)?(F=I+44|0,(q&10|a[F>>0]&32)<<24>>24==0):0)?(D=c[X+20>>2]|0,V=c[X+12>>2]|0,E=D+(V*48|0)|0,(V|0)>0):0){v=$+8|0;w=$+24|0;x=$+42|0;y=$+28|0;z=$+40|0;A=$+48|0;r=(B&65535)+(o&65535)|0;n=r+4&65535;m=$+18|0;l=I+12|0;r=r+28&65535;s=$+22|0;t=$+20|0;u=$+36|0;o=D;do{q=o+32|0;V=q;U=v;if(((c[U>>2]&c[V>>2]|0)==0?(c[U+4>>2]&c[V+4>>2]|0)==0:0)?(Iu(o,W,0,0)|0)!=0:0){b[w>>1]=1;b[x>>1]=0;c[y>>2]=0;b[z>>1]=1;c[c[A>>2]>>2]=o;b[m>>1]=n;if((c[l>>2]|0)==0?(a[F>>0]&2)==0:0)b[m>>1]=r;b[s>>1]=43;b[t>>1]=Cv(B,43)|0;c[u>>2]=16384;U=q;V=c[U+4>>2]|h;k=$;c[k>>2]=c[U>>2]|g;c[k+4>>2]=V;k=Bv(f,$)|0}else k=0;o=o+48|0}while((k|0)==0&o>>>0<E>>>0)}else k=0;V=$+36|0;a:do if((k|0)==0&(p|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=G+(H*72|0)+48|0;U=$+20|0;K=G+(H*72|0)+64|0;L=I+42|0;t=I+44|0;s=aa+34|0;r=X+12|0;G=X+20|0;J=1;while(1){u=c[p+36>>2]|0;v=c[T>>2]|0;b:do if(u){k=c[r>>2]|0;if((k|0)>0){m=0;n=c[G>>2]|0;while(1){l=c[n>>2]|0;if(Dv(l,u,v)|0){if(!(c[l+4>>2]&1)){ca=32;break b}if((b[l+36>>1]|0)==(v|0)){ca=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else n=n+48|0}}else k=0}else ca=32;while(0);if((ca|0)==32){ca=0;H=b[c[p+8>>2]>>1]|0;b[M>>1]=0;b[N>>1]=0;b[O>>1]=0;a[P>>0]=0;b[Q>>1]=0;I=$;c[I>>2]=g;c[I+4>>2]=h;b[R>>1]=H;c[S>>2]=p;I=p+51|0;w=a[I>>0]|0;c:do if(((w&4)==0?(Z=c[(c[f>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=c[Z>>2]|0,(_|0)>0):0){F=c[Z+4>>2]|0;E=p+46|0;y=p+4|0;x=0;while(1){B=c[F+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=c[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=c[(c[B+20>>2]|0)+4>>2]|0;B=c[B>>2]|0;if(!B){B=0;break}}while(0);if((a[B>>0]|0)!=-102){x=0;break c}if((c[B+28>>2]|0)==(v|0)){A=b[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=b[E>>1]|0;if(B<<16>>16){z=c[y>>2]|0;B=B&65535;D=0;do{if(A<<16>>16==(b[z+(D<<1)>>1]|0)){x=1;break c}D=D+1|0}while((D|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((c[p+40>>2]|0)<1){c[V>>2]=256;a[P>>0]=(x|0)!=0?J&255:0;b[U>>1]=(H&65535)+16;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}else{if(!(w&32)){E=K;F=c[E>>2]|0;E=c[E+4>>2]|0;D=p+4|0;B=0;A=0;z=e[p+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=b[(c[D>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}q=ew(1,0,y<<16>>16|0)|0;B=q|B;A=C|A}q=F&~B;u=E&~A;B=q;A=u;u=(q|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}c[V>>2]=u;q=(x|0)!=0;if(!q?(a[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(a[I>>0]&4)break;if((b[p+44>>1]|0)>=(b[L>>1]|0))break;if(!((b[s>>1]&4)==0&(c[2190]|0)!=0))break;if(b[(c[c[aa>>2]>>2]|0)+60>>1]&64)break}a[P>>0]=q?J&255:0;o=H<<16>>16;q=o+1+(((b[p+44>>1]|0)*15|0)/(b[L>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))q=Cv(q,o+16&65535)|0;b[U>>1]=q;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}while(0);k=Fv(f,W,p,0)|0;if(c[Y>>2]|0)break a}p=c[p+20>>2]|0;if(!((k|0)==0&(p|0)!=0))break;else J=J+1|0}}while(0);i=da;return k|0}function Eu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0;$=i;i=i+608|0;if((i|0)>=(j|0))ba();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;k=c[f>>2]|0;S=c[f+4>>2]|0;o=c[S+20>>2]|0;n=c[S+12>>2]|0;U=o+(n*48|0)|0;R=c[f+12>>2]|0;l=Y+0|0;m=l+56|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[k+4>>2]|0;l=d[R+16>>0]|0;Q=c[m+(l*72|0)+48>>2]|0;a:do if((n|0)>0){A=R+8|0;B=X+8|0;C=X+16|0;D=R+40|0;E=R+48|0;F=R+36|0;G=R+18|0;H=R+17|0;I=R+24|0;J=R+20|0;K=R+22|0;L=Z+4|0;M=Z+8|0;N=Z+12|0;O=Z+20|0;P=X+4|0;w=m+(l*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((b[o+18>>1]&256)!=0?(T=c[o+12>>2]|0,t=T+408|0,s=A,!((c[s>>2]&c[t>>2]|0)==0?(c[s+4>>2]&c[t+4>>2]|0)==0:0)):0){n=T+20|0;v=(c[n>>2]|0)+((c[T+12>>2]|0)*48|0)|0;c[X+0>>2]=c[f+0>>2];c[X+4>>2]=c[f+4>>2];c[X+8>>2]=c[f+8>>2];c[X+12>>2]=c[f+12>>2];c[B>>2]=0;c[C>>2]=V;n=c[n>>2]|0;c:do if(n>>>0<v>>>0){l=1;k=0;d:while(1){if(!(b[n+18>>1]&512))if((c[n+8>>2]|0)==(Q|0)){c[Z>>2]=c[S>>2];c[L>>2]=S;a[M>>0]=72;c[N>>2]=1;c[O>>2]=n;m=Z;_=10}else m=l;else{m=c[n+12>>2]|0;_=10}do if((_|0)==10){_=0;c[P>>2]=m;b[V>>1]=0;if(!(a[(c[w>>2]|0)+44>>0]&16))k=Du(X,g,h)|0;else k=Cu(X,g,h)|0;if(!k)k=Eu(X,g,h)|0;m=b[V>>1]|0;if(!(m<<16>>16))break d;if(l){b[Y>>1]=m;gw(y|0,z|0,(m&65535)<<4|0)|0;m=0;break}t=b[Y>>1]|0;b[W>>1]=t;u=t&65535;gw(x|0,y|0,u<<4|0)|0;b[Y>>1]=0;if(!(t<<16>>16))m=0;else{t=0;do{if(!(m<<16>>16))m=0;else{p=W+(t<<4)+8|0;l=c[p>>2]|0;p=c[p+4>>2]|0;q=b[W+(t<<4)+16>>1]|0;r=b[W+(t<<4)+18>>1]|0;s=0;do{aa=V+(s<<4)+8|0;ca=c[aa>>2]|l;aa=c[aa+4>>2]|p;m=Cv(q,b[V+(s<<4)+16>>1]|0)|0;Gv(Y,ca,aa,m,Cv(r,b[V+(s<<4)+18>>1]|0)|0);s=s+1|0;m=b[V>>1]|0}while((s|0)<(m&65535|0))}t=t+1|0}while((t|0)<(u|0));m=0}}while(0);n=n+48|0;if(n>>>0>=v>>>0)break c;else l=m}b[Y>>1]=0}else k=0;while(0);b[D>>1]=1;c[c[E>>2]>>2]=o;c[F>>2]=8192;b[G>>1]=0;a[H>>0]=0;c[I+0>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;if(k)break a;n=e[Y>>1]|0;m=0;while(1){if((m|0)>=(n|0))break b;b[J>>1]=(e[Y+(m<<4)+16>>1]|0)+1;b[K>>1]=b[Y+(m<<4)+18>>1]|0;s=Y+(m<<4)+8|0;t=c[s+4>>2]|0;k=R;c[k>>2]=c[s>>2];c[k+4>>2]=t;k=Bv(f,R)|0;if(!k)m=m+1|0;else break a}}while(0);o=o+48|0;if(o>>>0>=U>>>0){k=0;break}}}else k=0;while(0);i=$;return k|0}function Fu(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[e>>2]|0;g=d+56|0;if((f|0)!=(g|0))ig(a,f);Hv(a,d);c[e>>2]=g;b[d+40>>1]=0;b[d+44>>1]=3;c[d+36>>2]=0;return}function Gu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+32|0;if((i|0)>=(j|0))ba();ca=la+24|0;Z=la+16|0;fa=la+8|0;ka=la;aa=c[d>>2]|0;ha=c[aa>>2]|0;o=a[d+41>>0]|0;ia=o&255;if((o&255)<2)V=1;else V=o<<24>>24==2?5:10;ja=d+8|0;l=c[ja>>2]|0;da=f<<16>>16==0;if((l|0)==0|da)U=0;else U=c[l>>2]|0;m=U<<1;ga=m+(_((ia<<3)+64|0,V)|0)|0;ga=ih(ha,ga,((ga|0)<0)<<31>>31)|0;do if(ga){l=ga+(V<<5)|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;g=V<<1;n=_(V,-2)|0;n=ga+((_((((n|0)>-1?n:1073741823)+(V<<1)<<2)+4|0,ia)|0)+(V<<6))|0;k=g;h=ga;g=ga+(g<<5)|0;while(1){c[h+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(ia<<2)|0}}k=(U|0)!=0;if(k)bw(n|0,0,m|0)|0;else n=0;T=c[aa+424>>2]|0;b[ga+(V<<5)+16>>1]=T>>>0<48?T&65535:48;if(k)a[ga+(V<<5)+22>>0]=o<<24>>24!=0?-1:U&255;T=o<<24>>24==0;if(!T){P=d+16|0;Q=d+34|0;R=f<<16>>16<11;S=(f&65535)+16|0;M=f<<16>>16;N=((M|0)<0)<<31>>31;O=V>>>0>1;g=ga;L=0;m=0;o=0;f=0;h=1;while(1){if((h|0)>0){G=L&65535;H=L<<2;I=g+18|0;J=g+16|0;K=0;k=0;F=l;while(1){p=c[P>>2]|0;if(p){A=F+22|0;B=F+16|0;C=F+20|0;D=F+24|0;E=F+8|0;z=k;while(1){r=a[A>>0]|0;s=Z;c[s>>2]=0;c[s+4>>2]=0;s=p;k=F;q=c[k>>2]|0;k=c[k+4>>2]|0;a:do if(((c[s>>2]&~q|0)==0?(c[s+4>>2]&~k|0)==0:0)?(W=p+8|0,Y=W,X=c[Y>>2]|0,Y=c[Y+4>>2]|0,(X&q|0)==0&(Y&k|0)==0):0){v=e[B>>1]|0;x=Cv(b[p+18>>1]|0,v+(e[p+20>>1]|0)&65535)|0;x=Cv(x,b[C>>1]|0)|0;v=(e[p+22>>1]|0)+v|0;y=v&65535;u=X|q;s=Y|k;if(r<<24>>24<0)w=Iv(d,c[ja>>2]|0,F,b[Q>>1]|0,G,p,Z)|0;else{k=E;q=c[k+4>>2]|0;w=Z;c[w>>2]=c[k>>2];c[w+4>>2]=q;w=r}r=w<<24>>24;if(w<<24>>24>-1&(U|0)>(r|0)){t=n+(r<<1)|0;q=b[t>>1]|0;if(!(q<<16>>16)){r=((U-r|0)*100|0)/(U|0)|0;r=(bs(r,((r|0)<0)<<31>>31)|0)&65535;if(R)k=0;else k=((bs(M,N)|0)&65535)+65503&65535;r=S+(((r<<16)+-4325376|0)>>>16)+k|0;if(b[Q>>1]&1024)r=(r&65535)+16|0;q=r&65535;b[t>>1]=q}t=Cv(x,q)|0}else t=x;b:do if((z|0)>0){r=0;q=g;while(1){k=q;if(((c[k>>2]|0)==(u|0)?(c[k+4>>2]|0)==(s|0):0)?(a[q+22>>0]^w)<<24>>24>-1:0)break;r=r+1|0;if((r|0)>=(z|0)){$=35;break b}else q=q+32|0}k=b[q+18>>1]|0;if(k<<16>>16<t<<16>>16){k=z;break a}if(k<<16>>16!=t<<16>>16){k=z;break}if((b[q+16>>1]|0)>(v<<16>>16|0))k=z;else{k=z;break a}}else $=35;while(0);if(($|0)==35){$=0;q=(z|0)<(V|0);if(!q){if(t<<16>>16>m<<16>>16){k=z;break}if(!(t<<16>>16!=m<<16>>16?1:x<<16>>16<f<<16>>16)){k=z;break}}k=(q&1)+z|0;q=g+((q?z:o)<<5)|0}r=F;v=W;s=c[v+4>>2]|c[r+4>>2];u=q;c[u>>2]=c[v>>2]|c[r>>2];c[u+4>>2]=s;u=Z;s=c[u+4>>2]|0;r=q+8|0;c[r>>2]=c[u>>2];c[r+4>>2]=s;b[q+16>>1]=y;b[q+18>>1]=t;b[q+20>>1]=x;a[q+22>>0]=w;q=q+24|0;gw(c[q>>2]|0,c[D>>2]|0,H|0)|0;c[(c[q>>2]|0)+(L<<2)>>2]=p;if((k|0)<(V|0))break;m=b[I>>1]|0;f=b[J>>1]|0;if(O){s=g;t=1;r=m;o=0;q=f}else{o=0;break}while(1){m=b[s+50>>1]|0;do if(m<<16>>16<=r<<16>>16){if(m<<16>>16!=r<<16>>16){m=r;f=q;break}f=b[s+52>>1]|0;if(f<<16>>16>q<<16>>16)$=48;else{m=r;f=q}}else{f=b[s+52>>1]|0;$=48}while(0);s=s+32|0;if(($|0)==48){$=0;o=t}t=t+1|0;if((t|0)>=(V|0))break;else{r=m;q=f}}}else k=z;while(0);p=c[p+52>>2]|0;if(!p)break;else z=k}}K=K+1|0;if((K|0)==(h|0)){h=k;break}else F=F+32|0}}else h=0;L=L+1|0;if((L|0)>=(ia|0))break;else{K=g;g=l;l=K}}if(!h){ph(aa,34008,ca);ig(ha,ga);break}if((h|0)>1){k=1;l=g;do{if((b[l+18>>1]|0)>(b[g+(k<<5)+18>>1]|0))l=g+(k<<5)|0;k=k+1|0}while((k|0)!=(h|0))}else l=g;if(!T){h=d+4|0;k=c[l+24>>2]|0;g=0;do{$=c[k+(g<<2)>>2]|0;c[d+(g*80|0)+800>>2]=$;$=a[$+16>>0]|0;a[d+(g*80|0)+780>>0]=$;c[d+(g*80|0)+740>>2]=c[(c[h>>2]|0)+(($&255)*72|0)+48>>2];g=g+1|0}while((g|0)<(ia|0))}}h=d+34|0;if(((b[h>>1]&1536)==1024?(ea=d+40|0,!((a[ea>>0]|0)!=0|da)):0)?($=d+12|0,Z=ia+-1|0,Z=(Iv(d,c[$>>2]|0,l,512,Z&65535,c[(c[l+24>>2]|0)+(Z<<2)>>2]|0,fa)|0)<<24>>24,(Z|0)==(c[c[$>>2]>>2]|0)):0)a[ea>>0]=2;k=c[ja>>2]|0;if(k){g=b[h>>1]|0;h=a[l+22>>0]|0;if(g&512){if((h<<24>>24|0)==(c[k>>2]|0))a[d+40>>0]=2}else{a[d+36>>0]=h<<24>>24<0?0:h;Y=l+8|0;Z=c[Y+4>>2]|0;$=d+24|0;c[$>>2]=c[Y>>2];c[$+4>>2]=Z}if(((g&2048)!=0?(a[d+36>>0]|0)==(c[k>>2]|0):0)?($=ka,c[$>>2]=0,c[$+4>>2]=0,$=ia+-1|0,$=(Iv(d,k,l,0,$&65535,c[(c[l+24>>2]|0)+($<<2)>>2]|0,ka)|0)<<24>>24,($|0)==(c[c[ja>>2]>>2]|0)):0){a[d+37>>0]=1;Y=ka;Z=c[Y+4>>2]|0;$=d+24|0;c[$>>2]=c[Y>>2];c[$+4>>2]=Z}}b[d+32>>1]=b[l+16>>1]|0;ig(ha,ga)}while(0);i=la;return}function Hu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;f=0;do{h=wv(a,c[e+(f*20|0)>>2]|0)|0;d=h|d;b=C|b;f=f+1|0}while((f|0)<(g|0))}else{b=0;d=0}C=b;return d|0}function Iu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;do if((((c[d+8>>2]|0)==(c[e+40>>2]|0)?(b[d+18>>1]&2)!=0:0)?(i=d+32|0,(c[i>>2]&f|0)==0?(c[i+4>>2]&g|0)==0:0):0)?(h=c[d+12>>2]|0,(h|0)>=0):0){f=a[(c[(c[e+16>>2]|0)+4>>2]|0)+(h*24|0)+21>>0]|0;g=(jv(c[d>>2]|0)|0)<<24>>24;if((g|0)==65){g=1;break}else if((g|0)==66){g=f<<24>>24==66&1;break}else{g=f<<24>>24>66&1;break}}else g=0;while(0);return g|0}function Ju(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=d+44|0;if((e[j>>1]|0|0)<(f|0)){g=f+7&-8;h=ih(a,g<<2,0)|0;if(!h)f=7;else{i=d+48|0;gw(h|0,c[i>>2]|0,(e[j>>1]|0)<<2|0)|0;f=c[i>>2]|0;if((f|0)!=(d+56|0))ig(a,f);c[i>>2]=h;b[j>>1]=g;f=0}}else f=0;return f|0}function Ku(a,b,d){a=a|0;b=b|0;d=d|0;do if(!(c[b+4>>2]&256)){if((d|0)!=0?(c[d+4>>2]&256|0)!=0:0){b=_t(a,d)|0;break}b=_t(a,b)|0;if(!b)b=_t(a,d)|0}else b=_t(a,b)|0;while(0);return b|0}function Lu(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+144|0;if((i|0)>=(j|0))ba();t=y;x=y+8|0;o=y+36|0;if(((a[e+450>>0]|0)==2?(q=d[g+44>>0]|0,w=c[e+8>>2]|0,n=c[e>>2]|0,v=c[e+464>>2]|0,s=c[g+64>>2]|0,u=s+36|0,r=c[u>>2]|0,(r&8192|0)==0):0)?(m=l&65535,(m&64|0)==0):0){l=r&48;do if(!l){if((r&1024|0)==0?(b[s+24>>1]|0)!=0:0){p=1;break}p=(m&3|0)!=0}else p=1;while(0);c[x+4>>2]=o;c[x+8>>2]=o;c[x+12>>2]=0;c[x+16>>2]=100;c[x+20>>2]=1e9;a[x+24>>0]=1;a[x+25>>0]=0;c[x>>2]=n;e=p?33576:33584;g=e;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;Ok(x,e,g-e&1073741823);if(!(c[f+(q*72|0)+28>>2]|0)){c[t>>2]=c[f+(q*72|0)+16>>2];An(x,0,33608,t)}else{c[t>>2]=d[f+(q*72|0)+46>>0];An(x,0,33592,t)}e=c[f+(q*72|0)+20>>2]|0;if(e){c[t>>2]=e;An(x,0,33624,t)}do if(!(r&1280)){m=s+28|0;g=c[m>>2]|0;l=f+(q*72|0)+24|0;if((a[(c[l>>2]|0)+44>>0]&32)!=0?(a[g+51>>0]&3)==2:0)if(p)e=33632;else break;else if(!(r&131072))if(!(r&16384))e=(r&64|0)==0?33744:33720;else e=33688;else e=33648;Ok(x,33760,7);c[t>>2]=c[g>>2];An(x,0,e,t);r=b[s+24>>1]|0;p=c[(c[l>>2]|0)+4>>2]|0;o=c[(c[m>>2]|0)+4>>2]|0;g=r&65535;if(!(r<<16>>16)){if(!(c[u>>2]&48))break;Ok(x,33904,2);m=0}else{l=b[s+42>>1]|0;Ok(x,33904,2);l=l&65535;m=0;do{e=b[o+(m<<1)>>1]|0;if(e<<16>>16<0)e=20456;else e=c[p+((e<<16>>16)*24|0)>>2]|0;if((m|0)<(l|0)){if(m)Ok(x,33920,5);c[t>>2]=e;An(x,0,33928,t)}else Jv(x,m,e,33912);m=m+1|0}while((m|0)<(g|0));m=g>>>0>1?g:1}l=c[u>>2]|0;if(!(l&32))e=m;else{l=b[o+(m<<1)>>1]|0;if(l<<16>>16<0)l=20456;else l=c[p+((l<<16>>16)*24|0)>>2]|0;Jv(x,m,l,33936);l=c[u>>2]|0;e=m+1|0}if(l&16){m=b[o+(m<<1)>>1]|0;if(m<<16>>16<0)m=20456;else m=c[p+((m<<16>>16)*24|0)>>2]|0;Jv(x,e,m,33944)}Ok(x,33952,1)}else{if((r&256|0)==0|(r&15|0)==0){if(!(r&1024))break;r=c[s+32>>2]|0;c[t>>2]=c[s+24>>2];c[t+4>>2]=r;An(x,0,33872,t);break}if(!(r&5))if((l|0)==48)l=33784;else l=(r&32|0)==0?33824:33808;else l=33768;Ok(x,33840,27);m=l;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;Ok(x,l,m-l&1073741823)}while(0);r=pg(x)|0;th(w,sh(w,157,v,h,k)|0,r,-1)}i=y;return}function Mu(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;l=c[d>>2]|0;n=c[b+8>>2]|0;i=a[l>>0]|0;do if(i<<24>>24==79)h=es(b,c[l+16>>2]|0,h)|0;else if(i<<24>>24==76)sh(n,28,0,h,0)|0;else{j=c[e+64>>2]|0;i=j+36|0;if(((c[i>>2]&1024|0)==0?(k=c[j+28>>2]|0,(k|0)!=0):0)?(a[(c[k+28>>2]|0)+f>>0]|0)!=0:0)g=(g|0)==0&1;m=iv(b,l,4,0)|0;if((m|0)==4)g=(g|0)==0&1;l=c[l+28>>2]|0;f=(g|0)!=0;sh(n,f?105:108,l,0,0)|0;c[i>>2]=c[i>>2]|2048;k=e+56|0;i=c[k>>2]|0;if(!i){c[e+16>>2]=ts(n)|0;i=c[k>>2]|0}j=i+1|0;c[k>>2]=j;i=e+60|0;j=Sl(c[b>>2]|0,c[i>>2]|0,j*12|0,0)|0;c[i>>2]=j;if(!j){c[k>>2]=0;break}i=(c[k>>2]|0)+-1|0;c[j+(i*12|0)>>2]=l;if((m|0)==1)g=sh(n,103,l,h,0)|0;else g=sh(n,47,l,0,h)|0;c[j+(i*12|0)+4>>2]=g;a[j+(i*12|0)+8>>0]=f?6:7;sh(n,76,h,0,0)|0}while(0);Nu(e,d);return h|0}function Nu(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:do if(e){i=d+72|0;h=0;while(1){f=e+20|0;g=b[f>>1]|0;if(g&4)break a;if((c[d>>2]|0)!=0?(c[(c[e>>2]|0)+4>>2]&1|0)==0:0)break a;j=i;k=e+40|0;if(!((c[k>>2]&c[j>>2]|0)==0?(c[k+4>>2]&c[j+4>>2]|0)==0:0))break a;g=g&65535;b[f>>1]=g|((h|0)==0|(g&1024|0)==0?4:512);g=c[e+4>>2]|0;if((g|0)<0)break a;e=c[(c[e+24>>2]|0)+20>>2]|0;j=e+(g*48|0)+22|0;f=(a[j>>0]|0)+-1<<24>>24;a[j>>0]=f;if(f<<24>>24)break a;e=e+(g*48|0)|0;if(!e)break;else h=h+1|0}}while(0);return}function Ou(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;do if(!(b[(c[d>>2]|0)+60>>1]&2)){k=d+116|0;j=0;h=k;while(1){i=h+12|0;if(!(c[i>>2]|0)){n=4;break}j=j+1|0;if((j|0)>=10){l=0;h=-1;m=2147483647;break}else h=h+20|0}if((n|0)==4){c[h+8>>2]=c[d+100>>2];c[h>>2]=e;b[h+4>>1]=f;c[i>>2]=g;a[h+6>>0]=0;g=d+104|0;e=c[g>>2]|0;c[g>>2]=e+1;c[h+16>>2]=e;break}while(1){j=c[k+16>>2]|0;i=(j|0)<(m|0);h=i?l:h;l=l+1|0;if((l|0)==10)break;else{m=i?j:m;k=k+20|0}}if((h|0)>-1){c[d+(h*20|0)+124>>2]=c[d+100>>2];c[d+(h*20|0)+116>>2]=e;b[d+(h*20|0)+120>>1]=f;c[d+(h*20|0)+128>>2]=g;a[d+(h*20|0)+122>>0]=0;g=d+104|0;e=c[g>>2]|0;c[g>>2]=e+1;c[d+(h*20|0)+132>>2]=e}}while(0);return}function Pu(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;r=c[d+8>>2]|0;m=c[e+64>>2]|0;n=b[m+24>>1]|0;p=b[m+42>>1]|0;t=c[m+28>>2]|0;q=d+72|0;l=c[q>>2]|0;i=l+1|0;s=n&65535;o=s+g|0;c[q>>2]=l+o;q=c[d>>2]|0;t=gh(q,kt(r,t)|0)|0;q=(t|0)!=0;if(!q)a[(c[d>>2]|0)+65>>0]=1;if(p<<16>>16){g=c[e+8>>2]|0;j=(f|0)!=0;sh(r,j?105:108,g,0,0)|0;k=sh(r,16,0,0,0)|0;l=p&65535;j=sh(r,j?62:65,g,0,i)|0;th(r,j,l,-14);c[e+20>>2]=j;j=c[r+32>>2]|0;if(j>>>0>k>>>0)c[(c[r+4>>2]|0)+(k*20|0)+8>>2]=j;c[(c[r+24>>2]|0)+88>>2]=j+-1;k=0;do{sh(r,47,g,k,k+i|0)|0;k=k+1|0}while((k|0)<(l|0))}if((p&65535)<(n&65535)){m=m+48|0;l=e+12|0;n=(o|0)==1;o=p&65535;k=i;while(1){j=c[(c[m>>2]|0)+(o<<2)>>2]|0;g=o+k|0;i=Mu(d,j,e,o,f,g)|0;do if((i|0)!=(g|0))if(n){Wr(d,k);break}else{sh(r,34,i,g,0)|0;i=k;break}else i=k;while(0);if(!(b[j+18>>1]&129)){g=c[(c[j>>2]|0)+16>>2]|0;if(Qu(g)|0)sh(r,76,i+o|0,c[l>>2]|0,0)|0;if(q){j=t+o|0;if((xu(g,a[j>>0]|0)|0)<<24>>24==65){a[j>>0]=65;k=65}else k=a[j>>0]|0;if(Ru(g,k)|0)a[j>>0]=65}}o=o+1|0;if((o|0)>=(s|0))break;else k=i}}c[h>>2]=t;return i|0}function Qu(d){d=d|0;var e=0;e=a[d>>0]|0;if((e+99&255)<2)do{d=c[d+12>>2]|0;e=a[d>>0]|0}while((e+99&255)<2);if(e<<24>>24==-97)e=a[d+38>>0]|0;switch(e&255|0){case 134:case 133:case 97:case 132:{d=0;break}case 154:{if(!(c[d+4>>2]&1048576)){e=b[d+32>>1]|0;if(e<<16>>16>-1)d=(a[(c[(c[d+44>>2]|0)+4>>2]|0)+((e<<16>>16)*24|0)+20>>0]|0)==0;else d=0}else d=1;d=d&1;break}default:d=1}return d|0}function Ru(d,e){d=d|0;e=e|0;var f=0;a:do if(e<<24>>24==65)d=1;else{f=a[d>>0]|0;if((f+99&255)<2)do{d=c[d+12>>2]|0;f=a[d>>0]|0}while((f+99&255)<2);if(f<<24>>24==-97)f=a[d+38>>0]|0;switch(f&255|0){case 154:{if((b[d+32>>1]|0)<0)d=(e+-67&255)<2;else d=0;d=d&1;break a}case 97:{d=e<<24>>24==66&1;break a}case 132:{d=(e+-67&255)<2&1;break a}case 134:{d=1;break a}case 133:{d=(e<<24>>24==69|e<<24>>24==67)&1;break a}default:{d=0;break a}}}while(0);return d|0}function Su(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=c[b+8>>2]|0;do if(f){a:do if((e|0)>0)while(1){if((a[f>>0]|0)!=65){g=f;break a}e=e+-1|0;d=d+1|0;f=f+1|0;if((e|0)<=0){g=f;break}}else g=f;while(0);while(1){if((e|0)<=1){i=8;break}f=e+-1|0;if((a[g+f>>0]|0)==65)e=f;else break}if((i|0)==8)if((e|0)<=0)break;sh(h,48,d,e,0)|0;th(h,-1,g,e);$s(b,d,e)}while(0);return}function Tu(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){Kv(b+328|0);e=b+16|0;d=c[e>>2]|0;if(d)do{c[e>>2]=c[d+52>>2];Fu(a,d);ig(a,d);d=c[e>>2]|0}while((d|0)!=0);ig(a,b)}return}function Uu(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+32|0;if((i|0)>=(j|0))ba();e=d;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e>>2]=80;c[e+4>>2]=81;c[e+24>>2]=a;ns(e,b)|0;i=d;return}function Vu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;o=p;m=c[b+8>>2]|0;c[n>>2]=0;c[o>>2]=0;if(!((m|0)==0|(d|0)==0)){h=a[d>>0]|0;g=h&255;a:do switch(g|0){case 72:{l=ts(m)|0;ct(b,c[d+12>>2]|0,l,f^16);g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);g=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[g+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[g+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 71:{Vu(b,c[d+12>>2]|0,e,f);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);Zt(b);break}case 19:{ct(b,c[d+12>>2]|0,e,f);break}case 148:case 73:{f=d+12|0;l=Xt(b,c[f>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[f>>2]|0,c[k>>2]|0,h<<24>>24==73?79:78,l,m,e,128);break}case 75:{k=ts(m)|0;bu(b,d,k,(f|0)!=0?e:k);sh(m,16,0,e,0)|0;h=c[m+24>>2]|0;g=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(g<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}case 79:case 78:case 83:case 80:case 81:case 82:{h=d+12|0;l=Xt(b,c[h>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[h>>2]|0,c[k>>2]|0,g,l,m,e,f);break}case 77:case 76:{sh(m,g,Xt(b,c[d+12>>2]|0,n)|0,e,0)|0;break}case 74:{Wu(b,d,e,1,f);break}default:{if(Xu(d)|0){sh(m,16,0,e,0)|0;break a}if(!(iu(d)|0))sh(m,45,Xt(b,d,n)|0,e,(f|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function Wu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;p=i;i=i+208|0;if((i|0)>=(j|0))ba();l=p+152|0;h=p+104|0;k=p+56|0;m=p+8|0;n=p;c[n>>2]=0;o=m+0|0;q=(c[d+12>>2]|0)+0|0;r=o+48|0;do{c[o>>2]=c[q>>2];o=o+4|0;q=q+4|0}while((o|0)<(r|0));a[l>>0]=72;c[l+12>>2]=h;c[l+16>>2]=k;a[h>>0]=83;c[h+12>>2]=m;d=c[(c[d+20>>2]|0)+4>>2]|0;c[h+16>>2]=c[d>>2];a[k>>0]=81;c[k+12>>2]=m;c[k+16>>2]=c[d+20>>2];d=Xt(b,m,n)|0;a[m+38>>0]=a[m>>0]|0;a[m>>0]=-97;c[m+28>>2]=d;d=m+4|0;c[d>>2]=c[d>>2]&-4097;if(!f)ct(b,l,e,g);else Vu(b,l,e,g);Wr(b,c[n>>2]|0);i=p;return}function Xu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)!=0&1;else a=0;i=d;return a|0}function Yu(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!((a|0)==0|(b|0)==0)){e=c[b>>2]|0;if((e|0)>0){b=c[b+4>>2]|0;d=0;while(1){if((sv(a,c[b+(d*20|0)+4>>2]|0)|0)>-1){b=1;break a}d=d+1|0;if((d|0)>=(e|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function Zu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=c[e+20>>2]|0;a:do if((m|0)>0){n=b[d+38>>1]|0;o=n<<16>>16>0;p=d+4|0;l=d+36|0;i=(g|0)!=0;j=0;while(1){g=c[e+(j<<3)+40>>2]|0;if(o){d=(g|0)==0;k=0;do{if(!((c[f+(k<<2)>>2]|0)<=-1?!((k|0)==(b[l>>1]|0)&i):0))q=7;do if((q|0)==7){q=0;h=c[p>>2]|0;if(d)if(!(a[h+(k*24|0)+23>>0]&1))break;else{d=1;break a}else if(!($c(c[h+(k*24|0)>>2]|0,g)|0)){d=1;break a}else break}while(0);k=k+1|0}while((k|0)<(n<<16>>16|0))}j=j+1|0;if((j|0)>=(m|0)){d=0;break}}}else d=0;while(0);return d|0}function _u(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))ba();m=v;q=v+8|0;u=c[b+408>>2]|0;u=(u|0)==0?b:u;l=u+528|0;g=c[l>>2]|0;a:do if(!g)k=5;else while(1){if((c[g>>2]|0)==(d|0)?(c[g+12>>2]|0)==(f|0):0)break a;g=c[g+4>>2]|0;if(!g){k=5;break}}while(0);do if((k|0)==5){s=c[b>>2]|0;g=ih(s,24,0)|0;if(g){k=g+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+4>>2]=c[l>>2];c[l>>2]=g;r=ih(s,28,0)|0;if(!r){c[g+8>>2]=0;g=0;break}k=r+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+8>>2]=r;n=(c[u+8>>2]|0)+192|0;c[r+24>>2]=c[n>>2];c[n>>2]=r;c[g>>2]=d;c[g+12>>2]=f;n=g+16|0;c[n>>2]=-1;o=g+20|0;c[o>>2]=-1;p=ih(s,536,0)|0;if(p){bw(p|0,0,536)|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q>>2]=p;c[p>>2]=s;c[p+412>>2]=e;c[p+408>>2]=u;c[p+492>>2]=c[d>>2];a[p+436>>0]=a[d+8>>0]|0;c[p+424>>2]=c[b+424>>2];e=Kq(p)|0;if(e){c[m>>2]=c[d>>2];th(e,-1,qh(s,34152,m)|0,-1);k=c[d+12>>2]|0;if(!k)l=0;else{h=Ir(s,k,0,0)|0;if((hs(q,h)|0)==0?(a[s+65>>0]|0)==0:0){k=ts(e)|0;ct(p,h,k,16)}else k=0;Ck(s,h);l=k}Lv(p,c[d+28>>2]|0,f);if(l){k=c[e+24>>2]|0;h=~l;if((l|0)<0?(t=c[k+112>>2]|0,(t|0)!=0):0)c[t+(h<<2)>>2]=c[e+32>>2];c[k+88>>2]=(c[e+32>>2]|0)+-1}sh(e,24,0,0,0)|0;h=b+64|0;k=c[p+4>>2]|0;if(!(c[h>>2]|0)){c[b+4>>2]=k;c[h>>2]=c[p+64>>2]}else ig(c[p>>2]|0,k);if(!(a[s+65>>0]|0)){m=e+4|0;q=c[m>>2]|0;Fn(e,u+392|0);c[r+4>>2]=c[e+32>>2];c[m>>2]=0;c[r>>2]=q}c[r+8>>2]=c[p+72>>2];c[r+12>>2]=c[p+68>>2];c[r+16>>2]=c[p+80>>2];c[r+20>>2]=d;c[n>>2]=c[p+428>>2];c[o>>2]=c[p+432>>2];Ll(e)}yh(p);ig(s,p)}else g=0}else g=0}while(0);i=v;return g|0}function $u(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=Kq(b)|0;e=_u(b,d,e,g)|0;if(e){if(!(c[d>>2]|0))g=0;else g=((c[(c[b>>2]|0)+24>>2]|0)>>>18&1^1)&255;b=b+72|0;d=(c[b>>2]|0)+1|0;c[b>>2]=d;sh(i,131,f,h,d)|0;th(i,-1,c[e+8>>2]|0,-18);e=c[i+4>>2]|0;if(e)a[e+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=g}return}function av(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[a>>2]|0;h=c[(c[f+16>>2]|0)+(e<<4)>>2]|0;g=gc[c[f+284>>2]&7](c[f+288>>2]|0,20,b,d,h,c[a+492>>2]|0)|0;if((g|0)==1){if((e|0)!=0?1:(c[f+20>>2]|0)>2){c[k>>2]=h;c[k+4>>2]=b;c[k+8>>2]=d;ph(a,27688,k)}else{c[k>>2]=b;c[k+4>>2]=d;ph(a,27728,k)}c[a+12>>2]=23}else if(!((g|0)==0|(g|0)==2)){ph(a,25232,k);c[a+12>>2]=1}i=l;return g|0}function bv(e,f,g,h,i,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;y=Kq(e)|0;A=(c[e+68>>2]|0)+-1|0;B=ts(y)|0;if((l|0)<0)sh(y,135,d[i+24>>0]|0,B,0)|0;n=i+20|0;o=c[n>>2]|0;if((o|0)>0){q=k+1|0;p=0;do{sh(y,76,q+(c[j+(p<<2)>>2]|0)|0,B,0)|0;p=p+1|0;o=c[n>>2]|0}while((p|0)<(o|0))}do if(!m){if(!h){o=e+19|0;n=a[o>>0]|0;if(!(n<<24>>24)){h=e+72|0;q=(c[h>>2]|0)+1|0;c[h>>2]=q}else{q=n+-1<<24>>24;a[o>>0]=q;q=c[e+((q&255)<<2)+24>>2]|0}sh(y,34,k+1+(c[j>>2]|0)|0,q,0)|0;p=sh(y,38,q,0,0)|0;if(((l|0)==1?(c[i>>2]|0)==(g|0):0)?(sh(y,79,k,B,q)|0,r=c[y+4>>2]|0,(r|0)!=0):0)a[r+(((c[y+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;Mq(e,A,f,g,54);sh(y,70,A,0,q)|0;sh(y,16,0,B,0)|0;n=c[y+32>>2]|0;if(n>>>0>1)c[(c[y+4>>2]|0)+((n+-2|0)*20|0)+8>>2]=n;m=n+-1|0;o=(c[y+24>>2]|0)+88|0;c[o>>2]=m;if(n>>>0>p>>>0)c[(c[y+4>>2]|0)+(p*20|0)+8>>2]=n;c[o>>2]=m;Wr(e,q);break}w=e+60|0;q=c[w>>2]|0;x=e+56|0;p=c[x>>2]|0;if((p|0)<(o|0)){v=e+72|0;q=c[v>>2]|0;c[v>>2]=q+o;q=q+1|0}else{c[w>>2]=q+o;c[x>>2]=p-o}p=e+19|0;n=a[p>>0]|0;if(!(n<<24>>24)){m=e+72|0;v=(c[m>>2]|0)+1|0;c[m>>2]=v}else{v=n+-1<<24>>24;a[p>>0]=v;v=c[e+((v&255)<<2)+24>>2]|0}sh(y,54,A,c[h+40>>2]|0,f)|0;m=c[e+8>>2]|0;th(m,-1,ds(e,h)|0,-6);m=(o|0)>0;if(m){p=k+1|0;n=0;do{sh(y,33,p+(c[j+(n<<2)>>2]|0)|0,n+q|0,0)|0;n=n+1|0}while((n|0)!=(o|0))}if((l|0)==1?(c[i>>2]|0)==(g|0):0){t=y+32|0;u=o+1+(c[t>>2]|0)|0;if(m){f=k+1|0;s=h+4|0;p=g+36|0;n=y+4|0;r=0;do{m=b[(c[s>>2]|0)+(r<<1)>>1]|0;sh(y,78,f+(c[j+(r<<2)>>2]|0)|0,u,(m<<16>>16==(b[p>>1]|0)?0:(m<<16>>16)+1|0)+k|0)|0;m=c[n>>2]|0;if(m)a[m+(((c[t>>2]|0)+-1|0)*20|0)+3>>0]=16;r=r+1|0}while((r|0)!=(o|0))}sh(y,16,0,B,0)|0}k=kt(y,h)|0;th(y,sh(y,49,q,o,v)|0,k,o);th(y,sh(y,69,A,B,v)|0,0,-14);Wr(e,v);$s(e,q,o);if((c[x>>2]|0)<(o|0)){c[x>>2]=o;c[w>>2]=q}}while(0);n=a[i+24>>0]|0;m=n<<24>>24==0;if(((m?(c[(c[e>>2]|0)+24>>2]&16777216|0)==0:0)?(c[e+408>>2]|0)==0:0)?(a[e+20>>0]|0)==0:0)vs(e,787,2,0,-2,4);else{if(!((l|0)<1|m^1)){i=c[e+408>>2]|0;a[((i|0)==0?e:i)+21>>0]=1}sh(y,134,n&255,l,0)|0}m=c[y+24>>2]|0;n=~B;if((B|0)<0?(z=c[m+112>>2]|0,(z|0)!=0):0)c[z+(n<<2)>>2]=c[y+32>>2];c[m+88>>2]=(c[y+32>>2]|0)+-1;sh(y,61,A,0,0)|0;return}function cv(f,g,h,k,l,m,n,o){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+48|0;if((i|0)>=(j|0))ba();y=D+32|0;z=D;A=c[f>>2]|0;B=Kq(f)|0;if((o|0)<0)C=sh(B,135,d[l+24>>0]|0,0,0)|0;else C=0;x=l+20|0;if((c[x>>2]|0)>0){w=(k|0)==0;v=(m|0)==0;u=l+36|0;t=k+4|0;s=0;p=0;do{if(w)r=-1;else r=b[(c[t>>2]|0)+(s<<1)>>1]|0;q=Mv(f,h,n,r)|0;if(v)r=u;else r=m+(s<<2)|0;p=os(A,p,Vq(f,79,q,pt(A,27,c[(c[(c[l>>2]|0)+4>>2]|0)+((c[r>>2]<<16>>16)*24|0)>>2]|0)|0,0)|0)|0;s=s+1|0}while((s|0)<(c[x>>2]|0));r=l}else{r=l;p=0}if((o|0)>0?(c[r>>2]|0)==(h|0):0){if(!(a[h+44>>0]&32)){m=c[f>>2]|0;c[y>>2]=0;c[y+4>>2]=0;m=jr(m,159,y,0)|0;if(!m)m=0;else{c[m+28>>2]=n;a[m+1>>0]=68}r=c[g+48>>2]|0;c[y>>2]=0;c[y+4>>2]=0;q=jr(A,154,y,0)|0;if(q){c[q+44>>2]=h;c[q+28>>2]=r;b[q+32>>1]=-1}m=Vq(f,78,m,q,0)|0}else{r=h+8|0;while(1){r=c[r>>2]|0;if((a[r+51>>0]&3)==2)break;r=r+20|0}x=r+46|0;if(!(b[x>>1]|0))m=0;else{t=k+4|0;u=g+48|0;v=y+4|0;w=0;m=0;do{r=b[(c[t>>2]|0)+(w<<1)>>1]|0;q=Mv(f,h,n,r)|0;s=c[u>>2]|0;c[y>>2]=0;c[v>>2]=0;k=jr(A,154,y,0)|0;if(k){c[k+44>>2]=h;c[k+28>>2]=s;b[k+32>>1]=r}m=os(A,m,Vq(f,79,q,k,0)|0)|0;w=w+1|0}while((w|0)<(e[x>>1]|0))}m=Vq(f,19,m,0,0)|0}p=os(A,p,m)|0};c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;c[z+24>>2]=0;c[z+28>>2]=0;c[z+4>>2]=g;c[z>>2]=f;hs(z,p)|0;m=Rs(f,g,p,0,0,0,0)|0;sh(B,134,d[l+24>>0]|0,o,0)|0;if(m)Ts(m);Ck(A,p);if(C){m=c[B+32>>2]|0;if(m>>>0>C>>>0)c[(c[B+4>>2]|0)+(C*20|0)+8>>2]=m;c[(c[B+24>>2]|0)+88>>2]=m+-1}i=D;return}function dv(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+32|0;if((i|0)>=(j|0))ba();r=u;p=u+16|0;t=u+28|0;k=c[b>>2]|0;s=Kq(b)|0;if(s){m=(c[k+16>>2]|0)+(d<<4)|0;n=b+388|0;o=(f|0)==0;q=0;a:while(1){l=c[28744+(q<<3)>>2]|0;h=Wh(k,l,c[m>>2]|0)|0;do if(!h){if(!q){c[r>>2]=c[m>>2];c[r+4>>2]=l;c[r+8>>2]=28768;xr(b,28816,r);c[p>>2]=c[n>>2];a[t>>0]=4;q=q+1|0;continue a}}else{h=c[h+32>>2]|0;c[p+(q<<2)>>2]=h;a[t+q>>0]=0;cs(b,d,h,1,l);if(o){sh(s,118,h,d,0)|0;break}else{c[r>>2]=c[m>>2];c[r+4>>2]=l;c[r+8>>2]=g;c[r+12>>2]=f;xr(b,28840,r);break}}while(0);q=q+1|0;if((q|0)==3)break}th(s,sh(s,55,e,c[p>>2]|0,d)|0,3,-14);h=c[s+4>>2]|0;if(h)a[h+(((c[s+32>>2]|0)+-1|0)*20|0)+3>>0]=a[t>>0]|0}i=u;return}function ev(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;D=c[d>>2]|0;E=i+1|0;F=i+2|0;J=i+3|0;K=i+4|0;L=i+5|0;I=i+6|0;G=i+7|0;H=d+72|0;M=c[H>>2]|0;c[H>>2]=(M|0)>(G|0)?M:G;M=Kq(d)|0;if((!((M|0)==0|(f|0)==0)?(p=f+32|0,(c[p>>2]|0)!=0):0)?(q=c[f>>2]|0,(Bc(q,25568,7)|0)!=0):0){m=c[f+68>>2]|0;a:do if(m){l=c[D+20>>2]|0;if((l|0)>0){k=c[D+16>>2]|0;o=0;while(1){n=o+1|0;if((c[k+(o<<4)+12>>2]|0)==(m|0)){n=o;break a}if((n|0)<(l|0))o=n;else break}}else n=0}else n=-1e6;while(0);if(!(Oq(d,28,q,0,c[(c[D+16>>2]|0)+(n<<4)>>2]|0)|0)){cs(d,n,c[p>>2]|0,0,c[f>>2]|0);w=j+1|0;C=j+2|0;q=d+68|0;B=c[q>>2]|0;c[q>>2]=(B|0)>(C|0)?B:C;Mq(d,j,n,f,54);q=c[f>>2]|0;th(M,sh(M,97,0,K,0)|0,q,0);q=c[f+8>>2]|0;C=(g|0)==0;if(!q)m=1;else{x=f+44|0;y=d+8|0;z=M+4|0;A=M+32|0;B=M+24|0;m=1;do{do if(C|(q|0)==(g|0)){m=(c[q+36>>2]|0)==0?0:m;p=a[q+51>>0]|0;if(!((a[x>>0]&32)!=0&(p&3)==2)){k=e[q+48>>1]|0;o=c[q>>2]|0;l=q+46|0;if(!(p&8)){s=l;r=k;p=k}else{s=l;r=k;p=e[l>>1]|0}}else{s=q+46|0;p=e[s>>1]|0;r=p;o=c[f>>2]|0}u=p+-1|0;th(M,sh(M,97,0,L,0)|0,o,0);v=c[H>>2]|0;p=u+G|0;c[H>>2]=(v|0)>(p|0)?v:p;sh(M,54,w,c[q+40>>2]|0,n)|0;p=c[y>>2]|0;th(p,-1,ds(d,q)|0,-6);sh(M,25,r,F,0)|0;sh(M,25,e[s>>1]|0,J,0)|0;sh(M,1,0,F,E)|0;th(M,-1,28552,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=2;v=sh(M,108,w,0,0)|0;sh(M,25,0,F,0)|0;o=c[A>>2]|0;if((u|0)>0){r=ts(M)|0;t=ih(D,u<<2,0)|0;if(!t)break;sh(M,16,0,0,0)|0;o=c[A>>2]|0;if(((u|0)==1?(b[s>>1]|0)==1:0)?(a[q+50>>0]|0)!=0:0)sh(M,77,G,r,0)|0;p=q+32|0;k=0;do{s=_q(d,c[(c[p>>2]|0)+(k<<2)>>2]|0)|0;sh(M,25,k,F,0)|0;sh(M,47,w,k,J)|0;l=sh(M,78,J,0,k+G|0)|0;th(M,l,s,-4);c[t+(k<<2)>>2]=l;l=c[z>>2]|0;if(l)a[l+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=-128;k=k+1|0}while((k|0)!=(u|0));sh(M,25,u,F,0)|0;sh(M,16,0,r,0)|0;p=o+-1|0;l=c[A>>2]|0;if(l>>>0>p>>>0)c[(c[z>>2]|0)+(p*20|0)+8>>2]=l;c[(c[B>>2]|0)+88>>2]=l+-1;p=0;while(1){k=c[t+(p<<2)>>2]|0;if(l>>>0>k>>>0)c[(c[z>>2]|0)+(k*20|0)+8>>2]=l;c[(c[B>>2]|0)+88>>2]=l+-1;sh(M,47,w,p,p+G|0)|0;p=p+1|0;if((p|0)==(u|0))break;l=c[A>>2]|0}l=c[B>>2]|0;k=~r;do if((r|0)<0){p=c[l+112>>2]|0;if(!p)break;c[p+(k<<2)>>2]=c[A>>2]}while(0);c[l+88>>2]=(c[A>>2]|0)+-1;ig(D,t)}sh(M,1,1,E,J)|0;th(M,-1,28592,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=2;sh(M,9,w,o,0)|0;sh(M,1,0,E,I)|0;th(M,-1,28640,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=1;th(M,sh(M,49,K,3,J)|0,28632,0);sh(M,74,h,i,0)|0;sh(M,75,h,J,i)|0;o=c[z>>2]|0;p=c[A>>2]|0;if(o)a[o+((p+-1|0)*20|0)+3>>0]=8;if(p>>>0>v>>>0)c[o+(v*20|0)+8>>2]=p;c[(c[B>>2]|0)+88>>2]=p+-1}while(0);q=c[q+20>>2]|0}while((q|0)!=0)}if(!(m<<24>>24==0|C^1)){sh(M,50,j,I,0)|0;m=sh(M,46,I,0,0)|0;sh(M,28,0,L,0)|0;th(M,sh(M,49,K,3,J)|0,28632,0);sh(M,74,h,i,0)|0;sh(M,75,h,J,i)|0;l=c[M+4>>2]|0;k=c[M+32>>2]|0;if(l)a[l+((k+-1|0)*20|0)+3>>0]=8;if(k>>>0>m>>>0)c[l+(m*20|0)+8>>2]=k;c[(c[M+24>>2]|0)+88>>2]=k+-1}}}return}function fv(a,b){a=a|0;b=b|0;a=Kq(a)|0;if(a)sh(a,123,b,0,0)|0;return}function gv(d){d=d|0;var e=0,f=0,g=0;a:while(1){e=c[d+4>>2]|0;do if(e&4096)if(!(e&262144)){d=d+12|0;break}else{d=c[(c[d+20>>2]|0)+4>>2]|0;break}else{if(e&512){d=0;break a}switch(a[d>>0]|0){case -102:case -100:case -97:{g=11;break a}case 119:break;case 38:{g=10;break a}default:{g=14;break a}}d=c[(c[c[d+20>>2]>>2]|0)+4>>2]|0}while(0);d=c[d>>2]|0}if((g|0)==10)d=Tq(c[d+8>>2]|0,0)|0;else if((g|0)==11){f=c[d+44>>2]|0;if(f){e=b[d+32>>1]|0;if(e<<16>>16<0)d=68;else d=a[(c[f+4>>2]|0)+((e<<16>>16)*24|0)+21>>0]|0}else g=14}if((g|0)==14)d=a[d+1>>0]|0;return d|0}function hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;sh(b,25,0,e,0)|0;f=sh(b,108,d,0,0)|0;sh(b,47,d,0,e)|0;d=c[b+4>>2]|0;e=c[b+32>>2]|0;if(d)a[d+((e+-1|0)*20|0)+3>>0]=-128;if(e>>>0>f>>>0)c[d+(f*20|0)+8>>2]=e;c[(c[b+24>>2]|0)+88>>2]=e+-1;return}function iv(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;E=i;i=i+32|0;if((i|0)>=(j|0))ba();z=E;C=e+68|0;D=c[C>>2]|0;c[C>>2]=D+1;C=Kq(e)|0;A=(g&4|0)!=0;B=f+4|0;a:do if((((((((((((c[B>>2]&2048|0)!=0?(n=c[f+20>>2]|0,!((c[e+64>>2]|0)!=0|(n|0)==0)):0)?(c[n+52>>2]|0)==0:0)?(b[n+6>>1]&5)==0:0)?(c[n+60>>2]|0)==0:0)?(c[n+36>>2]|0)==0:0)?(m=c[n+32>>2]|0,(c[m>>2]|0)==1):0)?(c[m+28>>2]|0)==0:0)?(t=c[m+24>>2]|0,(t|0)!=0):0)?(a[t+44>>0]&16)==0:0)?(l=c[n>>2]|0,(c[l>>2]|0)==1):0)?(p=c[c[l+4>>2]>>2]|0,(a[p>>0]|0)==-102):0){x=c[e>>2]|0;y=b[p+32>>1]|0;o=c[t+68>>2]|0;b:do if(o){m=c[x+20>>2]|0;if((m|0)>0){l=c[x+16>>2]|0;k=0;while(1){n=k+1|0;if((c[l+(k<<4)+12>>2]|0)==(o|0)){n=k;break b}if((n|0)<(m|0))k=n;else break}}else n=0}else n=-1e6;while(0);v=n<<16>>16;wr(e,v);cs(e,v,c[t+32>>2]|0,0,c[t>>2]|0);w=y<<16>>16;if(y<<16>>16<0){k=Kq(e)|0;h=e+80|0;l=c[h>>2]|0;c[h>>2]=l+1;l=sh(k,44,l,0,0)|0;Mq(e,D,v,t,54);k=c[C+32>>2]|0;if(k>>>0>l>>>0)c[(c[C+4>>2]|0)+(l*20|0)+8>>2]=k;c[(c[C+24>>2]|0)+88>>2]=k+-1;k=1;o=49;break}k=Ku(e,c[f+12>>2]|0,p)|0;u=t+4|0;o=a[(c[u>>2]|0)+(w*24|0)+21>>0]|0;n=(jv(f)|0)<<24>>24;if((n|0)==66)n=o<<24>>24==66&1;else if((n|0)==65)n=1;else n=o<<24>>24>66&1;o=c[t+8>>2]|0;if((o|0)!=0&(n|0)!=0){p=x+62|0;n=e+80|0;m=e+8|0;l=(h|0)==0;q=C+32|0;s=C+4|0;t=C+24|0;r=e+72|0;c:while(1){do if((b[c[o+4>>2]>>1]|0)==y<<16>>16?(Un(x,a[p>>0]|0,c[c[o+32>>2]>>2]|0,0)|0)==(k|0):0){if(!A)break c;if((b[o+46>>1]|0)!=1)break;if(a[o+50>>0]|0)break c}while(0);o=c[o+20>>2]|0;if(!o){o=38;break a}}B=Kq(e)|0;k=c[n>>2]|0;c[n>>2]=k+1;n=sh(B,44,k,0,0)|0;sh(C,54,D,c[o+40>>2]|0,v)|0;k=c[m>>2]|0;th(k,-1,ds(e,o)|0,-6);k=(d[c[o+28>>2]>>0]|0)+3|0;if(!l?(a[(c[u>>2]|0)+(w*24|0)+20>>0]|0)==0:0){B=(c[r>>2]|0)+1|0;c[r>>2]=B;c[h>>2]=B;hv(C,D,B)}l=c[q>>2]|0;if(l>>>0>n>>>0)c[(c[s>>2]|0)+(n*20|0)+8>>2]=l;c[(c[t>>2]|0)+88>>2]=l+-1;o=49}else o=38}else o=38;while(0);do if((o|0)==38){if((g&1|0)!=0?(c[B>>2]&2048|0)==0:0){g=f+12|0;y=c[g>>2]|0;c[g>>2]=0;c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;C=z+20|0;a[C>>0]=1;c[z>>2]=78;c[z+4>>2]=79;c[z+24>>2]=0;ns(z,f)|0;C=a[C>>0]|0;c[g>>2]=y;if(!(C<<24>>24)){k=5;o=49;break}if((c[c[f+20>>2]>>2]|0)<3){k=5;o=49;break}}m=e+424|0;n=c[m>>2]|0;if(A){c[m>>2]=0;if((b[(c[f+12>>2]|0)+32>>1]|0)<0){k=((c[B>>2]|0)>>>11&1)+1|0;l=0}else{k=2;l=0}}else if(!h){k=2;l=0}else{k=e+72|0;l=(c[k>>2]|0)+1|0;c[k>>2]=l;c[h>>2]=l;k=2}au(e,f,l,(k|0)==1&1)|0;c[m>>2]=n}while(0);if((o|0)==49)c[f+28>>2]=D;i=E;return k|0}function jv(a){a=a|0;var b=0,d=0;b=gv(c[a+12>>2]|0)|0;d=c[a+16>>2]|0;do if(!d)if(!(c[a+4>>2]&2048))return (b<<24>>24==0?65:b)|0;else{b=xu(c[c[(c[c[a+20>>2]>>2]|0)+4>>2]>>2]|0,b)|0;break}else b=xu(d,b)|0;while(0);return b|0}function kv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=i;i=i+16|0;if((i|0)>=(j|0))ba();W=Z;U=c[d>>2]|0;X=k+28|0;c[X>>2]=-1;T=k+44|0;c[T>>2]=0;a:do if((e|0)!=0?(b[h+28>>1]&20)==0:0){q=c[U+20>>2]|0;if((q|0)>0){o=c[U+16>>2]|0;p=0;while(1){if(!($c(c[o+(p<<4)>>2]|0,e)|0))break;p=p+1|0;if((p|0)>=(q|0)){S=e;e=0;break a}}S=e;e=c[o+(p<<4)+12>>2]|0}else{S=e;e=0}}else{S=0;e=0}while(0);Q=(S|0)==0;N=Q&(f|0)!=0;m=d+412|0;J=d+436|0;K=k+1|0;Y=k+32|0;L=d+428|0;M=d+432|0;R=(f|0)==0;P=k+4|0;l=h;r=0;n=0;q=0;p=0;b:while(1){I=(l|0)!=0;o=l+4|0;H=l+8|0;s=0;t=r;while(1){r=(s|0)==0;if(!(I&r)){V=82;break b}s=c[o>>2]|0;if(s){G=c[s>>2]|0;if((G|0)>0){r=0;F=0;E=s+8|0;while(1){D=c[E+16>>2]|0;u=c[E+20>>2]|0;if((u|0)!=0?(b[u+6>>1]&512)!=0:0){u=c[u>>2]|0;A=c[u>>2]|0;if((A|0)>0){B=c[u+4>>2]|0;u=0;w=0;do{if(rv(c[B+(w*20|0)+8>>2]|0,g,f,S)|0){b[Y>>1]=w;r=r+1|0;t=2;u=1;p=E}w=w+1|0}while((w|0)<(A|0))}else u=0;if(!((u|0)!=0|R)){v=t;V=21}}else{v=t;V=21}c:do if((V|0)==21){V=0;if(!Q?(c[D+68>>2]|0)!=(e|0):0){t=v;break}if(!R){u=c[E+12>>2]|0;if(!u)u=c[D>>2]|0;if($c(u,f)|0){t=v;break}}t=v+1|0;p=(v|0)==0?E:p;u=b[D+38>>1]|0;if(u<<16>>16>0){s=(r|0)==1;x=E+36|0;y=E+48|0;A=0;B=c[D+4>>2]|0;d:while(1){e:do if(!($c(c[B>>2]|0,g)|0)){if(!s){p=A;break d}if(!(a[x>>0]&4)){w=c[y>>2]|0;if(!w){p=A;break d}z=c[w+4>>2]|0;if((z|0)<=0){p=A;break d}w=c[w>>2]|0;v=0;while(1){if(!($c(c[w+(v<<3)>>2]|0,g)|0))break e;v=v+1|0;if((v|0)>=(z|0)){p=A;break d}}}}while(0);A=A+1|0;if((A|0)>=(u<<16>>16|0))break c;else B=B+24|0}b[Y>>1]=(p|0)==(b[D+36>>1]|0)?-1:p&65535;r=r+1|0;p=E}}while(0);F=F+1|0;if((F|0)>=(G|0))break;else E=E+72|0}}else r=0;if(!p)B=0;else{c[X>>2]=c[p+40>>2];s=c[p+16>>2]|0;c[T>>2]=s;if(a[p+36>>0]&8)c[P>>2]=c[P>>2]|1048576;B=p;e=c[s+68>>2]|0}}else{r=0;B=p}do if(N&(t|0)==0)if(c[m>>2]|0){s=a[J>>0]|0;if(s<<24>>24!=109)if($c(27560,f)|0)if(s<<24>>24==108){v=r;t=0;w=n;break}else V=49;else w=1;else V=49;if((V|0)==49){V=0;if(!($c(27568,f)|0))w=0;else{v=r;t=0;w=n;break}}c[X>>2]=w;v=c[m>>2]|0;if(v){e=c[v+68>>2]|0;u=b[v+38>>1]|0;f:do if(u<<16>>16>0){s=0;t=c[v+4>>2]|0;while(1){if(!($c(c[t>>2]|0,g)|0))break;s=s+1|0;if((s|0)<(u<<16>>16|0))t=t+24|0;else break f}s=(s|0)==(b[v+36>>1]|0)?-1:s}else s=0;while(0);p=u<<16>>16;if((s|0)>=(p|0)?(Xh(g)|0)!=0:0)t=(a[v+44>>0]&32)==0?-1:s;else t=s;if((t|0)<(p|0)){r=r+1|0;do if((t|0)>=0){s=(t|0)>31?-1:1<<t;if(!w){c[L>>2]=c[L>>2]|s;break}else{c[M>>2]=c[M>>2]|s;break}}else a[K>>0]=68;while(0);b[Y>>1]=t;c[T>>2]=v;t=1;n=1;V=66}else{t=1;V=66}}else{v=r;t=0;w=n}}else{v=r;t=0;w=n}else V=66;while(0);if((V|0)==66){V=0;if((r|0)==0&(t|0)==1&(B|0)!=0)if((Xh(g)|0)!=0?(a[(c[B+16>>2]|0)+44>>0]&32)==0:0){b[Y>>1]=-1;a[K>>0]=68;s=1;p=B;continue}else{v=0;w=n}else{v=r;w=n}}r=c[H>>2]|0;u=(v|0)==0;if((r|0)!=0&R&u?(O=c[r>>2]|0,(O|0)>0):0){n=c[r+4>>2]|0;p=0;do{s=c[n+(p*20|0)+4>>2]|0;if((s|0)!=0?($c(s,g)|0)==0:0){V=75;break b}p=p+1|0}while((p|0)<(O|0))}if(u){s=t;n=w;p=B;break}else{s=v;n=w;p=B}}l=c[l+16>>2]|0;r=s;q=q+1|0}do if((V|0)==75){if((b[l+28>>1]&1)==0?(c[(c[n+(p*20|0)>>2]|0)+4>>2]&2|0)!=0:0){c[W>>2]=s;ph(d,27576,W);h=2;break}uv(d,r,p,k,10360,q);if((a[k>>0]|0)==24)V=115;else V=96}else if((V|0)==82){if(r&R?(c[P>>2]&64|0)!=0:0){a[k>>0]=97;c[T>>2]=0;h=1;break}s=(s|0)==1;if(!s){r=r?27608:27624;do if(Q)if(R){c[W>>2]=r;c[W+4>>2]=g;ph(d,27680,W);break}else{c[W>>2]=r;c[W+4>>2]=f;c[W+8>>2]=g;ph(d,27664,W);break}else{c[W>>2]=r;c[W+4>>2]=S;c[W+8>>2]=f;c[W+12>>2]=g;ph(d,27648,W)}while(0);a[d+17>>0]=1;F=h+24|0;c[F>>2]=(c[F>>2]|0)+1}q=b[Y>>1]|0;if(q<<16>>16>-1&(p|0)!=0){B=q<<16>>16>63;D=ew(1,0,q<<16>>16|0)|0;F=p+56|0;A=F;E=c[A+4>>2]|(B?-2147483648:C);c[F>>2]=c[A>>2]|(B?0:D);c[F+4>>2]=E}F=k+12|0;Ck(U,c[F>>2]|0);c[F>>2]=0;F=k+16|0;Ck(U,c[F>>2]|0);c[F>>2]=0;a[k>>0]=(n|0)!=0?62:-102;if(s)V=96;else h=2}while(0);g:do if((V|0)==96){r=c[o>>2]|0;n=c[d>>2]|0;if(!((c[n+284>>2]|0)==0|(e|0)==0)){q=c[n+20>>2]|0;if((q|0)>0){o=c[n+16>>2]|0;p=0;while(1){n=p+1|0;if((c[o+(p<<4)+12>>2]|0)==(e|0)){n=p;break}if((n|0)<(q|0))p=n;else break}if((n|0)<0){V=115;break}else e=n}else e=0;if((a[k>>0]|0)!=62){o=c[r>>2]|0;if((o|0)<=0){V=115;break}m=c[X>>2]|0;n=0;while(1){if((m|0)==(c[r+(n*72|0)+48>>2]|0))break;n=n+1|0;if((n|0)>=(o|0)){V=115;break g}}m=r+(n*72|0)+24|0}o=c[m>>2]|0;m=b[Y>>1]|0;n=m<<16>>16;if(o){if(m<<16>>16<=-1){m=b[o+36>>1]|0;if(m<<16>>16>-1)m=c[(c[o+4>>2]|0)+((m<<16>>16)*24|0)>>2]|0;else m=12944}else m=c[(c[o+4>>2]|0)+(n*24|0)>>2]|0;if((av(d,c[o>>2]|0,m,e)|0)==2){a[k>>0]=101;V=115}else V=115}else V=115}else V=115}while(0);if((V|0)==115){F=h+20|0;c[F>>2]=(c[F>>2]|0)+1;if((l|0)==(h|0))h=1;else{do{h=c[h+16>>2]|0;F=h+20|0;c[F>>2]=(c[F>>2]|0)+1}while((h|0)!=(l|0));h=1}}i=Z;return h|0}function lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=a[d>>0]|0;a:do if(e<<24>>24==-100|e<<24>>24==-102){e=c[b+24>>2]|0;f=c[e>>2]|0;b:do if((f|0)!=0?(g=c[f>>2]|0,(g|0)>0):0){b=c[d+28>>2]|0;d=0;while(1){if((b|0)==(c[f+(d*72|0)+48>>2]|0))break;d=d+1|0;if((d|0)>=(g|0))break b}b=e+4|0;c[b>>2]=(c[b>>2]|0)+1;break a}while(0);b=e+8|0;c[b>>2]=(c[b>>2]|0)+1}while(0);return 0}function mv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();v=w;q=w+12|0;a:do if(!f)h=0;else{t=c[c[e>>2]>>2]|0;u=c[d>>2]|0;b:do if((c[f>>2]|0)>0){h=0;r=c[f+4>>2]|0;c:while(1){o=c[r>>2]|0;d:do if(!o)k=0;else{k=o;while(1){l=c[k+4>>2]|0;if(!(l&4096))break d;if(!(l&262144))k=k+12|0;else k=c[(c[k+20>>2]|0)+4>>2]|0;k=c[k>>2]|0;if(!k){k=0;break}}}while(0);if((a[g>>0]|0)!=71?(p=nv(c[e>>2]|0,k)|0,c[q>>2]=p,(p|0)>0):0)b[r+16>>1]=p;else s=13;do if((s|0)==13){s=0;if(Is(k,q)|0){k=c[q>>2]|0;if((k+-1|0)>>>0>65534)break c;b[r+16>>1]=k;break}m=r+16|0;b[m>>1]=0;if(hs(d,o)|0){h=1;break a}l=c[e>>2]|0;n=c[l>>2]|0;if((n|0)>0){l=c[l+4>>2]|0;k=0;do{x=k;k=k+1|0;if(!(yu(o,c[l+(x*20|0)>>2]|0,-1)|0))b[m>>1]=k}while((k|0)<(n|0))}}while(0);h=h+1|0;if((h|0)>=(c[f>>2]|0))break b;else r=r+20|0}c[v>>2]=h+1;c[v+4>>2]=g;c[v+8>>2]=t;ph(u,27064,v);h=1;break a}while(0);h=su(u,e,f,g)|0}while(0);i=w;return h|0}function nv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;a:do if((a[d>>0]|0)==27?(f=c[d+8>>2]|0,g=c[b>>2]|0,(g|0)>0):0){b=c[b+4>>2]|0;d=0;while(1){e=c[b+(d*20|0)+4>>2]|0;if((e|0)!=0?($c(e,f)|0)==0:0)break;d=d+1|0;if((d|0)>=(g|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function ov(a,d){a=a|0;d=d|0;var e=0,f=0;e=b[a+38>>1]|0;a:do if(e<<16>>16>0){f=c[a+4>>2]|0;e=e<<16>>16;a=0;while(1){if(!($c(c[f+(a*24|0)>>2]|0,d)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function pv(a,d,e,f,g,h,i,j){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0;k=c[a>>2]|0;e=Nv(k,d,e,f)|0;f=Nv(k,d,g,h)|0;h=Vq(a,79,e,f,0)|0;if((h|0)!=0&(i|0)!=0){e=h+4|0;c[e>>2]=c[e>>2]|1;b[h+36>>1]=c[f+28>>2]}c[j>>2]=os(k,c[j>>2]|0,h)|0;return}function qv(a,d){a=a|0;d=d|0;var e=0,f=0;if(a){e=d&65535;do{f=a+4|0;c[f>>2]=c[f>>2]|1;b[a+36>>1]=e;qv(c[a+12>>2]|0,d);a=c[a+16>>2]|0}while((a|0)!=0)}return}function rv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=0;while(1){g=a[b+f>>0]|0;if(g<<24>>24==46|g<<24>>24==0)break;f=f+1|0}if(e)if((Bc(b,e,f)|0)==0?(a[e+f>>0]|0)==0:0)h=7;else f=0;else h=7;do if((h|0)==7){e=f+1|0;h=b+e|0;g=0;while(1){i=a[b+(g+e)>>0]|0;if(i<<24>>24==46|i<<24>>24==0)break;g=g+1|0}if(d){if(Bc(h,d,g)|0){f=0;break}if(a[d+g>>0]|0){f=0;break}}if((c|0)!=0?($c(b+(f+2+g)|0,c)|0)!=0:0){f=0;break}f=1}while(0);return f|0}function sv(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((a|0)!=0?(e=c[a+4>>2]|0,(e|0)>0):0){d=c[a>>2]|0;a=0;while(1){if(!($c(c[d+(a<<3)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function tv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c[g>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[g+4>>2]=f;f=rr(b,d,g,0)|0;i=h;return f|0}function uv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();o=s;m=e+4|0;n=c[(c[m>>2]|0)+(f*20|0)>>2]|0;p=c[d>>2]|0;l=Ir(p,n,0,0)|0;do if(l){if((a[n>>0]|0)!=-102?(a[h>>0]|0)!=71:0){if((k|0)>0){c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o>>2]=88;c[o+24>>2]=k;ns(o,l)|0}l=Vq(d,24,l,0,0)|0;if(!l)break;e=l+4|0;c[e>>2]=c[e>>2]|4096;e=(c[m>>2]|0)+(f*20|0)+18|0;k=b[e>>1]|0;if(!(k<<16>>16)){f=d+456|0;k=(c[f>>2]|0)+1|0;c[f>>2]=k;k=k&65535;b[e>>1]=k}c[l+28>>2]=k&65535}if((a[g>>0]|0)==95)l=tv(d,l,c[g+8>>2]|0)|0;e=g+4|0;c[e>>2]=c[e>>2]|32768;Ck(p,g);k=g+0|0;m=l+0|0;n=k+48|0;do{c[k>>2]=c[m>>2];k=k+4|0;m=m+4|0}while((k|0)<(n|0));if((c[e>>2]&1024|0)==0?(q=g+8|0,r=c[q>>2]|0,(r|0)!=0):0){c[q>>2]=gh(p,r)|0;c[e>>2]=c[e>>2]|65536}ig(p,l)}while(0);i=s;return}function vv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=a+12|0;g=c[n>>2]|0;k=a+16|0;i=c[k>>2]|0;m=a+20|0;do if((g|0)<(i|0))l=15;else{g=c[m>>2]|0;j=c[c[c[a>>2]>>2]>>2]|0;h=ih(j,i*96|0,0)|0;c[m>>2]=h;if(!h){if(f&1)Ck(j,d);c[m>>2]=g;g=0;break}gw(h|0,g|0,(c[n>>2]|0)*48|0)|0;if((g|0)!=(a+24|0))ig(j,g);h=c[m>>2]|0;do if(!j)h=hc[c[8744+48>>2]&127](h)|0;else{if((c[j+276>>2]|0)>>>0<=h>>>0?(c[j+280>>2]|0)>>>0>h>>>0:0){h=e[j+248>>1]|0;break}h=hc[c[8744+48>>2]&127](h)|0}while(0);l=(h>>>0)/48|0;c[k>>2]=l;g=c[n>>2]|0;bw((c[m>>2]|0)+(g*48|0)|0,0,(l-g|0)*48|0)|0;g=c[n>>2]|0;l=15}while(0);if((l|0)==15){c[n>>2]=g+1;i=c[m>>2]|0;a:do if(!d){b[i+(g*48|0)+16>>1]=1;d=0}else{if(!(c[d+4>>2]&262144))h=1;else{h=c[d+28>>2]|0;h=((bs(h,((h|0)<0)<<31>>31)|0)&65535)+65266&65535}b[i+(g*48|0)+16>>1]=h;while(1){h=c[d+4>>2]|0;if(!(h&4096))break a;if(!(h&262144))d=d+12|0;else d=c[(c[d+20>>2]|0)+4>>2]|0;d=c[d>>2]|0;if(!d){d=0;break}}}while(0);c[i+(g*48|0)>>2]=d;b[i+(g*48|0)+20>>1]=f;c[i+(g*48|0)+24>>2]=a;c[i+(g*48|0)+4>>2]=-1}return g|0}function wv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d)if((a[d>>0]|0)==-102){d=c[d+28>>2]|0;f=c[b>>2]|0;if((f|0)>0)e=0;else{f=0;e=0;break}while(1){if((c[b+(e<<2)+4>>2]|0)==(d|0))break;e=e+1|0;if((e|0)>=(f|0)){f=0;e=0;break a}}e=ew(1,0,e|0)|0;f=C;break}else{g=wv(b,c[d+16>>2]|0)|0;e=C;h=wv(b,c[d+12>>2]|0)|0;e=C|e;f=d+20|0;if(!(c[d+4>>2]&2048)){d=Hu(b,c[f>>2]|0)|0;f=C}else{d=xv(b,c[f>>2]|0)|0;f=C}f=e|f;e=h|g|d;break}else{f=0;e=0}while(0);C=f;return e|0}function xv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!b){b=0;d=0}else{g=b;d=0;b=0;do{f=c[g+32>>2]|0;l=Hu(a,c[g>>2]|0)|0;b=C|b;k=Hu(a,c[g+40>>2]|0)|0;b=b|C;j=Hu(a,c[g+48>>2]|0)|0;b=b|C;i=wv(a,c[g+36>>2]|0)|0;b=b|C;e=wv(a,c[g+44>>2]|0)|0;d=l|d|k|j|i|e;b=b|C;if((f|0)!=0?(h=c[f>>2]|0,(h|0)>0):0){e=0;do{j=xv(a,c[f+(e*72|0)+28>>2]|0)|0;b=C|b;k=wv(a,c[f+(e*72|0)+52>>2]|0)|0;d=j|d|k;b=b|C;e=e+1|0}while((e|0)<(h|0))}g=c[g+52>>2]|0}while((g|0)!=0)}C=b;return d|0}function yv(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=b[e+18>>1]|0;k=b[f+18>>1]|0;h=k|l;if(((!((l&62)==0|(k&62)==0)?(g=h&65535,(g&26|0)==(g|0)|(g&38|0)==(g|0)):0)?(j=c[e>>2]|0,i=c[f>>2]|0,(yu(c[j+12>>2]|0,c[i+12>>2]|0,-1)|0)==0):0)?(yu(c[j+16>>2]|0,c[i+16>>2]|0,-1)|0)==0:0){if(g+65535&g)h=(g&24|0)==0?32:8;i=Ir(c[c[c[d>>2]>>2]>>2]|0,j,0,0)|0;if(i){h=h&65535;g=79;while(1)if((h|0)==(2<<g+-79|0))break;else g=g+1|0;a[i>>0]=g;Au(d,vv(d,i,3)|0)}}return}function zv(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0;c[d>>2]=f;c[d+4>>2]=f;a:do if((j|0)!=0&(h|0)>-1){a[d+12>>0]=a[(c[(c[j+12>>2]|0)+4>>2]|0)+(h*24|0)+21>>0]|0;k=c[j+4>>2]|0;if((b[k>>1]|0)==(h|0))f=0;else{l=e[j+48>>1]|0;m=0;while(1){f=m+1|0;if((m|0)>(l|0)){f=0;break a}if((b[k+(f<<1)>>1]|0)==(h|0))break;else m=f}}c[d+8>>2]=c[(c[j+32>>2]|0)+(f<<2)>>2];n=8}else{a[d+12>>0]=0;c[d+8>>2]=0;n=8}while(0);if((n|0)==8){c[d+16>>2]=i;c[d+20>>2]=0;c[d+24>>2]=g;c[d+28>>2]=h;a[d+13>>0]=2;a[d+14>>0]=2;f=Av(d)|0}return f|0}
function Pn(d,f,g,h,k,l,m,n,o){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+160|0;if((i|0)>=(j|0))ba();O=aa+16|0;K=aa+152|0;M=aa+48|0;J=aa+40|0;N=aa+36|0;L=aa+32|0;R=aa+8|0;Q=aa;W=aa+28|0;_=aa+24|0;c[_>>2]=0;do if(!(a[d+46>>0]|0)){$=d+43|0;if((a[$>>0]|0)==0?(p=c[d+4>>2]|0,p=lc[c[(c[p>>2]|0)+56>>2]&31](p,1,1,10)|0,(p|0)!=0):0)break;Z=d+45|0;a[Z>>0]=1;a:do if(!f){t=0;X=11}else{r=d+4|0;p=(g|0)!=0;while(1){if(a[$>>0]|0)break;t=c[r>>2]|0;t=lc[c[(c[t>>2]|0)+56>>2]&31](t,0,1,10)|0;if(!(p&(t|0)==5)){X=9;break}if(!(hc[g&127](h)|0)){t=0;g=0;X=11;break a}}if((X|0)==9)if((t|0)==5){t=0;g=0;X=11;break}else if(t){Y=f;break}a[d+44>>0]=1;t=f;X=11}while(0);if((X|0)==11){Y=t;t=jq(d,_)|0}do if(!t){V=d+68|0;t=b[d+66>>1]|0;if((c[V>>2]|0)!=0?(U=t&65535,(U<<16&65536|U&65024|0)!=(l|0)):0){c[O>>2]=51863;c[O+4>>2]=10788;Zc(11,13600,O);q=11;break}S=t&65535;S=S<<16&65536|S&65024;U=d+32|0;T=(c[c[U>>2]>>2]|0)+96|0;w=c[V>>2]|0;b:do if((c[T>>2]|0)>>>0<w>>>0){H=(w+33|0)>>>12;I=H+1|0;l=w<<1;v=l+28+(H*20|0)|0;p=Pc(v)|0;c:do if(!p){t=7;p=0}else{bw(p|0,0,v|0)|0;v=p+4|0;c[v>>2]=I;l=Pc(w>>>0>4096?8192:l)|0;do if(l){G=p+8|0;u=0;while(1){t=Lo(d,u,J,L,N)|0;if(t){X=21;break}F=(c[L>>2]|0)+4|0;c[L>>2]=F;if((u|0)==(H|0)){E=c[N>>2]|0;t=E;E=w-E|0}else{t=c[N>>2]|0;E=(c[J>>2]|0)-F>>2}r=G+((c[v>>2]|0)*20|0)|0;D=r+(t<<1)|0;B=t+1|0;c[N>>2]=B;if((E|0)>0){y=0;do{b[r+(y+t<<1)>>1]=y;y=y+1|0}while((y|0)!=(E|0));c[O>>2]=0;c[K>>2]=0;z=M+0|0;y=z+104|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0));A=0;do{c[O>>2]=1;z=r+(A+t<<1)|0;c[K>>2]=z;if(!(A&1)){x=1;y=0}else{y=0;do{kq(F,c[M+(y<<3)+4>>2]|0,c[M+(y<<3)>>2]|0,K,O,l);y=y+1|0}while((1<<y&A|0)!=0);x=c[O>>2]|0;z=c[K>>2]|0}c[M+(y<<3)+4>>2]=z;c[M+(y<<3)>>2]=x;A=A+1|0}while((A|0)!=(E|0));y=y+1|0;if((y|0)<13)X=34}else{c[O>>2]=0;c[K>>2]=0;z=M+0|0;y=z+104|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0));y=1;X=34}if((X|0)==34){while(1){X=0;if(1<<y&E)kq(F,c[M+(y<<3)+4>>2]|0,c[M+(y<<3)>>2]|0,K,O,l);y=y+1|0;if((y|0)==13)break;else X=34}x=c[O>>2]|0}c[G+(u*20|0)+16>>2]=B;c[G+(u*20|0)+12>>2]=x;c[G+(u*20|0)+4>>2]=D;c[G+(u*20|0)+8>>2]=F;u=u+1|0;if((u|0)>=(I|0)){X=39;break}}if((X|0)==21){Sc(l);break}else if((X|0)==39){Sc(l);t=0;break c}}else{Sc(0);t=7}while(0);Sc(p)}while(0);if(!t){O=d+72|0;N=c[O>>2]|0;M=d+4|0;x=1;w=c[V>>2]|0;t=0;while(1){l=T+(x<<2)+4|0;r=c[l>>2]|0;d:do if(w>>>0>r>>>0){v=x+3|0;u=(g|0)!=0;while(1){if(a[$>>0]|0)break;t=c[M>>2]|0;t=lc[c[(c[t>>2]|0)+56>>2]&31](t,v,1,10)|0;if(!(u&(t|0)==5)){X=49;break}if(!(hc[g&127](h)|0)){g=0;t=5;break d}}if((X|0)==49){X=0;if((t|0)==5){g=0;t=5;break}else if(t){q=t;X=100;break b}}c[l>>2]=(x|0)==1?w:-1;if(!(a[$>>0]|0)){r=c[M>>2]|0;lc[c[(c[r>>2]|0)+56>>2]&31](r,v,1,9)|0;r=w;t=0}else{r=w;t=0}}else r=w;while(0);x=x+1|0;if((x|0)>=5){I=r;break}else w=r}e:do if((c[T>>2]|0)>>>0<I>>>0){t=(g|0)!=0;while(1){if(a[$>>0]|0)break;r=c[M>>2]|0;r=lc[c[(c[r>>2]|0)+56>>2]&31](r,3,1,10)|0;if(!(t&(r|0)==5)){s=r;X=58;break}if(!(hc[g&127](h)|0)){s=5;break e}}if((X|0)==58?(s|0)!=0:0)break;F=c[T>>2]|0;G=(k|0)!=0;if(G?(P=c[d+8>>2]|0,P=nc[c[(c[P>>2]|0)+20>>2]&127](P,k)|0,(P|0)!=0):0)s=P;else X=61;f:do if((X|0)==61){P=ow(N|0,0,S|0,0)|0;s=Q;c[s>>2]=P;c[s+4>>2]=C;s=c[M>>2]|0;s=nc[c[(c[s>>2]|0)+24>>2]&127](s,R)|0;if(!s){P=R;K=c[P+4>>2]|0;R=Q;L=c[R+4>>2]|0;if((K|0)<(L|0)|((K|0)==(L|0)?(c[P>>2]|0)>>>0<(c[R>>2]|0)>>>0:0)){R=c[M>>2]|0;Yb[c[(c[R>>2]|0)+40>>2]&63](R,5,Q)|0}B=p+4|0;D=S|24;E=d+8|0;t=c[B>>2]|0;g:do if((t|0)>0){s=0;while(1){A=c[p>>2]|0;z=-1;h:while(1){i:while(1){t=t+-1|0;x=p+(t*20|0)+8|0;l=c[x>>2]|0;r=c[p+(t*20|0)+20>>2]|0;j:do if((l|0)<(r|0)){w=c[p+(t*20|0)+12>>2]|0;y=c[p+(t*20|0)+16>>2]|0;while(1){u=e[w+(l<<1)>>1]|0;v=c[y+(u<<2)>>2]|0;if(v>>>0>A>>>0)break;l=l+1|0;c[x>>2]=l;if((l|0)>=(r|0))break j}if(v>>>0<z>>>0)break i}while(0);if((t|0)<=0){l=s;t=z;break h}}s=(c[p+(t*20|0)+24>>2]|0)+u|0;if((t|0)>0)z=v;else{l=s;t=v;break}}c[p>>2]=t;if((t|0)==-1)break g;if(!(l>>>0<=F>>>0|l>>>0>I>>>0|t>>>0>N>>>0)){s=ow(l+-1|0,0,D|0,0)|0;s=fw(s|0,C|0,56,0)|0;R=c[E>>2]|0;s=pc[c[(c[R>>2]|0)+8>>2]&31](R,m,S,s,C)|0;if(s)break f;s=ow(t+-1|0,0,S|0,0)|0;R=c[M>>2]|0;s=pc[c[(c[R>>2]|0)+12>>2]&31](R,m,S,s,C)|0;if(s)break f}t=c[B>>2]|0;if((t|0)<=0){X=66;break}else s=l}}else X=66;while(0);if((X|0)==66)c[p>>2]=-1;if((I|0)==(c[(c[c[U>>2]>>2]|0)+16>>2]|0)){s=ow(c[O>>2]|0,0,S|0,0)|0;X=c[M>>2]|0;s=Yb[c[(c[X>>2]|0)+16>>2]&63](X,s,C)|0;if((s|0)==0&G){s=c[M>>2]|0;s=nc[c[(c[s>>2]|0)+20>>2]&127](s,k)|0}if(s)break}c[T>>2]=I;s=0}}while(0);if(!(a[$>>0]|0)){X=c[M>>2]|0;lc[c[(c[X>>2]|0)+56>>2]&31](X,3,1,9)|0}}else s=t;while(0);s=(s|0)==5?0:s;X=88}else q=t}else{p=0;s=0;X=88}while(0);k:do if((X|0)==88)if((s|0)==0&(Y|0)!=0)if((c[T>>2]|0)>>>0>=(c[V>>2]|0)>>>0)if((Y|0)>1){_c(4,W);t=d+4|0;r=(g|0)!=0;while(1){if(a[$>>0]|0)break;s=c[t>>2]|0;s=lc[c[(c[s>>2]|0)+56>>2]&31](s,4,4,10)|0;if(!(r&(s|0)==5)){q=s;X=95;break}if(!(hc[g&127](h)|0)){q=5;X=100;break k}}if((X|0)==95?(q|0)!=0:0){X=100;break}if((Y|0)==3){To(d,c[W>>2]|0);q=c[d+8>>2]|0;q=Yb[c[(c[q>>2]|0)+16>>2]&63](q,0,0)|0}else q=0;if(!(a[$>>0]|0)){X=c[t>>2]|0;lc[c[(c[X>>2]|0)+56>>2]&31](X,4,4,9)|0;X=100}else X=100}else{q=0;X=100}else{q=5;X=100}else{q=s;X=100}while(0);if((X|0)==100)Sc(p);if((q|0)==0|(q|0)==5){if(n)c[n>>2]=c[V>>2];if(o)c[o>>2]=c[(c[c[U>>2]>>2]|0)+96>>2]}}else q=t;while(0);if(c[_>>2]|0){z=d+52|0;y=z+48|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0))}p=d+44|0;if(a[p>>0]|0){if(!(a[$>>0]|0)){_=c[d+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}a[p>>0]=0;a[d+47>>0]=0}if(!(a[$>>0]|0)){$=c[d+4>>2]|0;lc[c[(c[$>>2]|0)+56>>2]&31]($,1,1,9)|0}a[Z>>0]=0;p=(q|0)!=0|(Y|0)==(f|0)?q:5}else p=8;while(0);i=aa;return p|0}function Qn(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=(c|0)<(e|0)?c:e;g=Vv(d,f,h)|0;a:do if(!g){b:do if(b){g=c-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[d+(g+h)>>0]|0)!=32)break b}if(!g){g=e-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[f+(g+h)>>0]|0)!=32)break b}if(!g){g=0;break a}}}while(0);g=c-e|0}while(0);return g|0}function Rn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Bc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function Sn(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y;p=c[e>>2]|0;a:do if(d){n=d;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;o=n-d&1073741823;if((c[2189]|p&64|0)!=0&o>>>0>4?(Vv(d,14984,5)|0)==0:0){n=o+2|0;m=p|64;if(o){p=0;do{n=((a[d+p>>0]|0)==38&1)+n|0;p=p+1|0}while((p|0)<(o|0))}l=Pc(n)|0;if(l){do if((a[d+5>>0]|0)==47?(a[d+6>>0]|0)==47:0){n=7;while(1){s=a[d+n>>0]|0;if(s<<24>>24==0|s<<24>>24==47)break;n=n+1|0}if((n|0)==16){k=d+7|0;if(!(Vv(14992,k,9)|0)){n=0;p=16;k=0;break}}else if((n|0)==7){n=0;p=7;k=0;break}else k=d+7|0;c[w>>2]=n+-7;c[w+4>>2]=k;c[h>>2]=Wc(15008,w)|0;k=1;x=74;break a}else{n=0;p=5;k=0}while(0);b:while(1){u=l+(k+-1)|0;c:while(1){d:while(1){o=a[d+p>>0]|0;if(o<<24>>24==35|o<<24>>24==0)break b;q=p+1|0;if((o<<24>>24==37?(v=a[d+q>>0]|0,(a[10368+(v&255)>>0]&8)!=0):0)?(t=a[d+(p+2)>>0]|0,(a[10368+(t&255)>>0]&8)!=0):0){o=v;q=t;break}if(!n){p=q;x=38;break c}else if((n|0)==2){p=q;x=39;break c}else if((n|0)!=1){p=q;break c}if(!(o<<24>>24==38|o<<24>>24==61)){n=1;p=q;break c}if(!(a[u>>0]|0))p=q;else{p=q;x=36;break c}while(1){s=a[d+p>>0]|0;if(s<<24>>24==35|s<<24>>24==0)continue d;if((a[d+(p+-1)>>0]|0)==38)continue d;else p=p+1|0}}o=o<<24>>24;p=p+3|0;s=q<<24>>24;o=(0-(s>>>6&1)&9)+s&15|(0-(o>>>6&1)&9)+o<<4&240;if(o){x=30;break}q=(n|0)==0;while(1){o=a[d+p>>0]|0;if(o<<24>>24==35|o<<24>>24==0)continue c;if(q&o<<24>>24==63){n=0;continue c}if((n|0)==1){if(o<<24>>24==38|o<<24>>24==61){n=1;continue c}}else if((n|0)==2?o<<24>>24==38:0){n=2;continue c}p=p+1|0}}if((x|0)==30){x=0;o=o&255}else if((x|0)==36){x=0;if(o<<24>>24==38){a[l+k>>0]=0;o=0;n=1;k=k+1|0}else{o=0;n=2}}else if((x|0)==38){x=0;if(o<<24>>24==63)x=40;else n=0}else if((x|0)==39){x=0;if(o<<24>>24==38)x=40;else n=2}if((x|0)==40){x=0;o=0;n=1}a[l+k>>0]=o;k=k+1|0}if((n|0)==1){a[l+k>>0]=0;k=k+1|0}a[l+k>>0]=0;a[l+(k+1)>>0]=0;k=l;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;k=(k-l&1073741823)+1|0;n=a[l+k>>0]|0;if(n<<24>>24){v=l+k|0;e:while(1){o=v;while(1){k=o+1|0;if(!(n<<24>>24)){n=o;break}n=a[k>>0]|0;o=k}u=n-v&1073741823;n=v+(u+1)|0;o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;t=o-n&1073741823;if((u|0)==5)if(!(Vv(15048,v,5)|0)){d=15056;r=393216;s=-393217;k=15048;x=58}else k=b;else if((u|0)==4)if(!(Vv(15096,v,4)|0)){d=15104;r=m&135;s=-136;k=15176;x=58}else k=b;else if((u|0)==3){k=(Vv(15040,v,3)|0)==0;k=k?n:b}else k=b;if((x|0)==58){x=0;p=c[d>>2]|0;if(!p){x=65;break}else o=0;while(1){q=p;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;if((t|0)==(q-p&1073741823|0)?(Vv(n,p,t)|0)==0:0){p=o;break}o=o+1|0;p=c[d+(o<<3)>>2]|0;if(!p){x=65;break e}}p=c[d+(p<<3)+4>>2]|0;if(!p){x=65;break}if((p&-129|0)>(r|0)){x=67;break}m=p|s&m;k=b}v=v+(u+2+t)|0;n=a[v>>0]|0;if(!(n<<24>>24)){x=72;break a}else b=k}if((x|0)==65){c[w>>2]=k;c[w+4>>2]=n;c[h>>2]=Wc(15184,w)|0;k=1;x=74;break}else if((x|0)==67){c[w>>2]=k;c[w+4>>2]=n;c[h>>2]=Wc(15208,w)|0;k=3;x=74;break}}else{k=b;x=72}}else k=7}else{m=o;x=70}}else{m=0;x=70}while(0);if((x|0)==70){l=Pc(m+2|0)|0;if(!l)k=7;else{gw(l|0,d|0,m|0)|0;a[l+m>>0]=0;a[l+(m+1)>>0]=0;m=p&-65;k=b;x=72}}if((x|0)==72){s=Gc(k)|0;c[f>>2]=s;if(!s){c[w>>2]=k;c[h>>2]=Wc(15232,w)|0;k=1;x=74}else{k=0;x=75}}if((x|0)==74){Sc(l);l=0;x=75}if((x|0)==75){c[e>>2]=m;c[g>>2]=l}i=y;return k|0}function Tn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;do if(!d){d=mg(84,0)|0;if(!d)e=8;else{b=d+0|0;g=b+84|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(g|0));e=9}}else{f=c[d+4>>2]|0;c[f+4>>2]=c[d>>2];e=f+48|0;d=c[e>>2]|0;if(!d){d=mg(84,0)|0;if(!d){c[e>>2]=0;c[f+52>>2]=22;e=8;break}else{b=d+0|0;g=b+84|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(g|0));c[e>>2]=d;c[f+52>>2]=22;e=9;break}}else e=9}while(0);if((e|0)==8){a[b+65>>0]=1;d=0}else if((e|0)==9)if(!(a[d+76>>0]|0)){e=d+77|0;b=d+8|0;g=b+64|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(g|0));a[e>>0]=1}return d|0}function Un(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();if(e){k=b+428|0;h=Zm(k,e,m)|0;if(!h)g=0;else g=c[h+8>>2]|0;if((g|0)==0&(f|0)!=0){h=e;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-e&1073741823;f=h+61|0;g=ih(b,f,0)|0;if(g){bw(g|0,0,f|0)|0;f=g+60|0;c[g>>2]=f;a[g+4>>0]=1;c[g+20>>2]=f;a[g+24>>0]=2;c[g+40>>2]=f;a[g+44>>0]=3;gw(f|0,e|0,h|0)|0;a[g+(h+60)>>0]=0;h=Ek(k,c[g>>2]|0,g)|0;if(!h)l=10;else{a[b+65>>0]=1;ig(b,h);g=0}}else g=0}else l=10}else{g=c[b+8>>2]|0;l=10}if((l|0)==10)if(!g)g=0;else g=g+(((d&255)+-1|0)*20|0)|0;i=m;return g|0}function Vn(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))ba();y=A;m=A+48|0;q=A+24|0;v=A+8|0;n=(g|0)==1;t=n?13184:13208;c[m>>2]=t;c[m+4>>2]=13224;c[m+8>>2]=n?13064:12960;c[m+12>>2]=0;c[v>>2]=f;c[v+8>>2]=g;u=v+12|0;c[u>>2]=0;c[v+4>>2]=h;Xm(v,3,m,0)|0;m=c[u>>2]|0;a:do if(!m){w=f+16|0;m=Wh(f,t,c[(c[w>>2]|0)+(g<<4)>>2]|0)|0;if(m){s=m+44|0;a[s>>0]=d[s>>0]|1}l=c[w>>2]|0;x=l+(g<<4)+4|0;m=c[x>>2]|0;if(!m){if(!n){k=0;break}k=(c[l+28>>2]|0)+78|0;b[k>>1]=e[k>>1]|1;k=0;break}c[(c[m+4>>2]|0)+4>>2]=c[m>>2];do if(!(a[m+8>>0]|0)){m=ug(m,0)|0;if((m|0)==516)k=16344;else if(!m){m=c[x>>2]|0;s=1;break}else z=10;if((z|0)==10){k=m&255;if(k>>>0>26|(k|0)==2)k=16328;else k=c[15488+(k<<2)>>2]|0}c[y>>2]=k;$g(h,f,10344,y);k=m;z=38;break a}else s=0;while(0);sm(m,1,q);r=q+4|0;sm(c[x>>2]|0,2,r);o=q+8|0;sm(c[x>>2]|0,3,o);sm(c[x>>2]|0,4,q+12|0);n=q+16|0;sm(c[x>>2]|0,5,n);p=l+(g<<4)+12|0;m=c[p>>2]|0;c[m>>2]=c[q>>2];l=c[n>>2]|0;do if(l){if(!g){n=l&3;n=(n|0)==0?1:n&255;a[f+62>>0]=n;z=19;break}n=a[f+62>>0]|0;if((l|0)==(n&255|0))z=19;else{$g(h,f,13232,y);k=1}}else{n=(c[(c[w>>2]|0)+(g<<4)+12>>2]|0)+78|0;b[n>>1]=e[n>>1]|4;n=a[f+62>>0]|0;z=19}while(0);do if((z|0)==19){a[m+77>>0]=n;n=m+80|0;if(!(c[n>>2]|0)){m=c[o>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0;m=(m|0)==0?2e3:m;c[n>>2]=m;lq(c[x>>2]|0,m);m=c[p>>2]|0}l=c[r>>2]|0;n=l&255;m=m+76|0;if(n<<24>>24){a[m>>0]=n;if((n&255)>4){$g(h,f,13304,y);k=1;break}}else a[m>>0]=1;if((g|0)==0&(l|0)>3){r=f+24|0;c[r>>2]=c[r>>2]&-32769}c[y>>2]=c[(c[w>>2]|0)+(g<<4)>>2];c[y+4>>2]=t;m=qh(f,13328,y)|0;t=f+284|0;r=c[t>>2]|0;c[t>>2]=0;l=Me(f,m,22,v,0)|0;c[t>>2]=r;l=(l|0)==0?c[u>>2]|0:l;ig(f,m);m=(l|0)==0;if(m)Ym(f,g)|0;if(!(a[f+65>>0]|0)){if(!m){k=l;z=34}}else{Ag(f);k=7;z=34}if((z|0)==34?(c[f+24>>2]&65536|0)==0:0)break;k=(c[(c[w>>2]|0)+(g<<4)+12>>2]|0)+78|0;b[k>>1]=e[k>>1]|1;k=0}while(0);if(!s)z=38;else{qn(c[x>>2]|0)|0;z=38}}else{k=m;z=38}while(0);if((z|0)==38)if((k|0)==7|(k|0)==3082)a[f+65>>0]=1;i=A;return k|0}function Wn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+80|0;if((i|0)>=(j|0))ba();n=o;c[12066]=c[2708];if(!(c[12067]|0))c[12067]=Hb(48336)|0;if(!(c[12068]|0))c[12068]=Hb(48352)|0;g=n+12|0;h=0;f=0;do{if((((f|0)!=0?(nc[c[47552+52>>2]&127](f,n)|0)==0:0)?(c[g>>2]&61440|0)==16384:0)?(nc[c[47552+28>>2]&127](f,7)|0)==0:0)break;f=c[48264+(h<<2)>>2]|0;h=h+1|0}while(h>>>0<7);m=(f|0)==0?28928:f;if(((cw(m|0)|0)+25|0)>>>0<b>>>0){b=b+-18|0;do{c[n>>2]=m;Yc(b,e,48248,n)|0;g=cw(e|0)|0;f=e+g|0;_c(15,f);l=e+(g+15)|0;k=0;h=g;while(1){a[f>>0]=a[48184+(((d[f>>0]|0)%62|0)&255)>>0]|0;k=k+1|0;h=h+1|0;if((k|0)==15)break;else f=e+h|0}a[l>>0]=0;a[e+(g+16)>>0]=0}while((nc[c[47552+28>>2]&127](e,0)|0)==0);f=0}else f=1;i=o;return f|0}function Xn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))ba();k=m;h=(d|0)!=0;f=h?d:420;g=b|524288;while(1){e=Yb[c[47552+4>>2]&63](a,g,f)|0;if((e|0)<0)if((c[(Db()|0)>>2]|0)==4)continue;else break;if((e|0)>2){l=6;break}hc[c[47552+16>>2]&127](e)|0;c[k>>2]=a;c[k+4>>2]=e;Zc(28,48120,k);if((Yb[c[47552+4>>2]&63](48168,b,d)|0)<0){e=-1;break}}if((l|0)==6)if(((h?(nc[c[47552+64>>2]&127](e,k)|0)==0:0)?(c[k+36>>2]|0)==0:0)?(c[k+12>>2]&511|0)!=(d|0):0)nc[c[47552+172>>2]&127](e,d)|0;i=m;return e|0}function Yn(a,b,d){a=a|0;b=b|0;d=d|0;if(hc[c[47552+16>>2]&127](b)|0){if(!a)b=0;else b=c[a+32>>2]|0;_n(4106,47856,b,d)|0}return}function Zn(a){a=a|0;var d=0,f=0,g=0,h=0;h=i;i=i+80|0;if((i|0)>=(j|0))ba();g=h;d=h+4|0;f=a+18|0;do if(!(b[f>>1]&256)){if(nc[c[47552+64>>2]&127](c[a+12>>2]|0,d)|0){c[g>>2]=c[a+32>>2];Zc(28,48592,g);b[f>>1]=e[f>>1]|0|256;break}d=c[d+16>>2]|0;if(!d){if(!(b[f>>1]&32)){c[g>>2]=c[a+32>>2];Zc(28,48616,g);b[f>>1]=e[f>>1]|0|256;break}}else if(d>>>0>1){c[g>>2]=c[a+32>>2];Zc(28,48648,g);b[f>>1]=e[f>>1]|0|256;break}if(to(a)|0){c[g>>2]=c[a+32>>2];Zc(28,48680,g);b[f>>1]=e[f>>1]|0|256}}while(0);i=h;return}function _n(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+32|0;if((i|0)>=(j|0))ba();g=f;k=c[(Db()|0)>>2]|0;h=Nb(k|0)|0;c[g>>2]=e;c[g+4>>2]=k;c[g+8>>2]=b;c[g+12>>2]=(d|0)==0?10360:d;c[g+16>>2]=h;Zc(a,47864,g);i=f;return a|0}function $n(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=a+40|0;d=c[i>>2]|0;h=d<<1;h=h>>>0<256?256:h;if((d|0)!=0?(b=c[3164]|0,(b|0)!=0):0)jc[b&3]();b=h<<2;g=mg(b,0)|0;d=(g|0)==0;if(!d)bw(g|0,0,b|0)|0;if((c[i>>2]|0)!=0?(e=c[3166]|0,(e|0)!=0):0)jc[e&3]();if(!d){e=c[i>>2]|0;f=a+44|0;b=c[f>>2]|0;if(e){a=0;do{d=c[b+(a<<2)>>2]|0;if(d){do{k=d+16|0;j=d;d=c[k>>2]|0;b=g+((((c[j+8>>2]|0)>>>0)%(h>>>0)|0)<<2)|0;c[k>>2]=c[b>>2];c[b>>2]=j}while((d|0)!=0);b=c[f>>2]|0}a=a+1|0}while(a>>>0<e>>>0)}Sc(b);c[f>>2]=g;c[i>>2]=h}return}function ao(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;g=a+24|0;h=a+16|0;d=a+4|0;a:do if((c[h>>2]|0)>>>0>(c[d>>2]|0)>>>0)do{e=c[g>>2]|0;if(!e)break a;bo(e);f=c[e+20>>2]|0;b=(c[f+44>>2]|0)+((((c[e+8>>2]|0)>>>0)%((c[f+40>>2]|0)>>>0)|0)<<2)|0;while(1){i=c[b>>2]|0;a=i+16|0;if((i|0)==(e|0))break;else b=a}c[b>>2]=c[a>>2];a=f+36|0;c[a>>2]=(c[a>>2]|0)+-1;eo(e)}while((c[h>>2]|0)>>>0>(c[d>>2]|0)>>>0);while(0);return}function bo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=c[b+20>>2]|0;f=c[e>>2]|0;g=b+28|0;h=c[g>>2]|0;i=b+24|0;d=c[i>>2]|0;if(!h)c[f+20>>2]=d;else{c[h+24>>2]=d;d=c[i>>2]|0}if(!d)c[f+24>>2]=h;else c[d+28>>2]=h;c[i>>2]=0;c[g>>2]=0;a[b+12>>0]=1;d=e+32|0;c[d>>2]=(c[d>>2]|0)+-1;return}function co(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;k=c[b>>2]|0;q=b+36|0;i=c[q>>2]|0;g=c[b+32>>2]|0;h=i-g|0;o=(e|0)==1;if(o)if(h>>>0<(c[k+12>>2]|0)>>>0?h>>>0<(c[b+24>>2]|0)>>>0:0){if((c[3155]|0)!=0?((c[b+8>>2]|0)+(c[b+4>>2]|0)|0)<=(c[3154]|0):0)e=12648|0;else e=9060|0;if(!((c[e>>2]|0)!=0&g>>>0<h>>>0))n=8;else f=0}else f=0;else n=8;do if((n|0)==8){m=b+40|0;if(i>>>0>=(c[m>>2]|0)>>>0)$n(b);j=b+12|0;do if((c[j>>2]|0)!=0?(f=c[k+24>>2]|0,(f|0)!=0):0){if(((c[q>>2]|0)+1|0)>>>0<(c[b+20>>2]|0)>>>0?(c[k+16>>2]|0)>>>0<(c[k+4>>2]|0)>>>0:0){if((c[3155]|0)!=0?((c[b+8>>2]|0)+(c[b+4>>2]|0)|0)<=(c[3154]|0):0)e=12648|0;else e=9060|0;if(!(c[e>>2]|0)){n=23;break}}e=f+20|0;g=c[e>>2]|0;h=(c[g+44>>2]|0)+((((c[f+8>>2]|0)>>>0)%((c[g+40>>2]|0)>>>0)|0)<<2)|0;while(1){r=c[h>>2]|0;i=r+16|0;if((r|0)==(f|0))break;else h=i}c[h>>2]=c[i>>2];i=g+36|0;c[i>>2]=(c[i>>2]|0)+-1;bo(f);e=c[e>>2]|0;if(((c[e+8>>2]|0)+(c[e+4>>2]|0)|0)==((c[b+8>>2]|0)+(c[b+4>>2]|0)|0)){l=k+16|0;c[l>>2]=(c[j>>2]|0)-(c[e+12>>2]|0)+(c[l>>2]|0);break}else{eo(f);n=23;break}}else n=23;while(0);if((n|0)==23){if(o?(l=c[3164]|0,(l|0)!=0):0)jc[l&3]();e=b+4|0;g=Co((c[e>>2]|0)+32+(c[b+8>>2]|0)|0)|0;e=c[e>>2]|0;f=g+e|0;if(g){c[f>>2]=g;c[g+(e+4)>>2]=g+(e+32);if(c[j>>2]|0){n=(c[b>>2]|0)+16|0;c[n>>2]=(c[n>>2]|0)+1}}else f=0;if(o?(p=c[3166]|0,(p|0)!=0):0)jc[p&3]();if(!f){f=0;break}}g=(d>>>0)%((c[m>>2]|0)>>>0)|0;c[q>>2]=(c[q>>2]|0)+1;c[f+8>>2]=d;n=b+44|0;c[f+16>>2]=c[(c[n>>2]|0)+(g<<2)>>2];c[f+20>>2]=b;c[f+28>>2]=0;c[f+24>>2]=0;a[f+12>>0]=1;c[c[f+4>>2]>>2]=0;c[(c[n>>2]|0)+(g<<2)>>2]=f;g=b+28|0;if((c[g>>2]|0)>>>0<d>>>0)c[g>>2]=d}while(0);return f|0}function eo(a){a=a|0;var b=0;if((a|0)!=0?(b=c[a+20>>2]|0,Xk(c[a>>2]|0),(c[b+12>>2]|0)!=0):0){b=(c[b>>2]|0)+16|0;c[b>>2]=(c[b>>2]|0)+-1}return}function fo(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+40|0;if(c[h>>2]|0){i=b+44|0;f=b+36|0;g=0;do{e=(c[i>>2]|0)+(g<<2)|0;b=c[e>>2]|0;a:do if(b)do{while(1){if((c[b+8>>2]|0)>>>0<d>>>0)break;c[f>>2]=(c[f>>2]|0)+-1;c[e>>2]=c[b+16>>2];if(!(a[b+12>>0]|0))bo(b);eo(b);b=c[e>>2]|0;if(!b)break a}e=b+16|0;b=c[e>>2]|0}while((b|0)!=0);while(0);g=g+1|0}while(g>>>0<(c[h>>2]|0)>>>0)}return}function go(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=c[b>>2]|0;g=c[(c[f+32>>2]|0)+88>>2]|0;h=((g|0)<0)<<31>>31;if(!((h|0)<(e|0)|(h|0)==(e|0)&g>>>0<d>>>0)){d=mg(d,e)|0;if(!d){Nd(b);d=0}}else{c[b+20>>2]=18;a[b+25>>0]=1;Tg(f,10096,-1,1,0)|0;d=0}return d|0}function ho(b){b=b|0;var c=0,d=0,e=0,f=0;do if(b){c=a[b>>0]|0;d=c<<24>>24;if((d|0)==96|(d|0)==34|(d|0)==39)f=c;else if((d|0)==91)f=93;else break;d=1;e=0;while(1){c=a[b+d>>0]|0;if(c<<24>>24==f<<24>>24){d=d+1|0;c=b+e|0;if((a[b+d>>0]|0)!=f<<24>>24)break;a[c>>0]=f}else a[b+e>>0]=c;d=d+1|0;e=e+1|0}a[c>>0]=0}while(0);return}function io(b,f,g,k){b=b|0;f=f|0;g=g|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0.0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0;S=i;i=i+176|0;if((i|0)>=(j|0))ba();P=S+64|0;q=S+132|0;p=S+128|0;o=S+124|0;r=S+56|0;L=S+48|0;Q=S+136|0;O=S;n=k+0|0;m=n+48|0;do{c[n>>2]=0;n=n+4|0}while((n|0)<(m|0));a:do if(f){l=c[g>>2]|0;b:do if(((d[10064+(e[l+8>>1]&31)>>0]|0)+-1|0)>>>0>=2){n=Og(l,1)|0;if(!n){l=1;break a}m=(a[n>>0]|0)==45;l=m?n+1|0:n;c[P>>2]=4;c[P+4>>2]=0;c[P+8>>2]=9999;c[P+12>>2]=45;c[P+16>>2]=q;c[P+20>>2]=2;c[P+24>>2]=1;c[P+28>>2]=12;c[P+32>>2]=45;c[P+36>>2]=p;c[P+40>>2]=2;c[P+44>>2]=1;c[P+48>>2]=31;c[P+52>>2]=0;c[P+56>>2]=o;do if((nq(l,P)|0)==3){l=l+10|0;while(1){I=a[l>>0]|0;if(I<<24>>24==84?1:(a[10368+(I&255)>>0]&1)!=0)l=l+1|0;else break}if(oq(l,k)|0){if(a[l>>0]|0)break;a[k+41>>0]=0}a[k+42>>0]=0;a[k+40>>0]=1;I=c[q>>2]|0;c[k+8>>2]=m?0-I|0:I;c[k+12>>2]=c[p>>2];c[k+16>>2]=c[o>>2];if(!(a[k+43>>0]|0))break b;jo(k);break b}while(0);if(oq(n,k)|0){if(!($c(n,20080)|0))if(!(mq(b,k)|0))break;else{l=1;break a}else l=n;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;if(!(Pl(n,r,l-n&1073741823,1)|0)){l=1;break a}s=+h[r>>3]*864.0e5+.5;H=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;I=k;c[I>>2]=~~s>>>0;c[I+4>>2]=H;a[k+42>>0]=1}}else{s=+Qg(l)*864.0e5+.5;H=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;I=k;c[I>>2]=~~s>>>0;c[I+4>>2]=H;a[k+42>>0]=1}while(0);if((f|0)>1){l=k+40|0;v=k+41|0;w=k+43|0;x=k+42|0;y=Q+8|0;z=y;A=Q+9|0;B=k+24|0;D=k+20|0;E=k+32|0;F=k+16|0;G=k+12|0;H=Q+1|0;I=k+8|0;J=1;while(1){p=Og(c[g+(J<<2)>>2]|0,1)|0;if(!p){l=1;break a}c[P>>2]=1;r=0;do{q=a[p+r>>0]|0;if(!(q<<24>>24))break;a[Q+r>>0]=a[9328+(q&255)>>0]|0;r=r+1|0}while((r|0)<29);a[Q+r>>0]=0;c:do switch(a[Q>>0]|0){case 108:{if(!(Wv(Q,19936)|0)){jo(k);m=pq(k,b,P)|0;R=k;m=fw(c[R>>2]|0,c[R+4>>2]|0,m|0,C|0)|0;R=k;c[R>>2]=m;c[R+4>>2]=C;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;R=82}else R=82;break}case 117:{if((Wv(Q,19952)|0)==0?(a[x>>0]|0)!=0:0){m=k;m=fw(c[m>>2]|0,c[m+4>>2]|0,43200,0)|0;m=mw(m|0,C|0,86400,0)|0;m=fw(m|0,C|0,1045635584,49096)|0;r=k;c[r>>2]=m;c[r+4>>2]=C;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;c[P>>2]=0;r=0;break c}if(!(Wv(Q,19968)|0)){jo(k);q=pq(k,b,P)|0;p=C;r=c[P>>2]|0;if(!r){m=k;m=$v(c[m>>2]|0,c[m+4>>2]|0,q|0,p|0)|0;R=k;c[R>>2]=m;c[R+4>>2]=C;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;R=pq(k,b,P)|0;R=$v(q|0,p|0,R|0,C|0)|0;m=k;m=fw(R|0,C|0,c[m>>2]|0,c[m+4>>2]|0)|0;R=k;c[R>>2]=m;c[R+4>>2]=C;R=82}}else R=82;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{p=1;while(1){r=Q+p|0;q=a[r>>0]|0;if(q<<24>>24==58|q<<24>>24==0){q=r;break}if(!(a[10368+(q&255)>>0]&1))p=p+1|0;else{q=r;break}}if(!(Pl(Q,L,p,1)|0)){c[P>>2]=1;r=1;break c}r=a[q>>0]|0;if(r<<24>>24==58){r=((d[Q>>0]|0)+-48|0)>>>0<10?Q:H;n=O+0|0;m=n+48|0;do{c[n>>2]=0;n=n+4|0}while((n|0)<(m|0));if(oq(r,O)|0){R=82;break c}jo(O);r=O;r=fw(c[r>>2]|0,c[r+4>>2]|0,-432e5,-1)|0;r=nw(r|0,C|0,864e5,0)|0;q=C;m=O;c[m>>2]=r;c[m+4>>2]=q;if((a[Q>>0]|0)==45){r=$v(0,0,r|0,q|0)|0;q=C;m=O;c[m>>2]=r;c[m+4>>2]=q}jo(k);a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;m=k;m=fw(c[m>>2]|0,c[m+4>>2]|0,r|0,q|0)|0;r=k;c[r>>2]=m;c[r+4>>2]=C;c[P>>2]=0;r=0;break c}if(a[10368+(r&255)>>0]&1){q=Q+(p+1)|0;while(1){r=a[q>>0]|0;if(!(a[10368+(r&255)>>0]&1))break;else q=q+1|0}}if(!(r<<24>>24))r=q;else{r=q;do r=r+1|0;while((a[r>>0]|0)!=0)}r=r-q&1073741823;if((r+-3|0)>>>0>7)R=82;else{p=r+-1|0;o=q+p|0;if((a[o>>0]|0)==115){a[o>>0]=0;r=p}jo(k);c[P>>2]=0;t=+h[L>>3];u=t<0.0?-.5:.5;do if((r|0)==3)if(!(Wv(q,20024)|0)){s=t*864.0e5+u;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C}else R=80;else if((r|0)==4){if(!(Wv(q,20032)|0)){s=t*36.0e5+u;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C;break}if(!(Wv(q,20016)|0)){m=~~t;ko(k);lo(k);c[I>>2]=(c[I>>2]|0)+m;a[x>>0]=0;jo(k);s=+(m|0);if(s!=t){s=u+(t-s)*365.0*864.0e5;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C}}else R=80}else if((r|0)==6){if(!(Wv(q,20040)|0)){s=t*6.0e4+u;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C;break}if(!(Wv(q,20048)|0)){s=t*1.0e3+u;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C}else R=80}else if((r|0)==5?(Wv(q,20008)|0)==0:0){ko(k);lo(k);m=~~t;n=(c[G>>2]|0)+m|0;o=(((n|0)>0?-1:-12)+n|0)/12|0;c[I>>2]=(c[I>>2]|0)+o;c[G>>2]=(_(o,-12)|0)+n;a[x>>0]=0;jo(k);s=+(m|0);if(s!=t){s=u+(t-s)*30.0*864.0e5;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C}}else R=80;while(0);if((R|0)==80)c[P>>2]=1;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;R=82}break}case 119:{if(!(Xv(Q,19976,8)|0)){r=y;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;if((Pl(y,L,r-z&1073741823,1)|0)!=0?(s=+h[L>>3],K=~~s,+(K|0)==s&(K|0)>-1&s<7.0):0){ko(k);lo(k);a[w>>0]=0;a[x>>0]=0;jo(k);m=k;r=c[m>>2]|0;m=c[m+4>>2]|0;p=fw(r|0,m|0,1296e5,0)|0;p=mw(p|0,C|0,864e5,0)|0;p=nw(p|0,C|0,7,0)|0;n=C;T=((K|0)<0)<<31>>31;o=(n|0)>(T|0)|(n|0)==(T|0)&p>>>0>K>>>0;q=fw(p|0,n|0,-7,-1)|0;n=$v(K|0,T|0,(o?q:p)|0,(o?C:n)|0)|0;n=ow(n|0,C|0,864e5,0)|0;m=fw(n|0,C|0,r|0,m|0)|0;r=k;c[r>>2]=m;c[r+4>>2]=C;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;c[P>>2]=0;r=0}else R=82}else R=82;break}case 115:{if(!(Xv(Q,19992,9)|0)){ko(k);a[v>>0]=1;c[B>>2]=0;c[D>>2]=0;h[E>>3]=0.0;a[w>>0]=0;a[x>>0]=0;if(!(Wv(A,20008)|0)){c[F>>2]=1;c[P>>2]=0;r=0;break c}if(!(Wv(A,20016)|0)){ko(k);c[G>>2]=1;c[F>>2]=1;c[P>>2]=0;r=0;break c}if(!(Wv(A,20024)|0)){c[P>>2]=0;r=0}else R=82}else R=82;break}default:R=82}while(0);if((R|0)==82){R=0;r=c[P>>2]|0}J=J+1|0;if(r){l=1;break a}if((J|0)>=(f|0)){l=0;break a}}}else l=0}else l=mq(b,k)|0;while(0);i=S;return l|0}function jo(b){b=b|0;var d=0,e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,n=0.0;i=b+42|0;if(!(a[i>>0]|0)){j=b+40|0;if(a[j>>0]|0){e=c[b+8>>2]|0;d=c[b+12>>2]|0;f=c[b+16>>2]|0;if((d|0)<3)g=4}else{f=1;d=1;e=2e3;g=4}if((g|0)==4){d=d+12|0;e=e+-1|0}n=(+(f+2+((e|0)/-100|0)+((e|0)/400|0)+(((e*36525|0)+172251900|0)/100|0)+(((d*306001|0)+306001|0)/1e4|0)|0)+-1524.5)*864.0e5;e=~~n>>>0;f=+N(n)>=1.0?(n>0.0?~~+$(+M(n/4294967296.0),4294967295.0)>>>0:~~+Z((n-+(~~n>>>0))/4294967296.0)>>>0):0;d=b;c[d>>2]=e;c[d+4>>2]=f;a[i>>0]=1;d=b+41|0;if((a[d>>0]|0)!=0?(k=_(c[b+20>>2]|0,36e5)|0,k=((c[b+24>>2]|0)*6e4|0)+k|0,n=+h[b+32>>3]*1.0e3,l=fw(~~n>>>0|0,(+N(n)>=1.0?(n>0.0?~~+$(+M(n/4294967296.0),4294967295.0)>>>0:~~+Z((n-+(~~n>>>0))/4294967296.0)>>>0):0)|0,e|0,f|0)|0,k=fw(l|0,C|0,k|0,((k|0)<0)<<31>>31|0)|0,l=C,m=b,c[m>>2]=k,c[m+4>>2]=l,m=b+43|0,(a[m>>0]|0)!=0):0){f=(c[b+28>>2]|0)*6e4|0;f=$v(k|0,l|0,f|0,((f|0)<0)<<31>>31|0)|0;e=b;c[e>>2]=f;c[e+4>>2]=C;a[j>>0]=0;a[d>>0]=0;a[m>>0]=0}}return}function ko(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;g=b+40|0;if(!(a[g>>0]|0)){if(!(a[b+42>>0]|0)){d=2e3;e=1;f=1}else{d=b;d=fw(c[d>>2]|0,c[d+4>>2]|0,432e5,0)|0;d=mw(d|0,C|0,864e5,0)|0;h=~~((+(d|0)+-1867216.25)/36524.25);h=d+1525+h+((h|0)/-4|0)|0;d=~~((+(h|0)+-122.1)/365.25);h=h-((d*36525|0)/100|0)|0;f=~~(+(h|0)/30.6001);e=((f|0)<14?-1:-13)+f|0;d=((e|0)>2?-4716:-4715)+d|0;f=h-~~(+(f|0)*30.6001)|0}c[b+16>>2]=f;c[b+12>>2]=e;c[b+8>>2]=d;a[g>>0]=1}return}function lo(b){b=b|0;var d=0,e=0,f=0,g=0,i=0.0;d=b+41|0;if(!(a[d>>0]|0)){jo(b);g=b;g=fw(c[g>>2]|0,c[g+4>>2]|0,432e5,0)|0;g=nw(g|0,C|0,864e5,0)|0;i=+(g|0)/1.0e3;g=~~i;f=(g|0)/3600|0;c[b+20>>2]=f;f=(_(f,-3600)|0)+g|0;e=(f|0)/60|0;c[b+24>>2]=e;h[b+32>>3]=i-+(g|0)+ +(f+(_(e,-60)|0)|0);a[d>>0]=1}return}function mo(a){a=a|0;ig(c[a+52>>2]|0,a);return}function no(b,d,f,g){b=b|0;d=d|0;f=f|0;g=g|0;var h=0,i=0;i=b+65|0;do if(!(a[i>>0]|0)){if(!d){h=ih(b,f,g)|0;break}if((c[b+276>>2]|0)>>>0<=d>>>0?(c[b+280>>2]|0)>>>0>d>>>0:0){i=b+248|0;if(!(0<g>>>0|(0==(g|0)?(e[i>>1]|0)>>>0<f>>>0:0))){h=d;break}h=ih(b,f,g)|0;if(!h){h=0;break}gw(h|0,d|0,e[i>>1]|0)|0;ig(b,d);break}if((Hc()|0)==0?(h=ng(d,f,g)|0,(h|0)!=0):0)break;a[i>>0]=1;h=0}else h=0;while(0);return h|0}function oo(a,d){a=a|0;d=d|0;var e=0,f=0;if(!a)a=0;else{f=c[a+4>>2]|0;c[f+4>>2]=c[a>>2];f=f+22|0;a=b[f>>1]|0;if((d|0)>-1){e=a&65535;a=e&65531;b[f>>1]=a;if(d){a=(e|4)&65535;b[f>>1]=a}}a=(a&65535)>>>2&1}return a|0}function po(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[b+4>>2]|0;c[h+4>>2]=c[b>>2];h=c[h>>2]|0;f=e&3;if((f|0)!=1){g=a[h+12>>0]|0;b=h+7|0;a[b>>0]=g<<24>>24!=0&1;if((f|0)==3)g=g<<24>>24==0&1;else g=0}else{b=h+7|0;a[b>>0]=1;g=0}a[h+8>>0]=g;do if(!(a[b>>0]|0)){if(e&4){a[h+11>>0]=3;a[h+9>>0]=3;b=3;break}a[h+11>>0]=2;b=h+9|0;if(!(e&8)){a[b>>0]=2;b=2;break}else{a[b>>0]=3;b=2;break}}else{a[h+11>>0]=0;a[h+9>>0]=0;b=0}while(0);if(g<<24>>24)b=(b&255|32)&255;a[h+10>>0]=b;b=h+20|0;f=d[b>>0]|0;a[b>>0]=(e&16|0)==0?f|1:f&254;return}function qo(a){a=a|0;var b=0,d=0;d=a+12|0;b=c[d>>2]|0;if((b|0)>-1){Yn(a,b,27311);c[d>>2]=-1}Sc(c[a+28>>2]|0);b=a+0|0;d=b+44|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));return}function ro(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;i=f&131071;while(1){h=_a(a|0,b|0,0)|0;if(!((h|0)==(b|0)&(((h|0)<0)<<31>>31|0)==(d|0))){j=3;break}h=Yb[c[47552+136>>2]&63](a,e,i)|0;if((h|0)>=0)break;f=c[(Db()|0)>>2]|0;if((f|0)!=4){j=9;break}}if((j|0)==3)if(!g)h=-1;else{if((h|0)==-1)h=c[(Db()|0)>>2]|0;else h=0;c[g>>2]=h;h=-1}else if((j|0)==9)if(g)c[g>>2]=f;return h|0}function so(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=c[f>>2]|0;do if((g|0)>=0){d=d&255;if(!g){f=a+18|0;b[f>>1]=(e[f>>1]|0)&(d^65535);break}else{f=a+18|0;b[f>>1]=e[f>>1]|0|d;break}}else c[f>>2]=((e[a+18>>1]|0)&(d&255)|0)!=0&1;while(0);return}function to(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+80|0;if((i|0)>=(j|0))ba();d=e;b=a+8|0;if(c[b>>2]|0)if(!(nc[c[47552+52>>2]&127](c[a+32>>2]|0,d)|0))b=(c[d+72>>2]|0)!=(c[(c[b>>2]|0)+4>>2]|0);else b=1;else b=0;i=e;return b&1|0}function uo(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();l=m;k=m+8|0;h=(c[(c[a+8>>2]|0)+20>>2]|0)+12|0;if((c[h>>2]|0)>-1){c[k+0>>2]=0;c[k+4>>2]=0;c[k+8>>2]=0;c[k+12>>2]=0;b[k>>1]=d;b[k+2>>1]=0;c[k+4>>2]=f;c[k+8>>2]=g;d=a+18|0;g=((b[d>>1]&512)>>>9)+13|0;f=c[11910]|0;h=c[h>>2]|0;c[l>>2]=k;h=(Yb[f&63](h,g,l)|0)!=-1;b[d>>1]=(e[d>>1]|0)&65023;h=h?0:5}else h=0;i=m;return h|0}function vo(a){a=a|0;var d=0,f=0,g=0,h=0,i=0,j=0,k=0;k=c[(c[a+8>>2]|0)+20>>2]|0;if((k|0)!=0?(c[k+28>>2]|0)==0:0){d=dc[c[47552+292>>2]&7]()|0;if((d|0)<32768)g=1;else g=(d|0)/32768|0;h=k+20|0;if(!(b[h>>1]|0)){f=k+12|0;d=k+24|0}else{f=k+12|0;d=k+24|0;i=k+16|0;j=0;do{if((c[f>>2]|0)>-1)nc[c[47552+268>>2]&127](c[(c[d>>2]|0)+(j<<2)>>2]|0,c[i>>2]|0)|0;else Sc(c[(c[d>>2]|0)+(j<<2)>>2]|0);j=j+g|0}while((j|0)<(e[h>>1]|0))}Sc(c[d>>2]|0);d=c[f>>2]|0;if((d|0)>-1){Yn(a,d,29591);c[f>>2]=-1}c[(c[k>>2]|0)+20>>2]=0;Sc(k)}return}function wo(a){a=a|0;var b=0,d=0,e=0;d=(c[a+8>>2]|0)+28|0;b=c[d>>2]|0;if(b)do{e=b;b=c[b+8>>2]|0;Yn(a,c[e>>2]|0,26573);Sc(e)}while((b|0)!=0);c[d>>2]=0;return}function xo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();h=l;g=l+8|0;k=c[d+8>>2]|0;f=b[d+18>>1]|0;if(!(f&1))if((a[k+13>>0]|0)!=0&(f&2)==0)f=4;else f=7;else if(!(f&2))f=4;else f=7;if((f|0)==4){f=k+13|0;if(!(a[f>>0]|0)){b[g+2>>1]=0;c[g+4>>2]=(c[2514]|0)+2;c[g+8>>2]=510;b[g>>1]=1;m=c[11910]|0;e=c[d+12>>2]|0;c[h>>2]=g;e=Yb[m&63](e,13,h)|0;if((e|0)>=0){a[f>>0]=1;f=k+24|0;c[f>>2]=(c[f>>2]|0)+1}}else e=0}else if((f|0)==7){g=c[11910]|0;f=c[d+12>>2]|0;c[h>>2]=e;e=Yb[g&63](f,13,h)|0}i=l;return e|0}function yo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if(b){f=c[b>>2]|0;if(!f){c[b>>2]=1;c[b+4>>2]=d;g=9;break}h=b+4|0;e=c[h>>2]|0;c[b>>2]=f+1;c[h>>2]=d;if(e){c[d>>2]=e;e=e+4|0;c[d+4>>2]=c[e>>2];f=c[e>>2]|0;if(!f)c[a+8>>2]=d;else c[f>>2]=d;c[e>>2]=d}else g=9}else g=9;while(0);if((g|0)==9){e=a+8|0;f=c[e>>2]|0;c[d>>2]=f;if(f)c[f+4>>2]=d;c[d+4>>2]=0;c[e>>2]=d}return}function zo(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){if((c[b>>2]|0)>0){d=0;e=b+8|0;while(1){ig(a,c[e+4>>2]|0);ig(a,c[e+8>>2]|0);ig(a,c[e+12>>2]|0);ig(a,c[e+64>>2]|0);gg(a,c[e+16>>2]|0);Ik(a,c[e+20>>2]|0,1);Ck(a,c[e+44>>2]|0);Dk(a,c[e+48>>2]|0);d=d+1|0;if((d|0)>=(c[b>>2]|0))break;else e=e+72|0}}ig(a,b)}return}function Ao(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Bo(a,d)|0;if((d|0)>0){e=a+12|0;gw((c[a+8>>2]|0)+(c[e>>2]|0)|0,b|0,d|0)|0;c[e>>2]=(c[e>>2]|0)+d}return}function Bo(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;i=b+25|0;do if(!(a[i>>0]|0)){g=a[b+24>>0]|0;if(!(g<<24>>24)){f=b+16|0;d=(c[f>>2]|0)+-1-(c[b+12>>2]|0)|0;a[i>>0]=2;c[f>>2]=0;break}j=b+8|0;h=c[j>>2]|0;h=(h|0)==(c[b+4>>2]|0)?0:h;k=b+12|0;o=c[k>>2]|0;f=((o|0)<0)<<31>>31;r=d+1|0;r=fw(o|0,f|0,r|0,((r|0)<0)<<31>>31|0)|0;p=C;f=fw(r|0,p|0,o|0,f|0)|0;o=C;m=c[b+20>>2]|0;n=((m|0)<0)<<31>>31;q=(o|0)>(n|0)|(o|0)==(n|0)&f>>>0>m>>>0;f=q?r:f;o=q?p:o;if((o|0)>(n|0)|(o|0)==(n|0)&f>>>0>m>>>0){cn(b);a[i>>0]=2;c[b+16>>2]=0;d=0;break}m=b+16|0;c[m>>2]=f;if(g<<24>>24==1)g=no(c[b>>2]|0,h,f,((f|0)<0)<<31>>31)|0;else g=Tc(h,f)|0;if(!g){cn(b);a[i>>0]=1;c[m>>2]=0;d=0;break}if((h|0)==0?(l=c[k>>2]|0,(l|0)>0):0)gw(g|0,c[j>>2]|0,l|0)|0;c[j>>2]=g;f=c[b>>2]|0;do if(!f)f=hc[c[8744+48>>2]&127](g)|0;else{if((c[f+276>>2]|0)>>>0<=g>>>0?(c[f+280>>2]|0)>>>0>g>>>0:0){f=e[f+248>>1]|0;break}f=hc[c[8744+48>>2]&127](g)|0}while(0);c[m>>2]=f}else d=0;while(0);return d|0}function Co(a){a=a|0;var b=0,d=0;if((c[3154]|0)>=(a|0)?(b=c[3160]|0,(b|0)!=0):0){c[3160]=c[b>>2];d=c[3161]|0;c[3161]=d+-1;c[3162]=(d|0)<=(c[3156]|0)&1;c[2173]=a;if((c[2183]|0)>>>0<a>>>0)c[2183]=a;d=(c[2167]|0)+1|0;c[2167]=d;if(d>>>0>(c[2177]|0)>>>0)c[2177]=d}else{b=mg(a,((a|0)<0)<<31>>31)|0;if(b){d=hc[c[8744+48>>2]&127](b)|0;c[2173]=a;if((c[2183]|0)>>>0<a>>>0)c[2183]=a;d=(c[2168]|0)+d|0;c[2168]=d;if(d>>>0>(c[2178]|0)>>>0)c[2178]=d}else b=0}return b|0}function Do(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0;h=a+20|0;if(c[h>>2]|0){f=a+24|0;i=Yb[c[8744+120>>2]&63](b,(c[f>>2]|0)+40|0,d[a+28>>0]|0)|0;if(!i)e=7;else{g=c[2217]|0;e=c[a+16>>2]|0;if((e|0)<=-1){j=ow(e|0,((e|0)<0)<<31>>31|0,-1024,-1)|0;e=(c[f>>2]|0)+(c[h>>2]|0)|0;e=mw(j|0,C|0,e|0,((e|0)<0)<<31>>31|0)|0}fc[g&15](i,e);e=a+40|0;f=c[e>>2]|0;if(f)_b[c[8744+148>>2]&31](f);c[e>>2]=i;c[a+44>>2]=0;c[h>>2]=b;e=0}}else e=0;return e|0}function Eo(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;f=c[a+208>>2]|0;if(((f|0)!=0?(b[f+40>>1]|0)>-1:0)?(e=c[f+72>>2]|0,(e|0)!=0):0){f=e;h=8}else h=4;do if((h|0)==4){f=g;c[f>>2]=0;c[f+4>>2]=0;f=c[a+60>>2]|0;e=c[f>>2]|0;if(!e){e=-1;f=-1}else{e=nc[c[e+24>>2]&127](f,g)|0;if(e)break;e=g;e=fw(c[e>>2]|0,c[e+4>>2]|0,-1,-1)|0;f=C}g=c[a+152>>2]|0;h=((g|0)<0)<<31>>31;f=fw(e|0,f|0,g|0,h|0)|0;f=mw(f|0,C|0,g|0,h|0)|0;h=8}while(0);if((h|0)==8){e=a+156|0;if(f>>>0>(c[e>>2]|0)>>>0)c[e>>2]=f;c[d>>2]=f;e=0}i=k;return e|0}function Fo(b){b=b|0;var d=0,e=0;e=b+64|0;if(!((a[b+7>>0]|0)==0?(d=c[e>>2]|0,d=nc[c[(c[d>>2]|0)+20>>2]&127](d,2)|0,(d|0)!=0):0)){d=c[e>>2]|0;d=nc[c[(c[d>>2]|0)+24>>2]&127](d,b+80|0)|0}return d|0}function Go(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0;G=i;i=i+48|0;if((i|0)>=(j|0))ba();E=G+16|0;D=G+8|0;B=G+36|0;w=G;v=G+32|0;u=G+28|0;A=G+24|0;g=c[b>>2]|0;c[u>>2]=0;c[A>>2]=1;y=b+64|0;e=c[y>>2]|0;e=nc[c[(c[e>>2]|0)+24>>2]&127](e,w)|0;a:do if(!e){x=b+200|0;f=c[x>>2]|0;e=qq(c[y>>2]|0,f,(c[(c[b>>2]|0)+8>>2]|0)+1|0)|0;if(!e){if(!(a[f>>0]|0))e=0;else e=lc[c[g+32>>2]&31](g,f,0,A)|0;b:do if((e|0)==0&(c[A>>2]|0)!=0){t=b+72|0;r=t;c[r>>2]=0;c[r+4>>2]=0;r=b+148|0;k=b+152|0;n=b+80|0;p=b+24|0;f=0;s=d;c:while(1){do{e=w;e=rq(b,d,c[e>>2]|0,c[e+4>>2]|0,v,u)|0;if((e|0)==101)break c;else if(e){F=27;break b}g=c[v>>2]|0;if((g|0)==-1){q=w;q=$v(c[q>>2]|0,c[q+4>>2]|0,c[r>>2]|0,0)|0;g=(c[k>>2]|0)+8|0;g=mw(q|0,C|0,g|0,((g|0)<0)<<31>>31|0)|0;c[v>>2]=g}if(!(g|d)){h=n;l=c[r>>2]|0;h=fw(l|0,0,c[h>>2]|0,c[h+4>>2]|0)|0;o=C;m=t;q=c[m>>2]|0;m=c[m+4>>2]|0;if((h|0)==(q|0)&(o|0)==(m|0)){m=w;m=$v(c[m>>2]|0,c[m+4>>2]|0,h|0,o|0)|0;g=(c[k>>2]|0)+8|0;g=mw(m|0,C|0,g|0,((g|0)<0)<<31>>31|0)|0;c[v>>2]=g;m=o}else h=q}else{h=t;l=c[r>>2]|0;m=c[h+4>>2]|0;h=c[h>>2]|0}if((h|0)==(l|0)&(m|0)==0){h=c[u>>2]|0;e=xl(b,h)|0;if(e){F=25;break a}c[p>>2]=h}}while((g|0)==0);e=s;h=0;while(1){if(e)tn(b);e=sq(b,t,0,1,0)|0;if((e|0)==101)break;else if((e|0)==522)break c;else if(e){F=27;break b}f=f+1|0;h=h+1|0;if(h>>>0<g>>>0)e=0;else{s=0;continue c}}e=w;q=c[e+4>>2]|0;s=t;c[s>>2]=c[e>>2];c[s+4>>2]=q;s=0}a[b+18>>0]=a[b+12>>0]|0;u=f}else{f=0;F=27}while(0);if((F|0)==27){a[b+18>>0]=a[b+12>>0]|0;if(!e)u=f;else break}t=c[x>>2]|0;e=qq(c[y>>2]|0,t,(c[(c[b>>2]|0)+8>>2]|0)+1|0)|0;if(!e){if(((a[b+16>>0]|0)+-1&255)>2?(z=Eg(b,0)|0,(z|0)!=0):0){f=u;e=z;break}e=yl(b,(a[t>>0]|0)!=0&1,0)|0;if(!e)if((a[t>>0]|0)!=0&(c[A>>2]|0)!=0){r=c[b>>2]|0;f=r+4|0;e=c[f>>2]<<1;s=mg(e,((e|0)<0)<<31>>31)|0;if(!s){f=u;e=7}else{bw(s|0,0,e|0)|0;p=s+(c[f>>2]|0)|0;q=r+24|0;e=pc[c[q>>2]&31](r,t,s,16385,0)|0;d:do if(!e){e=nc[c[(c[s>>2]|0)+24>>2]&127](s,D)|0;if(!e){n=(c[r+8>>2]|0)+1|0;f=D;f=fw(c[f>>2]|0,c[f+4>>2]|0,1,0)|0;f=fw(f|0,C|0,n|0,((n|0)<0)<<31>>31|0)|0;f=mg(f,C)|0;if(f){o=D;e=c[o>>2]|0;o=fw(e|0,c[o+4>>2]|0,1,0)|0;o=f+o|0;e=pc[c[(c[s>>2]|0)+8>>2]&31](s,f,e,0,0)|0;if(!e){a[f+(c[D>>2]|0)>>0]=0;k=f;A=D;z=c[A+4>>2]|0;if((z|0)>0|(z|0)==0&(c[A>>2]|0)>>>0>0){l=r+32|0;h=k;m=f;do{e=lc[c[l>>2]&31](r,m,0,B)|0;if(e){F=55;break d}do if(c[B>>2]|0){e=pc[c[q>>2]&31](r,m,p,2049,0)|0;if(e){F=55;break d}e=qq(p,o,n)|0;g=c[p>>2]|0;if(g){hc[c[g+4>>2]&127](p)|0;c[p>>2]=0}if(e){F=55;break d}if(!(a[o>>0]|0))break;if(!(Wv(o,t)|0)){e=0;F=55;break d}}while(0);if(!m)g=1;else{g=m;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=(g-h&1073741823)+1|0}m=m+g|0;h=m;z=h-k|0;x=((z|0)<0)<<31>>31;A=D;y=c[A+4>>2]|0}while((x|0)<(y|0)|((x|0)==(y|0)?z>>>0<(c[A>>2]|0)>>>0:0))}e=c[s>>2]|0;if(e){hc[c[e+4>>2]&127](s)|0;c[s>>2]=0}e=Yb[c[r+28>>2]&63](r,t,0)|0;Sc(f)}else F=55}else{e=7;f=0;F=55}}else{f=0;F=55}}else{f=0;F=55}while(0);if((F|0)==55)Sc(f);f=c[s>>2]|0;if(f){hc[c[f+4>>2]&127](s)|0;c[s>>2]=0}Sc(s);f=u}}else{f=u;e=0}else f=u}else f=u}else{f=0;F=25}}else{f=0;F=25}while(0);if((F|0)==25)a[b+18>>0]=a[b+12>>0]|0;if((d|0)!=0&(f|0)!=0){B=c[b+172>>2]|0;c[E>>2]=f;c[E+4>>2]=B;Zc(539,14776,E)}sp(b);i=G;return e|0}function Ho(d){d=d|0;var e=0,f=0;e=d+44|0;if(a[e>>0]|0){if(!(a[d+43>>0]|0)){f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,0,1,9)|0}a[e>>0]=0;a[d+47>>0]=0}e=d+40|0;f=b[e>>1]|0;if(f<<16>>16>-1){if(!(a[d+43>>0]|0)){d=c[d+4>>2]|0;lc[c[(c[d>>2]|0)+56>>2]&31](d,(f<<16>>16)+3|0,1,5)|0}b[e>>1]=-1}return}function Io(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if((g|0)>5)if((g|0)>100)f=15;else{if((g|0)>9){g=g+-9|0;g=_(g*39|0,g)|0}else g=1;h=c[d>>2]|0;nc[c[h+60>>2]&127](h,g)|0;h=6}else h=6;a:do if((h|0)==6){do if(!f){f=jq(d,e)|0;do if((f|0)==5){if(!(c[c[d+32>>2]>>2]|0)){f=-1;break a}e=d+43|0;if(a[e>>0]|0){f=-1;break a}g=d+4|0;f=c[g>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,2,1,6)|0;if((f|0)==5){f=261;break a}else if(f)break;if(a[e>>0]|0){f=-1;break a}f=c[g>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,2,1,5)|0;f=-1;break a}while(0);if(f)break a;g=d+32|0;j=(c[c[g>>2]>>2]|0)+96|0;e=d+52|0;if((c[j>>2]|0)==(c[d+68>>2]|0)){i=d+43|0;h=a[i>>0]|0;if(!(h<<24>>24)){f=c[d+4>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,3,1,6)|0;h=a[i>>0]|0}else f=0;if(h<<24>>24!=2){n=c[d+4>>2]|0;_b[c[(c[n>>2]|0)+60>>2]&31](n)}if((f|0)==5){n=g;g=5;break}else if(f)break a;if(!(Vv(c[c[g>>2]>>2]|0,e,48)|0)){b[d+40>>1]=0;f=0;break a}if(a[i>>0]|0){f=-1;break a}f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,3,1,5)|0;f=-1;break a}else{n=g;g=0}}else{j=d+32|0;n=j;j=(c[c[j>>2]>>2]|0)+96|0;g=0}while(0);m=d+68|0;e=c[j+8>>2]|0;i=e>>>0>(c[m>>2]|0)>>>0;e=i?0:e;i=i&1^1;h=c[j+12>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:2;e=l?e:h}h=c[j+16>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:3;e=l?e:h}h=c[j+20>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:4;e=l?e:h}b:do if((a[d+46>>0]&2)==0?((i|0)==0?1:e>>>0<(c[m>>2]|0)>>>0):0){l=d+43|0;k=d+4|0;h=1;while(1){g=h+3|0;if(a[l>>0]|0){i=h;break}f=c[k>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,g,1,10)|0;if(!f){i=h;break}else if((f|0)!=5)break a;h=h+1|0;if((h|0)>=5){g=5;break b}}h=c[m>>2]|0;c[j+(i<<2)+4>>2]=h;if(!(a[l>>0]|0)){e=c[k>>2]|0;lc[c[(c[e>>2]|0)+56>>2]&31](e,g,1,9)|0;e=h;g=0}else{e=h;g=0}}while(0);if(!i){f=(g|0)==5?-1:520;break}g=i+3|0;f=d+43|0;h=a[f>>0]|0;do if(!(h<<24>>24)){h=c[d+4>>2]|0;h=lc[c[(c[h>>2]|0)+56>>2]&31](h,g,1,6)|0;if(!h){h=a[f>>0]|0;break}else{f=(h|0)==5?-1:h;break a}}while(0);if(h<<24>>24!=2){m=c[d+4>>2]|0;_b[c[(c[m>>2]|0)+60>>2]&31](m)}if((c[j+(i<<2)+4>>2]|0)==(e|0)?(Vv(c[c[n>>2]>>2]|0,d+52|0,48)|0)==0:0){b[d+40>>1]=i;f=0;break}if(!(a[f>>0]|0)){f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,g,1,5)|0;f=-1}else f=-1}while(0);return f|0}function Jo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=b+56|0;ai(c[e>>2]|0);c[e>>2]=0;_o(b);e=c[b+208>>2]|0;if(!e){if(!(a[b+4>>0]|0)){f=b+60|0;e=c[f>>2]|0;d=c[e>>2]|0;if(!(((d|0)!=0?((hc[c[d+48>>2]&127](e)|0)&2048|0)!=0:0)?(a[b+5>>0]&5)==1:0))i=7;if((i|0)==7?(g=c[b+64>>2]|0,h=c[g>>2]|0,(h|0)!=0):0){hc[c[h+4>>2]&127](g)|0;c[g>>2]=0}d=c[f>>2]|0;e=c[d>>2]|0;if(e){if(!(a[b+13>>0]|0))d=nc[c[e+32>>2]&127](d,0)|0;else d=0;e=b+17|0;if((a[e>>0]|0)!=5)a[e>>0]=0;if((d|0)!=0?(a[b+16>>0]|0)==6:0)a[e>>0]=5}a[b+18>>0]=0;a[b+16>>0]=0}}else{Ho(e);a[b+16>>0]=0}d=b+40|0;if(c[d>>2]|0){tn(b);a[b+18>>0]=a[b+12>>0]|0;a[b+16>>0]=0;c[d>>2]=0}d=b+72|0;a[b+19>>0]=0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;return}function Ko(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=c[d+4>>2]|0;f=e+0|0;g=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));c[e>>2]=d;c[e+4>>2]=c[d>>2];f=e+40|0;c[e+8>>2]=f;bw(f|0,0,c[a+24>>2]|0)|0;c[e+28>>2]=a;c[e+20>>2]=b;return el(a,b,d)|0}function Lo(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();g=l;h=tq(a,b,g)|0;if(!h){k=c[g>>2]|0;if(!b){a=k+136|0;c[g>>2]=a;g=a;a=0}else{g=k;a=(b<<12)+-34|0}c[e>>2]=g+-4;c[d>>2]=k+16384;c[f>>2]=a}i=l;return h|0}function Mo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=c[d+28>>2]|0;j=e&255;if(j&1){f=k+8|0;if((c[f>>2]|0)==(d|0)){e=d;do{e=c[e+36>>2]|0;if(!e){e=0;break}}while((b[e+24>>1]&4)!=0);c[f>>2]=e}e=d+32|0;g=c[e>>2]|0;h=(g|0)==0;i=d+36|0;f=c[i>>2]|0;if(h)c[k+4>>2]=f;else c[g+36>>2]=f;f=c[i>>2]|0;if(!f){c[k>>2]=g;if(h?(a[k+28>>0]|0)!=0:0)a[k+29>>0]=2}else c[f+32>>2]=g;c[e>>2]=0;c[i>>2]=0}if(j&2){e=c[k>>2]|0;c[d+32>>2]=e;if(!e){c[k+4>>2]=d;if(a[k+28>>0]|0)a[k+29>>0]=1}else c[e+36>>2]=d;c[k>>2]=d;e=k+8|0;if((c[e>>2]|0)==0?(b[d+24>>1]&4)==0:0)c[e>>2]=d}return}function No(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;f=e>>>3;g=f&255;a[d+5>>0]=g;e=e&-9;a[d+7>>0]=4-(f<<2);f=c[d+52>>2]|0;if((e|0)==5){a[d+2>>0]=1;a[d+3>>0]=g;a[d+4>>0]=g<<24>>24==0&1;b[d+10>>1]=b[f+28>>1]|0;b[d+12>>1]=b[f+30>>1]|0;k=5}else if((e|0)==2){a[d+2>>0]=0;a[d+3>>0]=0;a[d+4>>0]=0;b[d+10>>1]=b[f+24>>1]|0;b[d+12>>1]=b[f+26>>1]|0;k=5}else{c[h>>2]=54521;c[h+4>>2]=10788;Zc(11,13600,h);e=11}if((k|0)==5){a[d+8>>0]=a[f+21>>0]|0;e=0}i=l;return e|0}function Oo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;l=c[b+200>>2]|0;j=b+152|0;k=c[j>>2]|0;m=b+148|0;i=c[m>>2]|0;k=k>>>0>i>>>0?i:k;g=c[b+96>>2]|0;if((g|0)>0){f=c[b+92>>2]|0;e=b+72|0;h=0;do{d=f+(h*48|0)+8|0;n=d;if((c[n>>2]|0)==0&(c[n+4>>2]|0)==0){o=e;n=c[o+4>>2]|0;c[d>>2]=c[o>>2];c[d+4>>2]=n}h=h+1|0}while((h|0)<(g|0));h=e}else h=b+72|0;e=h;f=c[e>>2]|0;e=c[e+4>>2]|0;if((f|0)==0&(e|0)==0){f=0;e=0}else{f=fw(f|0,e|0,-1,-1)|0;f=mw(f|0,C|0,i|0,0)|0;f=fw(f|0,C|0,1,0)|0;f=ow(f|0,C|0,i|0,0)|0;e=C}i=h;c[i>>2]=f;c[i+4>>2]=e;i=b+80|0;c[i>>2]=f;c[i+4>>2]=e;if(((a[b+7>>0]|0)==0?(a[b+5>>0]|0)!=4:0)?(i=c[b+60>>2]|0,((hc[c[(c[i>>2]|0)+48>>2]&127](i)|0)&512|0)==0):0){f=l+0|0;e=f+12|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(e|0))}else{i=l;g=i;a[g>>0]=-117058087;a[g+1>>0]=-117058087>>8;a[g+2>>0]=-117058087>>16;a[g+3>>0]=-117058087>>24;i=i+4|0;a[i>>0]=-681336544;a[i+1>>0]=-681336544>>8;a[i+2>>0]=-681336544>>16;a[i+3>>0]=-681336544>>24;i=l+8|0;a[i>>0]=-1;a[i+1>>0]=-1>>8;a[i+2>>0]=-1>>16;a[i+3>>0]=-1>>24}e=b+48|0;_c(4,e);e=c[e>>2]|0;a[l+12>>0]=e>>>24;a[l+13>>0]=e>>>16;a[l+14>>0]=e>>>8;a[l+15>>0]=e;e=c[b+28>>2]|0;a[l+16>>0]=e>>>24;a[l+17>>0]=e>>>16;a[l+18>>0]=e>>>8;a[l+19>>0]=e;e=c[m>>2]|0;a[l+20>>0]=e>>>24;a[l+21>>0]=e>>>16;a[l+22>>0]=e>>>8;a[l+23>>0]=e;e=c[j>>2]|0;a[l+24>>0]=e>>>24;a[l+25>>0]=e>>>16;a[l+26>>0]=e>>>8;a[l+27>>0]=e;bw(l+28|0,0,k+-28|0)|0;e=b+64|0;f=0;while(1){if(f>>>0>=(c[m>>2]|0)>>>0){d=0;break}j=c[e>>2]|0;d=h;d=pc[c[(c[j>>2]|0)+12>>2]&31](j,l,k,c[d>>2]|0,c[d+4>>2]|0)|0;j=h;j=fw(c[j>>2]|0,c[j+4>>2]|0,k|0,0)|0;b=h;c[b>>2]=j;c[b+4>>2]=C;if(!d)f=f+k|0;else break}return d|0}function Po(a){a=a|0;var c=0,d=0,f=0;c=a+24|0;f=e[c>>1]|0;d=f&65503;b[c>>1]=d;if(!(f&2)){b[c>>1]=d|2;Mo(a,2)}return}function Qo(a){a=a|0;var b=0,d=0,e=0;b=c[a+16>>2]|0;d=c[a+20>>2]|0;e=c[b+96>>2]|0;a:do if((e|0)>0){b=c[b+92>>2]|0;a=0;while(1){if((c[b+(a*48|0)+20>>2]|0)>>>0>=d>>>0?($h(c[b+(a*48|0)+16>>2]|0,d)|0)==0:0){a=1;break a}a=a+1|0;if((a|0)>=(e|0)){a=0;break}}}else a=0;while(0);return a|0}function Ro(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;o=c[b+16>>2]|0;e=a[o+5>>0]|0;a:do if(e<<24>>24!=2){n=o+68|0;f=c[n>>2]|0;do if(!(c[f>>2]|0)){if(e<<24>>24!=4?(a[o+21>>0]|0)==0:0){d=c[o>>2]|0;d=pc[c[d+24>>2]&31](d,0,f,8222,0)|0;if(!d)break;else break a}e=f+0|0;d=e+40|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(d|0));c[f>>2]=14696}while(0);f=c[b+4>>2]|0;l=o+52|0;g=o+152|0;h=(c[g>>2]|0)+4|0;h=ow(h|0,((h|0)<0)<<31>>31|0,c[l>>2]|0,0)|0;k=C;d=c[n>>2]|0;e=b+20|0;b=c[e>>2]|0;a[m>>0]=b>>>24;a[m+1>>0]=b>>>16;a[m+2>>0]=b>>>8;a[m+3>>0]=b;d=pc[c[(c[d>>2]|0)+12>>2]&31](d,m,4,h,k)|0;if(!d){m=c[n>>2]|0;n=c[g>>2]|0;d=fw(h|0,k|0,4,0)|0;d=pc[c[(c[m>>2]|0)+12>>2]&31](m,f,n,d,C)|0;if(!d){d=l;p=10}}}else{e=b+20|0;d=o+52|0;p=10}while(0);if((p|0)==10){c[d>>2]=(c[d>>2]|0)+1;d=fl(o,c[e>>2]|0)|0}i=q;return d|0}function So(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+48|0;if((i|0)>=(j|0))ba();g=h;d=(a|0)!=0;a:do if(d&(b|0)!=0){d=g;while(1){f=c[b+20>>2]|0;e=a;a=d;while(1){a=a+12|0;if((c[e+20>>2]|0)>>>0>=f>>>0)break;c[a>>2]=e;a=c[e+12>>2]|0;if(!a){d=b;a=e;e=8;break a}else{d=e;e=a;a=d}}c[a>>2]=b;f=c[b+12>>2]|0;d=(e|0)!=0;if(d&(f|0)!=0){d=b;a=e;b=f}else{a=e;e=6;break}}}else{f=b;b=g;e=6}while(0);if((e|0)==6)if(d)c[b+12>>2]=a;else{d=f;a=b;e=8}do if((e|0)==8){a=a+12|0;if(!d){c[a>>2]=0;break}else{c[a>>2]=d;break}}while(0);i=h;return c[g+12>>2]|0}function To(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[c[b+32>>2]>>2]|0;k=b+84|0;j=b+104|0;c[j>>2]=(c[j>>2]|0)+1;c[b+68>>2]=0;j=k+1|0;i=k+2|0;g=k+3|0;h=((d[j>>0]|0)<<16|(d[k>>0]|0)<<24|(d[i>>0]|0)<<8|(d[g>>0]|0))+1|0;a[k>>0]=h>>>24;a[j>>0]=h>>>16;a[i>>0]=h>>>8;a[g>>0]=h;c[b+88>>2]=e;Xo(b);c[f+96>>2]=0;c[f+104>>2]=0;c[f+108>>2]=-1;c[f+112>>2]=-1;c[f+116>>2]=-1;return}function Uo(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();m=l;k=c[e+4>>2]|0;n=c[b>>2]|0;o=c[e+20>>2]|0;e=n+76|0;a[m>>0]=o>>>24;a[m+1>>0]=o>>>16;a[m+2>>0]=o>>>8;a[m+3>>0]=o;a[m+4>>0]=f>>>24;a[m+5>>0]=f>>>16;a[m+6>>0]=f>>>8;a[m+7>>0]=f;o=n+84|0;q=o;q=d[q>>0]|d[q+1>>0]<<8|d[q+2>>0]<<16|d[q+3>>0]<<24;o=o+4|0;o=d[o>>0]|d[o+1>>0]<<8|d[o+2>>0]<<16|d[o+3>>0]<<24;f=m+8|0;p=f;a[p>>0]=q;a[p+1>>0]=q>>8;a[p+2>>0]=q>>16;a[p+3>>0]=q>>24;f=f+4|0;a[f>>0]=o;a[f+1>>0]=o>>8;a[f+2>>0]=o>>16;a[f+3>>0]=o>>24;f=(a[n+65>>0]|0)==0&1;uq(f,m,8,e,e);uq(f,k,c[n+36>>2]|0,e,e);f=c[e>>2]|0;a[m+16>>0]=f>>>24;a[m+17>>0]=f>>>16;a[m+18>>0]=f>>>8;a[m+19>>0]=f;f=c[n+80>>2]|0;a[m+20>>0]=f>>>24;a[m+21>>0]=f>>>16;a[m+22>>0]=f>>>8;a[m+23>>0]=f;f=vq(b,m,24,g,h)|0;if(!f){o=c[b+20>>2]|0;f=fw(g|0,h|0,24,0)|0;f=vq(b,k,o,f,C)|0}i=l;return f|0}function Vo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k+8|0;g=k;f=c[3164]|0;if(f)jc[f&3]();e=a+8|0;f=c[e>>2]|0;f=nc[c[(c[f>>2]|0)+24>>2]&127](f,g)|0;l=c[g+4>>2]|0;if((f|0)==0&((l|0)>(d|0)|((l|0)==(d|0)?(c[g>>2]|0)>>>0>b>>>0:0))){f=c[e>>2]|0;f=Yb[c[(c[f>>2]|0)+16>>2]&63](f,b,d)|0}e=c[3166]|0;if(e)jc[e&3]();if(f){c[h>>2]=c[a+100>>2];Zc(f,14816,h)}i=k;return}function Wo(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();k=n;g=n+16|0;m=n+12|0;l=n+8|0;c[g>>2]=0;c[m>>2]=0;c[l>>2]=0;f=Lo(a,(d+33|0)>>>12,l,m,g)|0;a:do if(!f){h=d-(c[g>>2]|0)|0;if((h|0)==1){f=c[m>>2]|0;d=f+4|0;bw(d|0,0,(c[l>>2]|0)+16384-d|0)|0}else f=c[m>>2]|0;if(c[f+(h<<2)>>2]|0)wq(a);f=e*383&8191;b:do if(b[(c[l>>2]|0)+(f<<1)>>1]|0){d=c[l>>2]|0;g=h;while(1){if(!g)break;f=f+1&8191;if(!(b[d+(f<<1)>>1]|0))break b;else g=g+-1|0}c[k>>2]=49852;c[k+4>>2]=10788;Zc(11,13600,k);f=11;break a}while(0);c[(c[m>>2]|0)+(h<<2)>>2]=e;b[(c[l>>2]|0)+(f<<1)>>1]=h;f=0}while(0);i=n;return f|0}function Xo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[c[b+32>>2]>>2]|0;k=b+52|0;a[b+64>>0]=1;c[k>>2]=3007e3;i=b+92|0;g=3007e3;h=k;f=0;d=0;while(1){f=f+d+g|0;e=h+8|0;d=f+d+(c[h+4>>2]|0)|0;if(e>>>0>=i>>>0)break;g=c[e>>2]|0;h=e}c[i>>2]=f;c[b+96>>2]=d;d=j+48|0;e=k+0|0;f=d+48|0;do{a[d>>0]=a[e>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));if((a[b+43>>0]|0)!=2){d=c[b+4>>2]|0;_b[c[(c[d>>2]|0)+60>>2]&31](d)}d=j+0|0;e=k+0|0;f=d+48|0;do{a[d>>0]=a[e>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));return}function Yo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;if(a)do{e=a+28|0;g=c[e>>2]|0;if(((g>>>0<7?(30>>>(g&127)&1)==0:0)?(c[a+16>>2]|0)>>>0>b>>>0:0)?(f=wg(a,b,d,1)|0,(f|0)!=0):0)c[e>>2]=f;a=c[a+44>>2]|0}while((a|0)!=0);return}function Zo(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[a+208>>2]|0)){d=a+176|0;e=a+180|0;while(1){b=bl(a,4)|0;if((b|0)!=5)break a;if(!(hc[c[d>>2]&127](c[e>>2]|0)|0)){b=5;break}}}else b=0;while(0);return b|0}function _o(b){b=b|0;var d=0,e=0,f=0,g=0;f=b+96|0;if((c[f>>2]|0)>0){d=b+92|0;e=0;do{ai(c[(c[d>>2]|0)+(e*48|0)+16>>2]|0);e=e+1|0}while((e|0)<(c[f>>2]|0))}e=c[b+68>>2]|0;d=c[e>>2]|0;if(!(a[b+4>>0]|0)){if(d)g=7}else if((d|0)==14696){d=14696;g=7}if((g|0)==7){hc[c[d+4>>2]&127](e)|0;c[e>>2]=0}d=b+92|0;Sc(c[d>>2]|0);c[d>>2]=0;c[f>>2]=0;c[b+52>>2]=0;return}function $o(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=a+40|0;if(c[f>>2]|0){d=c[a>>2]|0;if(d)do{e=d;d=c[d+32>>2]|0;if((c[e+20>>2]|0)>>>0>b>>>0)tl(e)}while((d|0)!=0);if(!b){b=c[a+44>>2]|0;if(!b)b=0;else{bw(c[b+4>>2]|0,0,c[a+20>>2]|0)|0;b=1}}fc[c[8744+144>>2]&15](c[f>>2]|0,b+1|0)}return}function ap(d,e){d=d|0;e=e|0;var f=0,g=0;do if(!e){f=d+43|0;if(!(a[f>>0]|0))f=0;else{a[f>>0]=0;g=c[d+4>>2]|0;if(!(lc[c[(c[g>>2]|0)+56>>2]&31](g,(b[d+40>>1]|0)+3|0,1,6)|0))f=(a[f>>0]|0)==0;else{a[f>>0]=1;f=0}f=f&1}}else{f=d+43|0;g=(a[f>>0]|0)==0;if((e|0)<=0){f=g&1;break}if(g){g=c[d+4>>2]|0;lc[c[(c[g>>2]|0)+56>>2]&31](g,(b[d+40>>1]|0)+3|0,1,5)|0}a[f>>0]=1;f=1}while(0);return f|0}function bp(b){b=b|0;var e=0,f=0,g=0,h=0;f=b+73|0;if((a[f>>0]|0)==2)a[f>>0]=1;else c[b+68>>2]=0;e=b+48|0;gm(b,e);do if(!(a[(c[b+120>>2]|0)+2>>0]|0)){g=e;g=mg(c[g>>2]|0,c[g+4>>2]|0)|0;if(g){e=Hm(b,0,c[e>>2]|0,g,0)|0;if(!e){c[b+56>>2]=g;h=9;break}else{Sc(g);break}}else e=7}else h=9;while(0);if((h|0)==9){cp(b);a[f>>0]=3;e=0}f=b+72|0;a[f>>0]=d[f>>0]&251;return e|0}function cp(a){a=a|0;var d=0,e=0,f=0,g=0;d=a+76|0;if((b[d>>1]|0)>=0){g=0;while(1){e=a+(g<<2)+120|0;f=c[e>>2]|0;if(f)xg(c[f+68>>2]|0);c[e>>2]=0;if((g|0)<(b[d>>1]|0))g=g+1|0;else break}}b[d>>1]=-1;return}function dp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;k=o+8|0;if(e>>>0<2)m=0;else{m=e+-2|0;m=m-((m>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;m=((m+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+m|0}h=vg(c[b>>2]|0,m,k,0)|0;do if(!h){k=c[k>>2]|0;l=c[k+4>>2]|0;h=(e-m|0)*5|0;b=h+-5|0;if((b|0)<0){if(k)xg(k);c[n>>2]=53912;c[n+4>>2]=10788;Zc(11,13600,n);h=11;break}a[f>>0]=a[l+b>>0]|0;if(g)c[g>>2]=(d[l+(h+-3)>>0]|0)<<16|(d[l+(h+-4)>>0]|0)<<24|(d[l+(h+-2)>>0]|0)<<8|(d[l+(h+-1)>>0]|0);if(k)xg(k);if(((a[f>>0]|0)+-1&255)>4){c[n>>2]=53920;c[n+4>>2]=10788;Zc(11,13600,n);h=11}else h=0}while(0);i=o;return h|0}function ep(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;K=i;i=i+32|0;if((i|0)>=(j|0))ba();J=K;I=K+16|0;p=K+20|0;H=K+12|0;q=K+8|0;c[I>>2]=0;s=e+12|0;o=c[s>>2]|0;r=e+44|0;F=c[r>>2]|0;G=o+56|0;n=c[G>>2]|0;n=d[n+37>>0]<<16|d[n+36>>0]<<24|d[n+38>>0]<<8|d[n+39>>0];do if(n>>>0<F>>>0){if(!n){k=(a[e+19>>0]|0)==0&1;o=Cg(c[o+68>>2]|0)|0;if(o){l=o;break}p=c[r>>2]|0;n=p+1|0;c[r>>2]=n;m=e+32|0;o=c[m>>2]|0;if((p|0)==(((c[2514]|0)>>>0)/(o>>>0)|0|0)){n=p+2|0;c[r>>2]=n}if(a[e+17>>0]|0){if(n>>>0<2)p=0;else{p=n+-2|0;p=p-((p>>>0)%(((((c[e+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;p=((p+1|0)==(((c[2514]|0)>>>0)/(o>>>0)|0|0)?3:2)+p|0}if((p|0)==(n|0)){c[q>>2]=0;p=$k(e,n,q,k)|0;if(p){l=p;break}F=c[q>>2]|0;p=F+68|0;o=Cg(c[p>>2]|0)|0;if(F)xg(c[p>>2]|0);if(o){l=o;break}p=c[r>>2]|0;n=p+1|0;c[r>>2]=n;if((p|0)==(((c[2514]|0)>>>0)/((c[m>>2]|0)>>>0)|0|0)){n=p+2|0;c[r>>2]=n}}}m=c[(c[s>>2]|0)+56>>2]|0;a[m+28>>0]=n>>>24;a[m+29>>0]=n>>>16;a[m+30>>0]=n>>>8;a[m+31>>0]=n;m=c[r>>2]|0;c[g>>2]=m;m=$k(e,m,f,k)|0;if(m){l=m;break}m=Cg(c[(c[f>>2]|0)+68>>2]|0)|0;if(m){l=c[f>>2]|0;if(!l){l=m;A=98}else{xg(c[l+68>>2]|0);l=m;A=92}}}else{if(k<<24>>24==2)p=1;else if(k<<24>>24==1?F>>>0>=h>>>0:0){l=dp(e,h,p,0)|0;if(l)break;p=(a[p>>0]|0)==2&1}else p=0;l=Cg(c[o+68>>2]|0)|0;if(l)break;C=c[G>>2]|0;D=n+-1|0;a[C+36>>0]=D>>>24;a[C+37>>0]=D>>>16;a[C+38>>0]=D>>>8;a[C+39>>0]=D;C=e+36|0;D=(h|0)==0;E=e+60|0;B=k<<24>>24==2;m=0;a:while(1){t=(m|0)!=0;if(t){s=c[m+56>>2]|0;s=d[s+1>>0]<<16|d[s>>0]<<24|d[s+2>>0]<<8|d[s+3>>0]}else{s=c[G>>2]|0;s=d[s+33>>0]<<16|d[s+32>>0]<<24|d[s+34>>0]<<8|d[s+35>>0]}if(s>>>0>F>>>0){A=15;break}l=$k(e,s,I,0)|0;if(l){A=17;break}n=c[I>>2]|0;u=n+56|0;y=c[u>>2]|0;z=y+4|0;v=y+5|0;w=y+6|0;x=y+7|0;A=d[v>>0]<<16|d[z>>0]<<24|d[w>>0]<<8|d[x>>0];q=p<<24>>24!=0;do if((A|0)!=0|q){if(A>>>0>(((c[C>>2]|0)>>>2)+-2|0)>>>0){l=n;A=22;break a}if(p<<24>>24!=0?(s|0)==(h|0)|s>>>0<h>>>0&B:0){c[g>>2]=s;c[f>>2]=n;l=Cg(c[n+68>>2]|0)|0;if(l){A=88;break a}do if(!A){if(!t){A=(c[G>>2]|0)+32|0;z=c[u>>2]|0;z=d[z>>0]|d[z+1>>0]<<8|d[z+2>>0]<<16|d[z+3>>0]<<24;a[A>>0]=z;a[A+1>>0]=z>>8;a[A+2>>0]=z>>16;a[A+3>>0]=z>>24;break}l=Cg(c[m+68>>2]|0)|0;if(l){A=88;break a}A=c[m+56>>2]|0;z=c[u>>2]|0;z=d[z>>0]|d[z+1>>0]<<8|d[z+2>>0]<<16|d[z+3>>0]<<24;a[A>>0]=z;a[A+1>>0]=z>>8;a[A+2>>0]=z>>16;a[A+3>>0]=z>>24}else{s=c[u>>2]|0;q=a[s+8>>0]|0;k=a[s+9>>0]|0;r=a[s+10>>0]|0;s=a[s+11>>0]|0;p=(k&255)<<16|(q&255)<<24|(r&255)<<8|s&255;if(p>>>0>F>>>0){l=n;A=32;break a}l=$k(e,p,H,0)|0;if(l){A=88;break a}p=c[H>>2]|0;o=p+68|0;l=Cg(c[o>>2]|0)|0;if(l){A=35;break a}z=p+56|0;y=c[z>>2]|0;x=c[u>>2]|0;x=d[x>>0]|d[x+1>>0]<<8|d[x+2>>0]<<16|d[x+3>>0]<<24;a[y>>0]=x;a[y+1>>0]=x>>8;a[y+2>>0]=x>>16;a[y+3>>0]=x>>24;y=c[z>>2]|0;A=A+-1|0;a[y+4>>0]=A>>>24;a[y+5>>0]=A>>>16;a[y+6>>0]=A>>>8;a[y+7>>0]=A;gw((c[z>>2]|0)+8|0,(c[u>>2]|0)+12|0,A<<2|0)|0;if(p)xg(c[o>>2]|0);if(!t){A=c[G>>2]|0;a[A+32>>0]=q;a[A+33>>0]=k;a[A+34>>0]=r;a[A+35>>0]=s;break}l=Cg(c[m+68>>2]|0)|0;if(l){A=88;break a}A=c[m+56>>2]|0;a[A>>0]=q;a[A+1>>0]=k;a[A+2>>0]=r;a[A+3>>0]=s}while(0);c[I>>2]=0;n=0;l=0;p=0;break}if(A){b:do if(!D){if(B){k=0;while(1){u=k<<2;if((d[y+(u+9)>>0]<<16|d[y+(u+8)>>0]<<24|d[y+(u+10)>>0]<<8|d[y+(u+11)>>0])>>>0<=h>>>0)break b;k=k+1|0;if(k>>>0>=A>>>0){k=0;break b}}}o=(d[y+9>>0]<<16|d[y+8>>0]<<24|d[y+10>>0]<<8|d[y+11>>0])-h|0;if((o|0)<=-1)o=(o|0)==-2147483648?2147483647:0-o|0;if(A>>>0>1){k=0;r=1;while(1){l=r<<2;l=(d[y+(l+9)>>0]<<16|d[y+(l+8)>>0]<<24|d[y+(l+10)>>0]<<8|d[y+(l+11)>>0])-h|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;s=(l|0)<(o|0);k=s?r:k;r=r+1|0;if((r|0)==(A|0))break;else o=s?l:o}}else k=0}else k=0;while(0);o=k<<2;s=y+(o+8)|0;o=d[y+(o+9)>>0]<<16|d[s>>0]<<24|d[y+(o+10)>>0]<<8|d[y+(o+11)>>0];if(o>>>0>F>>>0){l=n;A=56;break a}if((o|0)==(h|0)|q^1|o>>>0<h>>>0&B){c[g>>2]=o;l=Cg(c[n+68>>2]|0)|0;if(l){A=88;break a}p=A+-1|0;if(k>>>0<p>>>0){A=y+((A<<2)+4)|0;A=d[A>>0]|d[A+1>>0]<<8|d[A+2>>0]<<16|d[A+3>>0]<<24;a[s>>0]=A;a[s+1>>0]=A>>8;a[s+2>>0]=A>>16;a[s+3>>0]=A>>24}a[z>>0]=p>>>24;a[v>>0]=p>>>16;a[w>>0]=p>>>8;a[x>>0]=p;o=c[g>>2]|0;p=c[E>>2]|0;do if(!p)p=0;else{if((c[p>>2]|0)>>>0<o>>>0){p=1;break}p=($h(p,o)|0)!=0}while(0);l=$k(e,o,f,p&1^1)|0;if(l){p=0;break}l=Cg(c[(c[f>>2]|0)+68>>2]|0)|0;if(!l){l=0;p=0;break}p=c[f>>2]|0;if(!p){p=0;break}xg(c[p+68>>2]|0);p=0}else l=0}else l=0}else{l=Cg(c[n+68>>2]|0)|0;if(l){A=89;break a}c[g>>2]=s;l=(c[G>>2]|0)+32|0;p=c[u>>2]|0;p=d[p>>0]|d[p+1>>0]<<8|d[p+2>>0]<<16|d[p+3>>0]<<24;a[l>>0]=p;a[l+1>>0]=p>>8;a[l+2>>0]=p>>16;a[l+3>>0]=p>>24;c[f>>2]=n;c[I>>2]=0;n=0;l=0;p=0}while(0);if(m)xg(c[m+68>>2]|0);if(!(p<<24>>24)){m=0;A=88;break}else m=n}if((A|0)==15){c[J>>2]=58314;c[J+4>>2]=10788;Zc(11,13600,J);l=11;A=17}else if((A|0)==22){c[J>>2]=58343;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}else if((A|0)==32){c[J>>2]=58377;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}else if((A|0)==35)if(!p)A=88;else{xg(c[o>>2]|0);A=88}else if((A|0)==56){c[J>>2]=58442;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}if((A|0)==17)c[I>>2]=0;else if((A|0)==88)if(n)A=89;if((A|0)==89)xg(c[n+68>>2]|0);if(!m)A=92;else{xg(c[m+68>>2]|0);A=92}}if((A|0)==92?(l|0)!=0:0)A=98;if((A|0)==98){c[f>>2]=0;break}l=c[f>>2]|0;m=c[l+68>>2]|0;if((b[m+26>>1]|0)<=1){a[l>>0]=0;l=0;break}if(l)xg(m);c[f>>2]=0;c[J>>2]=58541;c[J+4>>2]=10788;Zc(11,13600,J);l=11}else{c[J>>2]=58259;c[J+4>>2]=10788;Zc(11,13600,J);l=11}while(0);i=K;return l|0}function fp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();t=y+12|0;s=y+8|0;x=y;f=c[b+40>>2]|0;a:do if(!f){h=b+96|0;g=c[h>>2]|0;if((g|0)>(e|0)){f=(d|0)==1;e=(f&1^1)+e|0;if((e|0)<(g|0)){d=b+92|0;g=e;do{ai(c[(c[d>>2]|0)+(g*48|0)+16>>2]|0);g=g+1|0}while((g|0)<(c[h>>2]|0))}c[h>>2]=e;if(f){if(e){f=0;break}f=c[b+68>>2]|0;g=c[f>>2]|0;if(!g){f=0;break}if((g|0)==14696)f=Ci(f,0,0)|0;else f=0;c[b+52>>2]=0;break}r=b+208|0;if((c[r>>2]|0)==0?(c[c[b+64>>2]>>2]|0)==0:0){f=0;break}if(!e)u=0;else u=(c[b+92>>2]|0)+((e+-1|0)*48|0)|0;q=(u|0)!=0;f=u+20|0;if(q){d=c[f>>2]|0;g=mg(512,0)|0;if(!g){f=7;break}bw(g|0,0,512)|0;c[g>>2]=d;w=g}else w=0;h=b+28|0;e=b+24|0;c[e>>2]=c[(q?f:h)>>2];a[b+18>>0]=a[b+12>>0]|0;b:do if(q){h=b+72|0;e=h;k=c[e>>2]|0;e=c[e+4>>2]|0;if(!(c[r>>2]|0)){g=u+8|0;l=c[g>>2]|0;g=c[g+4>>2]|0;d=(l|0)==0&(g|0)==0;l=d?k:l;g=d?e:g;d=u;f=c[d>>2]|0;d=c[d+4>>2]|0;o=h;c[o>>2]=f;c[o+4>>2]=d;if((d|0)<(g|0)|(d|0)==(g|0)&f>>>0<l>>>0)while(1){f=sq(b,h,w,1,1)|0;if(f){n=k;m=e;break b}d=h;f=c[d>>2]|0;d=c[d+4>>2]|0;if(!((d|0)<(g|0)|(d|0)==(g|0)&f>>>0<l>>>0)){v=39;break}}else v=39}else v=38}else{p=c[r>>2]|0;if(!p){h=b+72|0;e=h;k=c[e>>2]|0;e=c[e+4>>2]|0;v=38;break}c[e>>2]=c[h>>2];if(a[p+44>>0]|0){k=p+68|0;m=c[k>>2]|0;l=p+32|0;e=c[l>>2]|0;g=p+52|0;f=(c[e>>2]|0)+0|0;d=g+48|0;do{a[g>>0]=a[f>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(d|0));g=c[k>>2]|0;f=g+1|0;if(f>>>0>m>>>0)f=0;else{h=f;while(1){g=g+34|0;f=g>>>12;if(!f)g=(c[e>>2]|0)+(g<<2)|0;else g=(c[e+(f<<2)>>2]|0)+((g&4095)<<2)|0;f=xq(b,c[g>>2]|0)|0;g=h+1|0;if((f|0)!=0|g>>>0>m>>>0)break;o=h;e=c[l>>2]|0;h=g;g=o}g=c[k>>2]|0}if((m|0)!=(g|0))wq(p)}else f=0;g=rl(c[b+204>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a;while(1){f=g;g=c[g+12>>2]|0;f=xq(b,c[f+20>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a}}while(0);if((v|0)==38){d=h;c[d>>2]=0;c[d+4>>2]=0;d=0;f=0;v=39}c:do if((v|0)==39){n=b+80|0;o=b+148|0;p=b+152|0;if((d|0)<(e|0)|(d|0)==(e|0)&f>>>0<k>>>0)while(1){c[t>>2]=0;f=rq(b,0,k,e,t,s)|0;d=c[t>>2]|0;if(!d){d=n;d=fw(c[o>>2]|0,0,c[d>>2]|0,c[d+4>>2]|0)|0;g=C;m=h;if((d|0)==(c[m>>2]|0)?(g|0)==(c[m+4>>2]|0):0){v=$v(k|0,e|0,d|0,g|0)|0;d=(c[p>>2]|0)+8|0;d=mw(v|0,C|0,d|0,((d|0)<0)<<31>>31|0)|0;c[t>>2]=d;v=46}else v=40}else v=46;d:do if((v|0)==46){v=0;if((f|0)==0&(d|0)!=0){m=0;while(1){g=h;l=c[g>>2]|0;g=c[g+4>>2]|0;if(!((g|0)<(e|0)|(g|0)==(e|0)&l>>>0<k>>>0)){d=l;break d}f=sq(b,h,w,1,1)|0;m=m+1|0;if(!((f|0)==0&m>>>0<d>>>0)){v=40;break}}}else v=40}while(0);if((v|0)==40){v=0;if(f){n=k;m=e;break c}d=h;g=c[d+4>>2]|0;d=c[d>>2]|0}if(!((g|0)<(e|0)|(g|0)==(e|0)&d>>>0<k>>>0)){n=k;m=e;f=0;break}}else{n=k;m=e;f=0}}while(0);e:do if(!q){ai(w);if(f)break a}else{l=u+24|0;g=c[l>>2]|0;o=(c[b+152>>2]|0)+4|0;o=ow(o|0,((o|0)<0)<<31>>31|0,g|0,0)|0;k=x;c[k>>2]=o;c[k+4>>2]=C;k=c[r>>2]|0;if(!k){if(!f)v=57}else{e=u+28|0;d=u+40|0;f=k+104|0;if((c[d>>2]|0)==(c[f>>2]|0))d=c[e>>2]|0;else{c[e>>2]=0;c[d>>2]=c[f>>2];d=0}e=k+68|0;if(d>>>0<(c[e>>2]|0)>>>0){c[e>>2]=d;c[k+76>>2]=c[u+32>>2];c[k+80>>2]=c[u+36>>2];wq(k);g=c[l>>2]|0;v=57}else v=57}f:do if((v|0)==57){d=b+52|0;while(1){if(g>>>0>=(c[d>>2]|0)>>>0)break;f=sq(b,x,w,0,1)|0;if(!f)g=g+1|0;else break f}ai(w);break e}while(0);ai(w);break a}while(0);f=h;c[f>>2]=n;c[f+4>>2]=m;f=0}else f=0}while(0);i=y;return f|0}function gp(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=c[d>>2]|0;if(e){i=c[d+4>>2]|0;c[(c[e+4>>2]|0)+4>>2]=c[e>>2];g=d+56|0;Sc(c[g>>2]|0);c[g>>2]=0;a[d+73>>0]=0;g=c[d+12>>2]|0;f=d+8|0;e=c[f>>2]|0;if(!g)c[i+8>>2]=e;else{c[g+8>>2]=e;e=c[f>>2]|0}if(e)c[e+12>>2]=g;h=d+76|0;e=b[h>>1]|0;if(e<<16>>16>=0){f=0;while(1){g=c[d+(f<<2)+120>>2]|0;if(g){xg(c[g+68>>2]|0);e=b[h>>1]|0}if((f|0)<(e<<16>>16|0))f=f+1|0;else break}}if((a[i+20>>0]|0)==0?(j=i+12|0,k=c[j>>2]|0,(k|0)!=0):0){c[j>>2]=0;xg(c[k+68>>2]|0)}Sc(c[d+20>>2]|0)}return}function hp(b){b=b|0;var e=0,f=0,g=0,h=0;h=c[b+200>>2]|0;e=c[3164]|0;if(e)jc[e&3]();f=c[b+136>>2]|0;if(f)do{e=f;f=c[f+12>>2]|0;Sc(e)}while((f|0)!=0);a[b+4>>0]=0;e=b+208|0;nn(c[e>>2]|0,d[b+9>>0]|0,c[b+152>>2]|0,h)|0;c[e>>2]=0;tn(b);if(!(a[b+15>>0]|0)){if((c[c[b+64>>2]>>2]|0)!=0?(g=Fo(b)|0,e=g&255,(e|0)==10|(e|0)==13):0){c[b+40>>2]=g;a[b+16>>0]=6}jl(b)}else Jo(b);e=c[3166]|0;if(e)jc[e&3]();e=c[b+64>>2]|0;f=c[e>>2]|0;if(f){hc[c[f+4>>2]&127](e)|0;c[e>>2]=0}f=c[b+60>>2]|0;e=c[f>>2]|0;if(e){hc[c[e+4>>2]&127](f)|0;c[f>>2]=0}Xk(h);_b[c[8744+148>>2]&31](c[(c[b+204>>2]|0)+40>>2]|0);Sc(b);return}function ip(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=c[a+4>>2]|0;h=mg(g,((g|0)<0)<<31>>31)|0;do if(h){bw(h|0,0,g|0)|0;g=pc[c[a+24>>2]&31](a,b,h,e&556927,f)|0;if(!g){c[d>>2]=h;g=0;break}else{Sc(h);break}}else g=7;while(0);return g|0}function jp(b){b=b|0;var d=0,e=0,f=0;d=b+16|0;e=b+12|0;f=b+10|0;if(!(Pl(c[d>>2]|0,b,c[e>>2]|0,a[f>>0]|0)|0))d=0;else{d=(Ql(c[d>>2]|0,b,c[e>>2]|0,a[f>>0]|0)|0)==0;d=d?4:8}return d|0}function kp(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[g>>1]|0;do if(!(f&13))if(!(Ql(c[d+16>>2]|0,d,c[d+12>>2]|0,a[d+10>>0]|0)|0)){f=((e[g>>1]|0)&48640|4)&65535;b[g>>1]=f;break}else{h[d>>3]=+Qg(d);b[g>>1]=(e[g>>1]|0)&48640|8;$l(d);f=b[g>>1]|0;break}while(0);b[g>>1]=f&65517;return}function lp(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+80|0;if((i|0)>=(j|0))ba();r=t+40|0;s=t;h=f+4|0;if((a[d+10>>0]|0)!=(a[h>>0]|0)){q=c[d+32>>2]|0;n=r+8|0;b[n>>1]=1;c[r+32>>2]=q;o=r+24|0;c[o>>2]=0;p=s+8|0;b[p>>1]=1;c[s+32>>2]=q;q=s+24|0;c[q>>2]=0;Vl(r,d,4096);Vl(s,e,4096);d=Og(r,a[h>>0]|0)|0;m=(d|0)==0;if(m)l=0;else l=c[r+12>>2]|0;h=Og(s,a[h>>0]|0)|0;k=(h|0)==0;if(k)e=0;else e=c[s+12>>2]|0;d=pc[c[f+12>>2]&31](c[f+8>>2]|0,l,d,e,h)|0;if(!((b[n>>1]&9312)==0&(c[o>>2]|0)==0))Mg(r);if(!((b[p>>1]&9312)==0&(c[q>>2]|0)==0))Mg(s);if((m|k)&(g|0)!=0)a[g>>0]=7}else d=pc[c[f+12>>2]&31](c[f+8>>2]|0,c[d+12>>2]|0,c[d+16>>2]|0,c[e+12>>2]|0,c[e+16>>2]|0)|0;i=t;return d|0}function mp(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+12>>2]|0;d=c[b+12>>2]|0;a=Vv(c[a+16>>2]|0,c[b+16>>2]|0,(e|0)>(d|0)?d:e)|0;return ((a|0)==0?e-d|0:a)|0}function np(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;do if(!(a[f+3>>0]|0)){if(a[f+4>>0]|0){b[h+20>>1]=((op(g+4|0,h)|0)&255)+4;l=h+8|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;break}m=d[f+7>>0]|0;l=g+m|0;k=a[l>>0]|0;if(k<<24>>24>-1){l=k&255;c[n>>2]=l;k=1}else{k=im(l,n)|0;l=c[n>>2]|0}n=h;c[n>>2]=l;c[n+4>>2]=0;m=(k&255)+m|0;k=12}else{k=a[g>>0]|0;if(k<<24>>24>-1){l=k&255;c[n>>2]=l;k=1}else{k=im(g,n)|0;l=c[n>>2]|0}m=k&255;m=((op(g+m|0,h)|0)&255)+m|0;k=12}while(0);do if((k|0)==12){c[h+12>>2]=l;c[h+8>>2]=g+m;k=e[f+10>>1]|0;if(l>>>0>k>>>0){n=b[f+12>>1]|0;g=n&65535;l=(((l-g|0)>>>0)%(((c[(c[f+52>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+g|0;k=(l|0)>(k|0)?n:l&65535;b[h+16>>1]=k;k=m+(k&65535)|0;b[h+18>>1]=k;b[h+20>>1]=k+4;break}else{k=l+m|0;b[h+20>>1]=(k&65532)>>>0<4?4:k&65535;b[h+16>>1]=l;b[h+18>>1]=0;break}}while(0);i=o;return}function op(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=a[b>>0]|0;g=f&255;do if(g&128){f=d[b+1>>0]|0;if(!(f&128)){h=e;c[h>>2]=f|g<<7&16256;c[h+4>>2]=0;f=2;break}h=d[b+2>>0]|0;g=(h|g<<14)&2080895;if(!(h&128)){h=e;c[h>>2]=g|f<<7&16256;c[h+4>>2]=0;f=3;break}h=d[b+3>>0]|0;f=(h|f<<14)&2080895;if(!(h&128)){h=e;c[h>>2]=f|g<<7;c[h+4>>2]=0;f=4;break}k=d[b+4>>0]|0;h=k|g<<14;if(!(k&128)){i=e;c[i>>2]=h|f<<7;c[i+4>>2]=g>>>18;f=5;break}j=f|g<<7;g=d[b+5>>0]|0;i=g|f<<14;if(!(g&128)){f=e;c[f>>2]=i|h<<7&266354560;c[f+4>>2]=j>>>18;f=6;break}f=d[b+6>>0]|0;g=f|h<<14;if(!(f&128)){f=e;c[f>>2]=g&-266354561|i<<7&266354560;c[f+4>>2]=j>>>11;f=7;break}f=g&2080895;h=d[b+7>>0]|0;g=h|i<<14;if(!(h&128)){h=e;c[h>>2]=g&-266354561|f<<7;c[h+4>>2]=j>>>4;f=8;break}else{h=e;c[h>>2]=g<<8&532709120|f<<15|(d[b+8>>0]|0);c[h+4>>2]=k>>>3&15|j<<4;f=9;break}}else{g=e;c[g>>2]=f&255;c[g+4>>2]=0;f=1}while(0);return f|0}function pp(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();l=n+8|0;m=n;g=(d[a+1>>0]|0)<<16|(d[a>>0]|0)<<24|(d[a+2>>0]|0)<<8|(d[a+3>>0]|0);a=(d[a+5>>0]|0)<<16|(d[a+4>>0]|0)<<24|(d[a+6>>0]|0)<<8|(d[a+7>>0]|0);o=f;c[o>>2]=a;c[o+4>>2]=g;if((e|0)==6)a=4;else{c[k>>2]=a;c[k+4>>2]=g;h[l>>3]=+h[k>>3];h[m>>3]=+h[l>>3];a=+h[l>>3]!=+h[m>>3]?1:8}b[f+8>>1]=a;i=n;return}function qp(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(e>>>0>16777215|(e|0)==16777215&c>>>0>4294967295)){f=c;g=0;while(1){c=g+1|0;a[h+g>>0]=f|128;f=iw(f|0,e|0,7)|0;e=C;if((f|0)==0&(e|0)==0){e=g;break}else g=c}a[h>>0]=(d[h>>0]|0)&127;if((e|0)>-1){f=0;while(1){a[b+f>>0]=a[h+e>>0]|0;if((e|0)>0){f=f+1|0;e=e+-1|0}else break}}}else{a[b+8>>0]=c;c=iw(c|0,e|0,8)|0;f=C;e=7;while(1){a[b+e>>0]=c|128;c=iw(c|0,f|0,7)|0;if((e|0)<=0){c=9;break}else{f=C;e=e+-1|0}}}i=k;return c|0}function rp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if((c[b+44>>2]|0)>>>0>=d>>>0){f=$k(b,d,e,f)|0;if(!f){f=c[e>>2]|0;if((a[f>>0]|0)==0?(g=Xp(f)|0,(g|0)!=0):0){f=c[e>>2]|0;if(f)xg(c[f+68>>2]|0)}else g=0}else g=f}else{c[h>>2]=54788;c[h+4>>2]=10788;Zc(11,13600,h);g=11}i=k;return g|0}function sp(b){b=b|0;var d=0,e=0,f=0;if((a[b+12>>0]|0)==0?(d=b+60|0,e=c[d>>2]|0,((hc[c[(c[e>>2]|0)+48>>2]&127](e)|0)&4096|0)==0):0){d=c[d>>2]|0;e=c[(c[d>>2]|0)+44>>2]|0;if(e){d=hc[e&127](d)|0;if((d|0)<32)d=512;else f=6}else{d=4096;f=6}if((f|0)==6)d=(d|0)>65536?65536:d;c[b+148>>2]=d}else c[b+148>>2]=512;return}function tp(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=d+40|0;do if(!(c[j>>2]|0)){i=a[d+20>>0]|0;if(i<<24>>24){if(i&3){f=0;break}if(b[e+24>>1]&4){f=0;break}}c[e+12>>2]=0;do if(!(c[d+208>>2]|0)){if(!((b[e+24>>1]&4)==0?(a[d+16>>0]|0)!=3:0))k=11;if((k|0)==11?(g=vl(d,1)|0,(g|0)!=0):0){f=g;break}if(((c[e+20>>2]|0)>>>0>(c[d+24>>2]|0)>>>0?(Qo(e)|0)!=0:0)?(h=Ro(e)|0,(h|0)!=0):0){f=h;break}f=wl(d,e)|0;k=16}else{if((Qo(e)|0)!=0?(f=Ro(e)|0,(f|0)!=0):0)break;f=sl(d,e,0,0)|0;k=16}while(0);if((k|0)==16)if(!f){tl(e);f=0;break}g=f&255;if((g|0)==10|(g|0)==13){c[j>>2]=f;a[d+16>>0]=6}}else f=0;while(0);return f|0}function up(d){d=d|0;var e=0;e=c[d+8>>2]|0;if((a[e>>0]|0)!=0?(a[e>>0]=0,(b[d+26>>1]|0)>1):0)Xp(e)|0;return}function vp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;m=o+8|0;do if(!(c[h>>2]|0)){if(!e){c[n>>2]=53856;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;break}if(e>>>0<2)k=0;else{k=e+-2|0;k=k-((k>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+k|0}l=vg(c[b>>2]|0,k,m,0)|0;if(l){c[h>>2]=l;break}e=(e-k|0)*5|0;l=e+-5|0;do if((l|0)>=0){k=c[m>>2]|0;b=c[k+4>>2]|0;l=b+l|0;if((a[l>>0]|0)==f<<24>>24?(d[b+(e+-3)>>0]<<16|d[b+(e+-4)>>0]<<24|d[b+(e+-2)>>0]<<8|d[b+(e+-1)>>0]|0)==(g|0):0)break;m=Cg(k)|0;c[h>>2]=m;if(!m){a[l>>0]=f;a[b+(e+-4)>>0]=g>>>24;a[b+(e+-3)>>0]=g>>>16;a[b+(e+-2)>>0]=g>>>8;a[b+(e+-1)>>0]=g}}else{c[n>>2]=53867;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;k=c[m>>2]|0}while(0);if(k)xg(k)}while(0);i=o;return}function wp(a,b,c){a=a|0;b=b|0;c=c|0;return Gm(a,b,c,0)|0}function xp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;j=d[f>>0]&63;h=f+j|0;l=c[g+8>>2]|0;k=c[l>>2]|0;l=c[l+4>>2]|0;switch(d[f+1>>0]|0){case 1:{h=a[h>>0]|0;i=((h|0)<0)<<31>>31;m=11;break}case 6:{i=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];h=d[f+(j+5)>>0]<<16|d[f+(j+4)>>0]<<24|d[f+(j+6)>>0]<<8|d[f+(j+7)>>0];m=11;break}case 7:case 0:{h=Gm(b,f,g,0)|0;break}case 9:{i=0;h=1;m=11;break}case 3:{h=d[f+(j+1)>>0]<<8|a[h>>0]<<16|d[f+(j+2)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 4:{h=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 8:{i=0;h=0;m=11;break}case 2:{h=a[h>>0]<<8|d[f+(j+1)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 5:{i=a[h>>0]<<8|d[f+(j+1)>>0];h=d[f+(j+3)>>0]<<16|d[f+(j+2)>>0]<<24|d[f+(j+4)>>0]<<8|d[f+(j+5)>>0];m=11;break}default:h=Gm(b,f,g,0)|0}do if((m|0)==11){if((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>h>>>0){h=c[g+12>>2]|0;break}if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<h>>>0){h=c[g+16>>2]|0;break}if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}}while(0);return h|0}function yp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;l=o+8|0;h=f+1|0;k=a[h>>0]|0;if(k<<24>>24>-1){h=k&255;c[l>>2]=h}else{im(h,l)|0;h=c[l>>2]|0}do if((h|0)>=12){if(!(h&1)){h=c[g+16>>2]|0;break}l=d[f>>0]|0;m=(h+-12|0)/2|0;if((l+m|0)>(b|0)){c[n>>2]=68550;c[n+4>>2]=10788;Zc(11,13600,n);a[g+7>>0]=11;h=0;break}h=c[g+8>>2]|0;k=c[h+12>>2]|0;h=Vv(f+l|0,c[h+16>>2]|0,(m|0)>(k|0)?k:m)|0;if(h)if((h|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}if((m|0)==(k|0))if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}else if((m-k|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}}else h=c[g+12>>2]|0;while(0);i=o;return h|0}function zp(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;m=f+73|0;h=a[m>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[m>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[m>>0]=1,c[h>>2]=0,(i|0)>0):0)h=0;else n=9}else n=9;while(0);do if((n|0)==9){l=f+76|0;h=b[l>>1]|0;i=c[f+(h<<2)+120>>2]|0;h=f+(h<<1)+78|0;j=(b[h>>1]|0)+1<<16>>16;b[h>>1]=j;h=(a[i+5>>0]|0)!=0;if((j&65535)<(e[i+18>>1]|0)){if(h){h=0;break}h=Rm(f)|0;break}if(!h){h=d[i+6>>0]|0;i=c[i+56>>2]|0;h=nm(f,d[i+(h+9)>>0]<<16|d[i+(h+8)>>0]<<24|d[i+(h+10)>>0]<<8|d[i+(h+11)>>0])|0;if(h)break;h=Rm(f)|0;break}j=f+44|0;k=f+72|0;i=b[l>>1]|0;do{if(!(i<<16>>16)){n=15;break}h=c[f+(i<<16>>16<<2)+120>>2]|0;if(h){xg(c[h+68>>2]|0);i=b[l>>1]|0}i=i+-1<<16>>16;b[l>>1]=i;b[j>>1]=0;a[k>>0]=d[k>>0]&249;o=i<<16>>16;h=c[f+(o<<2)+120>>2]|0}while((e[f+(o<<1)+78>>1]|0)>=(e[h+18>>1]|0));if((n|0)==15){c[g>>2]=1;a[m>>0]=0;h=0;break}if(!(a[h+2>>0]|0))h=0;else h=zm(f,g)|0}while(0);return h|0}function Ap(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=f+73|0;h=a[p>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[p>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[p>>0]=1,c[h>>2]=0,(i|0)<0):0)h=0;else j=9}else j=9;while(0);a:do if((j|0)==9){o=f+76|0;k=b[o>>1]|0;l=k<<16>>16;j=c[f+(l<<2)+120>>2]|0;i=f+(l<<1)+78|0;h=b[i>>1]|0;if(!(a[j+5>>0]|0)){g=c[j+56>>2]|0;h=(h&65535)<<1;p=c[j+64>>2]|0;h=(d[p+h>>0]<<8|d[p+(h|1)>>0])&e[j+20>>1];h=nm(f,d[g+(h+1)>>0]<<16|d[g+h>>0]<<24|d[g+(h+2)>>0]<<8|d[g+(h+3)>>0])|0;if(h)break;h=Bp(f)|0;break}b:do if(!(h<<16>>16)){m=f+44|0;n=f+72|0;j=l;while(1){if(!(k<<16>>16))break;i=c[f+(j<<2)+120>>2]|0;if(!i)i=k;else{xg(c[i+68>>2]|0);i=b[o>>1]|0}k=i+-1<<16>>16;b[o>>1]=k;b[m>>1]=0;a[n>>0]=d[n>>0]&249;j=k<<16>>16;i=f+(j<<1)+78|0;h=b[i>>1]|0;if(h<<16>>16)break b}a[p>>0]=0;c[g>>2]=1;h=0;break a}while(0);b[i>>1]=h+-1<<16>>16;p=c[f+(b[o>>1]<<2)+120>>2]|0;if((a[p+2>>0]|0)!=0?(a[p+5>>0]|0)==0:0)h=Am(f,g)|0;else h=0}while(0);return h|0}function Bp(f){f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=f+76|0;do{h=b[i>>1]|0;g=c[f+(h<<2)+120>>2]|0;if(a[g+5>>0]|0){j=4;break}k=d[g+6>>0]|0;l=c[g+56>>2]|0;k=d[l+(k+9)>>0]<<16|d[l+(k+8)>>0]<<24|d[l+(k+10)>>0]<<8|d[l+(k+11)>>0];b[f+(h<<1)+78>>1]=b[g+18>>1]|0;g=nm(f,k)|0}while((g|0)==0);if((j|0)==4){b[f+(h<<1)+78>>1]=(e[g+18>>1]|0)+65535;g=0}return g|0}function Cp(a,d,e,f,g,h){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+224|0;if((i|0)>=(j|0))ba();m=o;k=o+8|0;c[k>>2]=0;do if(d){l=a+16|0;n=Bm(c[l>>2]|0,o+16|0,200,k)|0;if(n){Cm(c[l>>2]|0,e,d,n);if(!(b[n+4>>1]|0)){ig(c[(c[l>>2]|0)+12>>2]|0,c[k>>2]|0);c[m>>2]=53713;c[m+4>>2]=10788;Zc(11,13600,m);k=11;break}l=c[k>>2]|0;k=ym(a,n,e,f,g,h)|0;if(l)ig(c[(c[a+16>>2]|0)+12>>2]|0,l)}else k=7}else k=ym(a,0,e,f,g,h)|0;while(0);i=o;return k|0}function Dp(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+48|0;if((i|0)>=(j|0))ba();r=s+24|0;h=s;p=s+36|0;q=s+32|0;n=c[a+52>>2]|0;np(a,f,h);b[g>>1]=b[h+20>>1]|0;g=b[h+18>>1]|0;a:do if(g<<16>>16){k=g&65535;l=f+(k+3)|0;if(l>>>0>((c[a+56>>2]|0)+(e[a+20>>1]|0)|0)>>>0){c[r>>2]=58720;c[r+4>>2]=10788;Zc(11,13600,r);g=11;break}g=(c[n+36>>2]|0)+-4|0;g=(((c[h+12>>2]|0)+-1+g-(e[h+16>>1]|0)|0)>>>0)/(g>>>0)|0;if(g){m=n+44|0;a=g;k=d[f+(k+1)>>0]<<16|d[f+k>>0]<<24|d[f+(k+2)>>0]<<8|d[l>>0];while(1){a=a+-1|0;c[p>>2]=0;c[q>>2]=0;if(k>>>0<2)break;if(k>>>0>(c[m>>2]|0)>>>0)break;f=(a|0)==0;if(!f){g=Ip(n,k,q,p)|0;if(g)break a;g=c[q>>2]|0;if(g)l=13;else l=12}else l=12;if((l|0)==12){g=Up(n,k)|0;c[q>>2]=g;if(!g){g=0;l=15}else l=13}if((l|0)==13){l=0;if((b[(c[g+68>>2]|0)+26>>1]|0)==1)l=15;else{c[r>>2]=58754;c[r+4>>2]=10788;Zc(11,13600,r);g=11}}if((l|0)==15)g=Um(n,g,k)|0;h=c[q>>2]|0;if((h|0)!=0?(o=c[h+68>>2]|0,(o|0)!=0):0)xg(o);if(g)break a;if(f){g=0;break a}else k=c[p>>2]|0}c[r>>2]=58734;c[r+4>>2]=10788;Zc(11,13600,r);g=11}else g=0}else g=0;while(0);i=s;return g|0}function Ep(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();m=w;do if(!(c[k>>2]|0)){s=c[f+56>>2]|0;t=g<<1;u=c[f+64>>2]|0;v=u+t|0;l=(d[v>>0]|0)<<8|(d[u+(t|1)>>0]|0);n=f+6|0;o=d[n>>0]|0;p=s+(o+5)|0;q=s+(o+6)|0;if(l>>>0>=((d[p>>0]|0)<<8|(d[q>>0]|0))>>>0?(r=f+52|0,(l+h|0)>>>0<=(c[(c[r>>2]|0)+36>>2]|0)>>>0):0){h=yq(f,l&65535,h&65535)|0;if(h){c[k>>2]=h;break}h=f+18|0;l=(b[h>>1]|0)+-1<<16>>16;b[h>>1]=l;if(!(l<<16>>16)){k=s+(o+1)|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;a[s+(o+7)>>0]=0;a[p>>0]=(c[(c[r>>2]|0)+36>>2]|0)>>>8;a[q>>0]=c[(c[r>>2]|0)+36>>2];b[f+16>>1]=(c[(c[r>>2]|0)+36>>2]|0)+65528-(d[n>>0]|0)-(d[f+7>>0]|0);break}else{hw(v|0,u+(t+2)|0,(l&65535)-g<<1|0)|0;a[s+(o+3)>>0]=(e[h>>1]|0)>>>8;a[s+(o+4)>>0]=b[h>>1];s=f+16|0;b[s>>1]=(e[s>>1]|0)+2;break}}c[m>>2]=58991;c[m+4>>2]=10788;Zc(11,13600,m);c[k>>2]=11}while(0);i=w;return}function Fp(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();p=D;z=D+12|0;v=D+8|0;a:do if(!(c[n>>2]|0)){o=f+1|0;if((a[o>>0]|0)==0?(B=k+2|0,C=f+16|0,(B|0)<=(e[C>>1]|0)):0){l=Cg(c[f+68>>2]|0)|0;if(l){c[n>>2]=l;break}w=c[f+56>>2]|0;q=e[f+14>>1]|0;x=f+18|0;y=e[x>>1]<<1;s=g<<1;t=q+s|0;u=f+6|0;l=d[u>>0]|0;c[z>>2]=0;g=y+q|0;q=w+(l+5)|0;r=w+(l+6)|0;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;b:do if((g|0)>(o|0)){c[p>>2]=54326;c[p+4>>2]=10788;Zc(11,13600,p);l=11}else{p=g+2|0;do if((p|0)<=(o|0)){if((a[w+(l+1)>>0]|0)==0?(a[w+(l+2)>>0]|0)==0:0){A=20;break}c[v>>2]=0;g=zq(f,k,z,v)|0;l=c[z>>2]|0;if(l)break b;if(!(c[v>>2]|0))if(!g)A=20;else o=g-w|0;else A=21}else A=20;while(0);if((A|0)==20)if((p+k|0)>(o|0))A=21;else A=23;if((A|0)==21){l=Aq(f)|0;c[z>>2]=l;if(l)break;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;A=23}if((A|0)==23){o=o-k|0;a[q>>0]=o>>>8;a[r>>0]=o}b[x>>1]=(b[x>>1]|0)+1<<16>>16;b[C>>1]=(e[C>>1]|0)-B;l=w+o|0;gw(l|0,h|0,k|0)|0;if(m){a[l>>0]=m>>>24;a[w+(o+1)>>0]=m>>>16;a[w+(o+2)>>0]=m>>>8;a[w+(o+3)>>0]=m}m=w+t|0;hw(w+(t+2)|0,m|0,y-s|0)|0;a[m>>0]=o>>>8;a[w+(t+1)>>0]=o;a[w+((d[u>>0]|0)+3)>>0]=(e[x>>1]|0)>>>8;a[w+((d[u>>0]|0)+4)>>0]=b[x>>1];if(!(a[(c[f+52>>2]|0)+17>>0]|0))break a;Bq(f,h,n);break a}while(0);c[n>>2]=l;break}if(!l)l=h;else gw(l|0,h|0,k|0)|0;if(m){a[l>>0]=m>>>24;a[l+1>>0]=m>>>16;a[l+2>>0]=m>>>8;a[l+3>>0]=m}n=a[o>>0]|0;a[o>>0]=n+1<<24>>24;n=n&255;c[f+(n<<2)+32>>2]=l;b[f+(n<<1)+22>>1]=g}while(0);i=D;return}function Gp(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0;Oa=i;i=i+240|0;if((i|0)>=(j|0))ba();Na=Oa+24|0;Ka=Oa+200|0;Aa=Oa+188|0;za=Oa+168|0;ya=Oa+160|0;Ba=Oa+136|0;Ca=Oa+116|0;Ma=Oa+96|0;Ha=Oa+92|0;xa=Oa+229|0;wa=Oa+72|0;va=Oa+52|0;ua=Oa+206|0;Ga=Oa+48|0;Da=Oa;Fa=Oa+44|0;Ja=Oa+40|0;Ia=Oa+36|0;Ea=Oa+32|0;La=Oa+204|0;ta=Oa+216|0;ea=f+4|0;ma=(c[(c[ea>>2]|0)+36>>2]<<1>>>0)/3|0;na=f+76|0;qa=f+74|0;ra=ta+4|0;sa=ta;fa=f+124|0;ka=f+78|0;la=f+80|0;l=b[na>>1]|0;da=0;while(1){m=l<<16>>16;n=c[f+(m<<2)+120>>2]|0;o=n+1|0;h=(a[o>>0]|0)==0;if(!(l<<16>>16)){if(h){h=da;g=0;break}c[Ka>>2]=0;c[Aa>>2]=0;k=c[n+52>>2]|0;g=Cg(c[n+68>>2]|0)|0;c[Na>>2]=g;do if(!g){h=n+72|0;c[Na>>2]=ep(k,Ka,Aa,c[h>>2]|0,0)|0;l=c[Ka>>2]|0;Cq(n,l,Na);if(a[k+17>>0]|0)vp(k,c[Aa>>2]|0,5,c[h>>2]|0,Na);g=c[Na>>2]|0;if(!g){gw(l+22|0,n+22|0,d[o>>0]<<1|0)|0;gw(l+32|0,n+32|0,d[o>>0]<<2|0)|0;a[l+1>>0]=a[o>>0]|0;ll(n,d[c[l+56>>2]>>0]&247);g=d[n+6>>0]|0;$=c[n+56>>2]|0;_=c[Aa>>2]|0;a[$+(g+8)>>0]=_>>>24;a[$+(g+9)>>0]=_>>>16;a[$+(g+10)>>0]=_>>>8;a[$+(g+11)>>0]=_;c[fa>>2]=l;g=0;break}c[fa>>2]=0;if(l)xg(c[l+68>>2]|0)}else c[fa>>2]=0;while(0);if(g){h=da;break}b[na>>1]=1;b[ka>>1]=0;b[la>>1]=0;l=c[fa>>2]|0;k=l+1|0;if(!(a[k>>0]|0)){h=1;m=1;ca=15}else{p=1;m=1;o=k}}else if(h){h=l;l=n;k=o;ca=15}else{p=l;l=n}if((ca|0)==15){ca=0;if((e[l+16>>1]|0)>>>0>ma>>>0){p=h;o=k}else{h=da;g=0;break}}k=m+-1|0;aa=c[f+(k<<2)+120>>2]|0;k=b[f+(k<<1)+78>>1]|0;q=k&65535;g=Cg(c[aa+68>>2]|0)|0;do if(!g){if(((((a[l+3>>0]|0)!=0?(a[o>>0]|0)==1:0)?(ga=b[l+22>>1]|0,ha=l+18|0,ga<<16>>16==(b[ha>>1]|0)):0)?(ia=aa+72|0,(c[ia>>2]|0)!=1):0)?(ja=aa+18|0,(b[ja>>1]|0)==k<<16>>16):0){k=c[l+52>>2]|0;if(!(ga<<16>>16)){c[Na>>2]=59423;c[Na+4>>2]=10788;Zc(11,13600,Na);h=da;g=11;break}$=ep(k,Fa,Ia,0,0)|0;c[Ja>>2]=$;if(!$){h=c[l+32>>2]|0;c[Ea>>2]=h;g=Hp(l,h)|0;b[La>>1]=g;m=c[Fa>>2]|0;ll(m,13);Dq(m,1,Ea,La);b[m+16>>1]=65534-(g&65535)+(c[k+36>>2]|0)-(e[m+14>>1]|0);if((a[k+17>>0]|0)!=0?(vp(k,c[Ia>>2]|0,5,c[ia>>2]|0,Ja),(g&65535)>(e[m+12>>1]|0)):0)Bq(m,h,Ja);$=c[l+56>>2]|0;k=e[ha>>1]<<1;h=c[l+64>>2]|0;k=(d[h+(k+-2)>>0]<<8|d[h+(k+-1)>>0])&e[l+20>>1];h=$+k|0;c[Ea>>2]=h;k=$+(k+9)|0;while(1){g=h+1|0;if((a[h>>0]|0)<0&g>>>0<k>>>0)h=g;else break}c[Ea>>2]=g;k=h+10|0;m=ra;while(1){c[Ea>>2]=g+1;$=a[g>>0]|0;h=m+1|0;a[m>>0]=$;g=c[Ea>>2]|0;if(!($<<24>>24<0&g>>>0<k>>>0))break;else m=h}Fp(aa,e[ja>>1]|0,ta,h-sa|0,0,c[l+72>>2]|0,Ja);h=d[aa+6>>0]|0;$=c[aa+56>>2]|0;_=c[Ia>>2]|0;a[$+(h+8)>>0]=_>>>24;a[$+(h+9)>>0]=_>>>16;a[$+(h+10)>>0]=_>>>8;a[$+(h+11)>>0]=_;h=c[Fa>>2]|0;if(h)xg(c[h+68>>2]|0)}h=da;g=c[Ja>>2]|0;break}h=Co(c[(c[ea>>2]|0)+32>>2]|0)|0;X=p<<16>>16==1;n=d[qa>>0]|0;K=n&1;c[Ka>>2]=0;a[xa+0>>0]=0;a[xa+1>>0]=0;a[xa+2>>0]=0;a[xa+3>>0]=0;a[xa+4>>0]=0;Z=c[aa+52>>2]|0;if(!h)g=7;else{B=aa+1|0;p=d[B>>0]|0;Y=aa+18|0;g=e[Y>>1]|0;m=g+p|0;if((m|0)<2){_=m;T=0}else{do if(k<<16>>16)if((m|0)==(q|0)){n=(n|-2)+q|0;break}else{n=q+-1|0;break}else n=0;while(0);_=2-K|0;T=n}$=_+1|0;n=T-p+_|0;A=aa+56|0;p=c[A>>2]|0;if((n|0)==(g|0))q=(d[aa+6>>0]|0)+8|0;else{q=n<<1;W=c[aa+64>>2]|0;q=(d[W+q>>0]<<8|d[W+(q|1)>>0])&e[aa+20>>1]}Q=p+q|0;O=p+(q+1)|0;P=p+(q+2)|0;D=p+(q+3)|0;W=d[O>>0]<<16|d[Q>>0]<<24|d[P>>0]<<8|d[D>>0];c[Ha>>2]=W;q=Aa+(_<<2)|0;W=rp(Z,W,q,0)|0;c[Ka>>2]=W;a:do if(!W){t=aa+22|0;w=aa+32|0;x=aa+20|0;y=aa+64|0;z=Z+22|0;N=Z+36|0;u=_;p=0;while(1){k=c[q>>2]|0;p=p+1+(e[k+18>>1]|0)+(d[k+1>>0]|0)|0;k=u+-1|0;if(!u)break;v=k+T|0;q=a[B>>0]|0;if((v|0)==(e[t>>1]|0))if(!(q<<24>>24)){q=0;ca=52}else{W=c[w>>2]|0;c[ya+(k<<2)>>2]=W;n=d[W+1>>0]<<16|d[W>>0]<<24|d[W+2>>0]<<8|d[W+3>>0];c[Ha>>2]=n;c[Ma+(k<<2)>>2]=(Hp(aa,W)|0)&65535;a[B>>0]=0}else ca=52;if((ca|0)==52){ca=0;n=c[A>>2]|0;r=v-(q&255)<<1;m=c[y>>2]|0;r=(d[m+r>>0]<<8|d[m+(r|1)>>0])&e[x>>1];m=n+r|0;g=ya+(k<<2)|0;c[g>>2]=m;n=d[n+(r+1)>>0]<<16|d[m>>0]<<24|d[n+(r+2)>>0]<<8|d[n+(r+3)>>0];c[Ha>>2]=n;s=(Hp(aa,m)|0)&65535;c[Ma+(k<<2)>>2]=s;if(b[z>>1]&4){if((s+r|0)>(c[N>>2]|0)){k=u;ca=54;break}gw(h+r|0,m|0,s|0)|0;c[g>>2]=h+(m-(c[A>>2]|0));q=a[B>>0]|0}Ep(aa,v-(q&255)|0,s,Ka)}q=Aa+(k<<2)|0;W=rp(Z,n,q,0)|0;c[Ka>>2]=W;if(W){ca=47;break a}else u=k}if((ca|0)==54){ca=0;c[Na>>2]=59766;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;bw(Aa|0,0,k<<2|0)|0;m=0;n=0;break}q=p+3&-4;W=ci((c[Z+32>>2]|0)+(q*6|0)|0)|0;if(!W){c[Ka>>2]=7;m=W;n=0;break}U=W+(q<<2)|0;G=U+(q<<1)|0;J=c[Aa>>2]|0;R=d[J+5>>0]<<2;V=R&65535;S=a[J+3>>0]|0;C=S&255;if((_|0)>-1){F=S<<24>>24!=0;H=J;n=0;I=0;p=0;while(1){E=e[H+18>>1]|0;M=a[H+1>>0]|0;A=M&255;B=A+E|0;if(!(M<<24>>24)){g=c[H+56>>2]|0;if((B|0)>0){v=e[H+20>>1]|0;u=e[H+14>>1]|0;t=0;s=p;while(1){M=(t<<1)+u|0;M=g+((d[g+M>>0]<<8|d[g+(M+1)>>0])&v)|0;c[W+(s<<2)>>2]=M;b[U+(s<<1)>>1]=Hp(H,M)|0;t=t+1|0;if((t|0)==(E|0))break;else s=s+1|0}p=E+p|0}}else if((B|0)>0){w=H+56|0;u=H+20|0;t=H+64|0;s=0;g=p;while(1){v=s;z=A;b:while(1){while(1){x=z+-1|0;if((z|0)<=0){ca=72;break b}z=e[H+(x<<1)+22>>1]|0;if((z|0)>(v|0))z=x;else{y=z;z=x;break}}if((y|0)==(v|0)){ca=71;break}else v=v+-1|0}if((ca|0)==71){ca=0;v=c[H+(z<<2)+32>>2]|0}else if((ca|0)==72){ca=0;v=v<<1;M=c[t>>2]|0;v=(c[w>>2]|0)+((d[M+v>>0]<<8|d[M+(v|1)>>0])&e[u>>1])|0}c[W+(g<<2)>>2]=v;b[U+(g<<1)>>1]=Hp(H,v)|0;s=s+1|0;if((s|0)==(B|0))break;else g=g+1|0}p=E+p+A|0}c[Ca+(n<<2)>>2]=p;if((n|0)>=(_|0)|F)q=I;else{k=c[Ma+(n<<2)>>2]|0;r=U+(p<<1)|0;b[r>>1]=k;k=k&65535;q=k+I|0;gw(G+I|0,c[ya+(n<<2)>>2]|0,k|0)|0;k=W+(p<<2)|0;c[k>>2]=G+(I+R);m=(e[r>>1]|0)-R|0;b[r>>1]=m;do if(!(a[H+5>>0]|0)){M=c[k>>2]|0;L=(c[H+56>>2]|0)+8|0;L=d[L>>0]|d[L+1>>0]<<8|d[L+2>>0]<<16|d[L+3>>0]<<24;a[M>>0]=L;a[M+1>>0]=L>>8;a[M+2>>0]=L>>16;a[M+3>>0]=L>>24}else{if((m&65532)>>>0>=4)break;a[G+q>>0]=0;b[r>>1]=4;q=q+1|0}while(0);p=p+1|0}n=n+1|0;if((n|0)>=($|0))break;H=c[Aa+(n<<2)>>2]|0;I=q}q=R+-12+(c[N>>2]|0)|0;if((p|0)>0){r=F<<31>>31;m=0;k=0;n=0;do{g=n+2+(e[U+(m<<1)>>1]|0)|0;if((g|0)>(q|0)){c[Ma+(k<<2)>>2]=n;c[Ba+(k<<2)>>2]=m;if((k|0)>3){ca=91;break}else{m=m+r|0;k=k+1|0;n=0}}else n=g;m=m+1|0}while((m|0)<(p|0));if((ca|0)==91){ca=0;c[Na>>2]=59904;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;m=W;n=0;break}c[Ma+(k<<2)>>2]=n;c[Ba+(k<<2)>>2]=p;if((k|0)>0){B=(K|0)==0;m=k;do{s=Ma+(m<<2)|0;m=m+-1|0;g=Ma+(m<<2)|0;t=Ba+(m<<2)|0;x=c[t>>2]|0;A=c[g>>2]|0;r=n;while(1){w=x+-1|0;v=x-C|0;if(r){if(!B){n=A;break}y=b[U+(v<<1)>>1]|0;z=r+2|0;v=b[U+(w<<1)>>1]|0;u=A+-2|0;if(((y&65535)+z|0)>(u-(v&65535)|0)){n=A;break}}else{u=A+-2|0;z=2;y=b[U+(v<<1)>>1]|0;v=b[U+(w<<1)>>1]|0}c[t>>2]=w;x=w;A=u-(v&65535)|0;r=(y&65535)+z|0}c[s>>2]=r;c[g>>2]=n}while((m|0)>0);I=1;M=q;L=p}else{I=1;M=q;L=p}}else ca=93}else{q=R+-12+(c[N>>2]|0)|0;p=0;ca=93}if((ca|0)==93){ca=0;c[Ma>>2]=0;c[Ba>>2]=p;I=0;M=q;k=0;L=p}if((c[J+72>>2]|0)>>>0<2){c[Na>>2]=59963;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;m=W;n=0;break}E=d[c[J+56>>2]>>0]|0;if((k|0)>-1){s=(K|0)!=0;g=Z+17|0;m=aa+72|0;u=0;n=0;while(1){do if((u|0)<($|0)){J=Aa+(u<<2)|0;K=c[J>>2]|0;c[za+(u<<2)>>2]=K;c[Ga>>2]=K;c[J>>2]=0;K=Cg(c[K+68>>2]|0)|0;c[Ka>>2]=K;n=n+1|0;if(K){m=W;break a}}else{K=ep(Z,Ga,Ha,s?1:c[Ha>>2]|0,0)|0;c[Ka>>2]=K;if(K){m=W;break a}q=c[Ga>>2]|0;ll(q,E);c[za+(u<<2)>>2]=q;n=n+1|0;c[Ca+(u<<2)>>2]=L;if(!(a[g>>0]|0))break;vp(Z,c[q+72>>2]|0,5,c[m>>2]|0,Ka);if(c[Ka>>2]|0){m=W;break a}}while(0);if((u|0)<(k|0))u=u+1|0;else break}if((n|0)>0){p=0;c:do{K=c[za+(p<<2)>>2]|0;q=c[K+72>>2]|0;c[wa+(p<<2)>>2]=q;c[va+(p<<2)>>2]=q;b[ua+(p<<1)>>1]=b[(c[K+68>>2]|0)+24>>1]|0;if((p|0)>0){m=0;do{if((c[wa+(m<<2)>>2]|0)==(q|0)){ca=118;break c}m=m+1|0}while((m|0)<(p|0))}p=p+1|0}while((p|0)<(n|0));if((ca|0)==118){ca=0;c[Na>>2]=60018;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;m=W;break}r=(n|0)>1;m=Z+44|0;k=0;do{if(r){p=0;q=1;do{p=(c[va+(q<<2)>>2]|0)>>>0<(c[va+(p<<2)>>2]|0)>>>0?q:p;q=q+1|0}while((q|0)!=(n|0))}else p=0;K=va+(p<<2)|0;q=c[K>>2]|0;c[K>>2]=-1;if((p|0)!=(k|0)){if((p|0)>(k|0)){J=c[(c[za+(p<<2)>>2]|0)+68>>2]|0;K=p+1+(c[m>>2]|0)|0;b[J+24>>1]=0;Vp(J,K)}K=c[za+(k<<2)>>2]|0;J=c[K+68>>2]|0;b[J+24>>1]=b[ua+(p<<1)>>1]|0;Vp(J,q);c[K+72>>2]=q}k=k+1|0}while((k|0)!=(n|0));c[Ha>>2]=q;K=0}else K=1}else{K=1;n=0}H=n+-1|0;q=c[za+(H<<2)>>2]|0;J=c[q+72>>2]|0;a[Q>>0]=J>>>24;a[O>>0]=J>>>16;a[P>>0]=J>>>8;a[D>>0]=J;if(!((E&8|0)!=0|($|0)==(n|0))){Q=(c[q+56>>2]|0)+8|0;P=(c[(c[((n|0)>($|0)?za:Aa)+(_<<2)>>2]|0)+56>>2]|0)+8|0;P=d[P>>0]|d[P+1>>0]<<8|d[P+2>>0]<<16|d[P+3>>0]<<24;a[Q>>0]=P;a[Q+1>>0]=P>>8;a[Q+2>>0]=P>>16;a[Q+3>>0]=P>>24}J=Z+17|0;if((a[J>>0]|0)!=0?(oa=c[za>>2]|0,pa=c[N>>2]|0,I):0){A=S<<24>>24==0;y=A&1;x=V<<16>>16==0;v=c[oa+56>>2]|0;u=(e[oa+18>>1]|0)+(d[oa+1>>0]|0)|0;w=0;t=0;p=0;r=oa;while(1){z=c[W+(w<<2)>>2]|0;if((w|0)==(u|0)){p=p+1|0;if((p|0)<(n|0))q=za+(p<<2)|0;else q=Aa+(p<<2)|0;u=c[q>>2]|0;v=c[u+56>>2]|0;u=w+y+(e[u+18>>1]|0)+(d[u+1>>0]|0)|0}if((w|0)==(c[Ba+(t<<2)>>2]|0)){q=t+1|0;r=c[za+(q<<2)>>2]|0;if(!A)ca=142}else{q=t;ca=142}do if((ca|0)==142){ca=0;if((p|0)<(n|0)?(z>>>0>=v>>>0?(c[r+72>>2]|0)==(c[wa+(p<<2)>>2]|0):0)&z>>>0<(v+pa|0)>>>0:0)break;if(x)vp(Z,d[z+1>>0]<<16|d[z>>0]<<24|d[z+2>>0]<<8|d[z+3>>0],5,c[r+72>>2]|0,Ka);if((e[U+(w<<1)>>1]|0)<=(e[r+12>>1]|0))break;Bq(r,z,Ka)}while(0);w=w+1|0;if((w|0)==(L|0))break;else t=q}}if((H|0)>0){s=S<<24>>24==0;u=0;v=0;while(1){t=c[za+(u<<2)>>2]|0;p=c[Ba+(u<<2)>>2]|0;m=c[W+(p<<2)>>2]|0;k=b[U+(p<<1)>>1]|0;q=(k&65535)+R|0;r=h+v|0;do if(!(a[t+5>>0]|0)){p=(c[t+56>>2]|0)+8|0;Q=d[m>>0]|d[m+1>>0]<<8|d[m+2>>0]<<16|d[m+3>>0]<<24;a[p>>0]=Q;a[p+1>>0]=Q>>8;a[p+2>>0]=Q>>16;a[p+3>>0]=Q>>24;p=r}else{if(!s){np(t,c[W+(p+-1<<2)>>2]|0,Da);q=Da;m=r;p=0;q=(lm(h+(v+4)|0,c[q>>2]|0,c[q+4>>2]|0)|0)+4|0;break}g=m+-4|0;if(k<<16>>16!=4){m=g;p=r;break}m=g;p=r;q=(Hp(aa,g)|0)&65535}while(0);Fp(aa,u+T|0,m,q,p,c[t+72>>2]|0,Ka);if(c[Ka>>2]|0){m=W;break a}u=u+1|0;if((u|0)>=(H|0))break;else v=q+v|0}}q=1-n|0;if((q|0)<(n|0)){I=c[Ba>>2]|0;H=S<<24>>24==0&1;do{F=(q|0)<0?0-q|0:q;G=xa+F|0;do if(!(a[G>>0]|0)){if((q|0)<=-1?(T=F+-1|0,(c[Ca+(T<<2)>>2]|0)<(c[Ba+(T<<2)>>2]|0)):0)break;if(!F){E=0;m=0;D=I}else{p=F+-1|0;if((F|0)<($|0))m=(c[Ca+(p<<2)>>2]|0)+H|0;else m=L;D=(c[Ba+(p<<2)>>2]|0)+H|0;E=D;D=(c[Ba+(F<<2)>>2]|0)-D|0}B=c[za+(F<<2)>>2]|0;s=c[B+56>>2]|0;g=d[B+6>>0]|0;k=B+64|0;p=(c[k>>2]|0)+(D<<1)|0;r=B+18|0;v=e[r>>1]|0;C=B+1|0;u=v+m+(d[C>>0]|0)|0;t=D+E|0;if((m|0)<(E|0)){T=Eq(B,E-m|0,W+(m<<2)|0,U+(m<<1)|0)|0;S=c[k>>2]|0;hw(S|0,S+(T<<1)|0,v<<1|0)|0;v=v-T|0}if((u|0)>(t|0))v=v-(Eq(B,u-t|0,W+(t<<2)|0,U+(t<<1)|0)|0)|0;x=s+(g+5)|0;w=s+(g+6)|0;T=s+(((d[x>>0]<<8|d[w>>0])+65535&65535)+1)|0;c[Na>>2]=T;d:do if(T>>>0<p>>>0)ca=181;else{if((E|0)<(m|0)){u=m-E|0;u=(u|0)>(D|0)?D:u;T=c[k>>2]|0;hw(T+(u<<1)|0,T|0,v<<1|0)|0;if(Fq(B,p,Na,T,u,W+(E<<2)|0,U+(E<<1)|0)|0){ca=181;break}v=v+u|0}u=a[C>>0]|0;if(u<<24>>24){A=0;do{z=(e[B+(A<<1)+22>>1]|0)+m|0;y=z-E|0;if((y|0)>-1&(y|0)<(D|0)){S=y<<1;R=c[k>>2]|0;T=R+S|0;hw(R+(S+2)|0,T|0,v-y<<1|0)|0;if(Fq(B,p,Na,T,1,W+(z<<2)|0,U+(z<<1)|0)|0){ca=181;break d}u=a[C>>0]|0;v=v+1|0}A=A+1|0}while((A|0)<(u&255|0))}T=v+E|0;if(Fq(B,p,Na,(c[k>>2]|0)+(v<<1)|0,D-v|0,W+(T<<2)|0,U+(T<<1)|0)|0){ca=181;break}T=D&65535;b[r>>1]=T;a[C>>0]=0;a[s+(g+3)>>0]=(T&65535)>>>8;a[s+(g+4)>>0]=b[r>>1];T=(c[Na>>2]|0)-s|0;a[x>>0]=T>>>8;a[w>>0]=T}while(0);if((ca|0)==181){ca=0;Dq(B,D,W+(E<<2)|0,U+(E<<1)|0)}a[G>>0]=1;b[B+16>>1]=M-(c[Ma+(F<<2)>>2]|0)}while(0);q=q+1|0}while((q|0)!=(n|0))}do if(X){if(b[Y>>1]|0){ca=191;break}m=c[za>>2]|0;if((d[aa+6>>0]|0)>>>0>(e[m+16>>1]|0)>>>0){ca=191;break}c[Ka>>2]=Aq(m)|0;Cq(m,aa,Ka);if(c[Ka>>2]|0)break;c[Ka>>2]=Um(c[m+52>>2]|0,m,c[m+72>>2]|0)|0}else ca=191;while(0);do if((ca|0)==191){ca=0;if((a[J>>0]|0)==0|V<<16>>16!=0|K)break;else m=0;do{Y=c[za+(m<<2)>>2]|0;X=c[Y+56>>2]|0;vp(Z,d[X+9>>0]<<16|d[X+8>>0]<<24|d[X+10>>0]<<8|d[X+11>>0],5,c[Y+72>>2]|0,Ka);m=m+1|0}while((m|0)!=(n|0))}while(0);if((n|0)>=($|0)){m=W;break}m=c[Ka>>2]|0;g=n;do{k=c[Aa+(g<<2)>>2]|0;if(!m){m=Um(c[k+52>>2]|0,k,c[k+72>>2]|0)|0;c[Ka>>2]=m}g=g+1|0}while((g|0)!=($|0));m=W}else{k=_;ca=47}while(0);if((ca|0)==47){ca=0;bw(Aa|0,0,(k<<2)+4|0)|0;m=0;n=0}di(m);if((_|0)>-1){k=0;do{m=c[Aa+(k<<2)>>2]|0;if(m)xg(c[m+68>>2]|0);k=k+1|0}while((k|0)<($|0))}if((n|0)>0){k=0;do{g=c[za+(k<<2)>>2]|0;if(g)xg(c[g+68>>2]|0);k=k+1|0}while((k|0)!=(n|0))}g=c[Ka>>2]|0}if(da)Xk(da)}else h=da;while(0);a[o>>0]=0;if(l)xg(c[l+68>>2]|0);l=(b[na>>1]|0)+-1<<16>>16;b[na>>1]=l;if(g)break;else da=h}if(h)Xk(h);i=Oa;return g|0}function Hp(b,f){b=b|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=d[b+7>>0]|0;h=f+g|0;do if(!(a[b+4>>0]|0)){j=a[h>>0]|0;i=j&255;if(j<<24>>24<0){j=f+(g+9)|0;g=i&127;do{h=h+1|0;i=a[h>>0]|0;g=i&127|g<<7}while(i<<24>>24<0&h>>>0<j>>>0)}else g=i;i=h+1|0;if(a[b+2>>0]|0){k=h+10|0;j=i;while(1){i=h+2|0;if((a[j>>0]|0)<0&i>>>0<k>>>0){h=j;j=i}else break}}h=e[b+10>>1]|0;if(g>>>0>h>>>0){j=e[b+12>>1]|0;g=(((g-j|0)>>>0)%(((c[(c[b+52>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+j|0;g=(i-f&65535)+4+(g>>>0>h>>>0?j:g)|0;break}else{g=i-f+g|0;g=g>>>0<4?4:g;break}}else{i=f+(g+9)|0;while(1){g=h+1|0;if((a[h>>0]|0)<0&g>>>0<i>>>0)h=g;else break}g=g-f|0}while(0);return g&65535|0}function Ip(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();q=s+4|0;p=s;o=s+8|0;c[q>>2]=0;if(a[b+17>>0]|0){h=((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0;m=b+36|0;n=e;while(1){l=n+1|0;if(l>>>0<2)k=0;else{k=n+-1|0;k=k-((k>>>0)%(((((c[m>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((k|0)==(l|0)|(n|0)==(h|0))n=l;else break}if(l>>>0<=(c[b+44>>2]|0)>>>0){n=dp(b,l,o,p)|0;m=(n|0)==0;k=m&(a[o>>0]|0)==4&(c[p>>2]|0)==(e|0);l=k?l:0;if(k|m^1){h=0;k=k?101:n}else r=8}else{l=0;r=8}}else{l=0;r=8}if((r|0)==8){k=$k(b,e,q,(f|0)==0?2:0)|0;h=c[q>>2]|0;if(!k){l=c[h+56>>2]|0;l=d[l+1>>0]<<16|d[l>>0]<<24|d[l+2>>0]<<8|d[l+3>>0];k=0}}c[g>>2]=l;if(!f){if(h)xg(c[h+68>>2]|0)}else c[f>>2]=h;i=s;return ((k|0)==101?0:k)|0}function Jp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;f=(b|0)!=0;a:do if(d)if(f){f=h;while(1){g=d+8|0;while(1){if((Sp(a,b+8|0,c[b>>2]|0,g,c[d>>2]|0)|0)>=1)break;c[f>>2]=b;f=b+4|0;b=c[f>>2]|0;if(!b){b=0;g=0;break a}else g=0}c[f>>2]=d;f=d+4|0;d=c[f>>2]|0;if(!d){d=0;g=1;break a}if(!b){b=0;g=0;break}}}else{g=f;f=h}else{d=0;g=f;f=h}while(0);c[f>>2]=g?b:d;c[e>>2]=c[h>>2];i=k;return}function Kp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g+8|0;e=g;d=c[2252]|0;if((d|0)!=0?(hc[d&127](202)|0)!=0:0)d=3338;else{d=ip(c[a>>2]|0,0,b,4126,f)|0;c[f>>2]=d;if(!d){d=e;c[d>>2]=0;c[d+4>>2]=0;d=c[b>>2]|0;Yb[c[(c[d>>2]|0)+40>>2]&63](d,18,e)|0;d=c[f>>2]|0}}i=g;return d|0}function Lp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+0|0;h=g+40|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));g=((d|0)<0)<<31>>31;h=mg(d,g)|0;c[b+4>>2]=h;if(!h)c[b>>2]=7;else{h=nw(e|0,f|0,d|0,g|0)|0;c[b+12>>2]=h;c[b+16>>2]=h;h=$v(e|0,f|0,h|0,((h|0)<0)<<31>>31|0)|0;g=b+24|0;c[g>>2]=h;c[g+4>>2]=C;c[b+8>>2]=d;c[b+32>>2]=a}return}function Mp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;a:do if((d|0)>0){f=a+8|0;h=a+16|0;i=a+4|0;j=a+32|0;k=a+12|0;l=a+24|0;m=d;do{if(c[a>>2]|0)break a;g=c[h>>2]|0;e=(c[f>>2]|0)-g|0;e=(m|0)>(e|0)?e:m;gw((c[i>>2]|0)+g|0,b+(d-m)|0,e|0)|0;g=(c[h>>2]|0)+e|0;c[h>>2]=g;if((g|0)==(c[f>>2]|0)){q=c[j>>2]|0;o=c[k>>2]|0;p=(c[i>>2]|0)+o|0;n=l;n=fw(c[n>>2]|0,c[n+4>>2]|0,o|0,((o|0)<0)<<31>>31|0)|0;c[a>>2]=pc[c[(c[q>>2]|0)+12>>2]&31](q,p,g-o|0,n,C)|0;c[h>>2]=0;c[k>>2]=0;n=c[f>>2]|0;g=l;n=fw(c[g>>2]|0,c[g+4>>2]|0,n|0,((n|0)<0)<<31>>31|0)|0;g=l;c[g>>2]=n;c[g+4>>2]=C}m=m-e|0}while((m|0)>0)}while(0);return}function Np(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;f=a+4|0;if(((c[a>>2]|0)==0?(e=c[f>>2]|0,(e|0)!=0):0)?(d=c[a+16>>2]|0,g=c[a+12>>2]|0,(d|0)>(g|0)):0){i=c[a+32>>2]|0;h=a+24|0;h=fw(c[h>>2]|0,c[h+4>>2]|0,g|0,((g|0)<0)<<31>>31|0)|0;c[a>>2]=pc[c[(c[i>>2]|0)+12>>2]&31](i,e+g|0,d-g|0,h,C)|0}e=a+24|0;d=c[a+16>>2]|0;e=fw(d|0,((d|0)<0)<<31>>31|0,c[e>>2]|0,c[e+4>>2]|0)|0;d=b;c[d>>2]=e;c[d+4>>2]=C;Sc(c[f>>2]|0);f=c[a>>2]|0;d=a+0|0;e=d+40|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(e|0));return f|0}function Op(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[2252]|0;if((g|0)!=0?(hc[g&127](201)|0)!=0:0)g=266;else{h=b+44|0;if(c[h>>2]|0)c[h>>2]=0;n=b;c[n>>2]=e;c[n+4>>2]=f;n=d+8|0;l=c[n>>2]|0;n=c[n+4>>2]|0;j=b+8|0;k=j;c[k>>2]=l;c[k+4>>2]=n;d=c[d>>2]|0;k=b+24|0;c[k>>2]=d;a=a+8|0;g=c[a>>2]|0;i=c[(c[g+24>>2]|0)+136>>2]|0;m=((i|0)<0)<<31>>31;if(!((n|0)>(m|0)|(n|0)==(m|0)&l>>>0>i>>>0)?(c[c[d>>2]>>2]|0)>2:0){c[h>>2]=0;g=c[a>>2]|0}i=c[g+12>>2]|0;d=((i|0)<0)<<31>>31;f=nw(e|0,f|0,i|0,d|0)|0;a=b+36|0;g=c[a>>2]|0;if(!g){g=mg(i,d)|0;c[a>>2]=g;c[b+40>>2]=i;e=g;g=(g|0)==0?7:0}else{e=g;g=0}if((g|0)==0&(f|0)!=0){g=i-f|0;i=b;h=c[i>>2]|0;i=c[i+4>>2]|0;b=fw(h|0,i|0,g|0,((g|0)<0)<<31>>31|0)|0;l=C;d=j;a=c[d>>2]|0;d=c[d+4>>2]|0;if((l|0)>(d|0)|(l|0)==(d|0)&b>>>0>a>>>0)g=$v(a|0,d|0,h|0,i|0)|0;k=c[k>>2]|0;g=pc[c[(c[k>>2]|0)+8>>2]&31](k,e+f|0,g,h,i)|0}}return g|0}function Pp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();k=l+8|0;h=l;f=c[b+44>>2]|0;e=b;g=c[e>>2]|0;a:do if(!f){f=c[b+40>>2]|0;e=nw(g|0,c[e+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;if((e|0)!=0&(f-e|0)>8){f=(op((c[b+36>>2]|0)+e|0,d)|0)&255;e=b;f=fw(c[e>>2]|0,c[e+4>>2]|0,f|0,0)|0;e=b;c[e>>2]=f;c[e+4>>2]=C;e=0;break}else f=0;while(1){e=Gq(b,1,h)|0;if(e)break a;e=a[c[h>>2]>>0]|0;a[k+(f&15)>>0]=e;if(e<<24>>24<0)f=f+1|0;else break}op(k,d)|0;e=0}else{f=(op(f+g|0,d)|0)&255;e=b;f=fw(c[e>>2]|0,c[e+4>>2]|0,f|0,0)|0;e=b;c[e>>2]=f;c[e+4>>2]=C;e=0}while(0);i=l;return e|0}function Qp(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;d=g;c[d>>2]=0;c[d+4>>2]=0;d=a;f=c[d+4>>2]|0;b=a+8|0;e=c[b+4>>2]|0;do if((f|0)<(e|0)|((f|0)==(e|0)?(c[d>>2]|0)>>>0<(c[b>>2]|0)>>>0:0))h=9;else{d=c[a+48>>2]|0;if(d){b=Hq(d)|0;l=d+32|0;f=d+48|0;c[l+0>>2]=c[f+0>>2];c[l+4>>2]=c[f+4>>2];c[l+8>>2]=c[f+8>>2];c[l+12>>2]=c[f+12>>2];l=d+40|0;f=d+8|0;e=c[f>>2]|0;f=c[f+4>>2]|0;if((c[l>>2]|0)==(e|0)?(c[l+4>>2]|0)==(f|0):0)c[d+20>>2]=1;if(!b)if(!(c[d+20>>2]|0)){b=Op(c[d>>2]|0,a,d+32|0,e,f)|0;if(!b){h=9;break}else break}else b=0}else b=0;Rp(a)}while(0);if((h|0)==9){b=Pp(a,g)|0;if(!b){b=c[g>>2]|0;c[a+20>>2]=b;b=Gq(a,b,a+32|0)|0}}i=k;return b|0}function Rp(a){a=a|0;var b=0;Sc(c[a+28>>2]|0);Sc(c[a+36>>2]|0);Om(c[a+48>>2]|0);a=a+0|0;b=a+56|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function Sp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=c[a+12>>2]|0;if(e)Cm(c[(c[a+8>>2]|0)+28>>2]|0,f,e,g);return Gm(d,b,g,0)|0}function Tp(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();m=w;l=w+8|0;s=w+12|0;do if((c[f+44>>2]|0)>>>0>=g>>>0){g=rp(f,g,l,0)|0;if(!g){u=c[l>>2]|0;t=u+9|0;a:do if(!(a[t>>0]|0)){a[t>>0]=1;q=d[u+6>>0]|0;o=u+18|0;l=b[o>>1]|0;if(!(l<<16>>16)){l=l&65535;g=u+5|0}else{n=0;while(1){m=c[u+56>>2]|0;l=n<<1;g=c[u+64>>2]|0;l=(d[g+l>>0]<<8|d[g+(l|1)>>0])&e[u+20>>1];g=m+l|0;p=u+5|0;if((a[p>>0]|0)==0?(r=Tp(f,d[m+(l+1)>>0]<<16|d[g>>0]<<24|d[m+(l+2)>>0]<<8|d[m+(l+3)>>0],1,k)|0,(r|0)!=0):0){g=r;v=21;break a}g=Dp(u,g,s)|0;n=n+1|0;if(g){v=21;break a}l=e[o>>1]|0;if((n|0)>=(l|0)){g=p;break}}}if(!(a[g>>0]|0)){g=c[u+56>>2]|0;g=Tp(f,d[g+(q+9)>>0]<<16|d[g+(q+8)>>0]<<24|d[g+(q+10)>>0]<<8|d[g+(q+11)>>0],1,k)|0;if(!g)v=16}else if(!k)v=16;else{c[k>>2]=(c[k>>2]|0)+l;v=16}if((v|0)==16){if(h){g=Um(c[u+52>>2]|0,u,c[u+72>>2]|0)|0;v=21;break}g=Cg(c[u+68>>2]|0)|0;if(!g){ll(u,d[(c[u+56>>2]|0)+q>>0]|8);g=0;v=21;break}}a[t>>0]=0}else{c[m>>2]=60971;c[m+4>>2]=10788;Zc(11,13600,m);g=11;v=21}while(0);if((v|0)==21){a[t>>0]=0;if(!u)break}xg(c[u+68>>2]|0)}}else{c[m>>2]=60966;c[m+4>>2]=10788;Zc(11,13600,m);g=11}while(0);i=w;return g|0}function Up(b,d){b=b|0;d=d|0;var e=0,f=0;f=(c[b>>2]|0)+204|0;e=Yb[c[8744+132>>2]&63](c[(c[f>>2]|0)+40>>2]|0,d,0)|0;e=el(c[f>>2]|0,d,e)|0;if(!e)e=0;else{f=c[e+8>>2]|0;c[f+56>>2]=c[e+4>>2];c[f+68>>2]=e;c[f+52>>2]=b;c[f+72>>2]=d;a[f+6>>0]=(d|0)==1?100:0;e=f}return e|0}function Vp(a,d){a=a|0;d=d|0;var e=0;e=a+20|0;mc[c[8744+140>>2]&15](c[(c[a+28>>2]|0)+40>>2]|0,c[a>>2]|0,c[e>>2]|0,d);c[e>>2]=d;if((b[a+24>>1]&6)==6)Mo(a,3);return}function Wp(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;r=c[f+52>>2]|0;s=a[f>>0]|0;t=c[f+72>>2]|0;q=Xp(f)|0;c[u>>2]=q;if(!q){q=b[f+18>>1]|0;p=q&65535;if(!(q<<16>>16))g=f+5|0;else{h=f+56|0;k=f+20|0;l=f+64|0;g=f+5|0;q=0;do{m=c[h>>2]|0;n=q<<1;o=c[l>>2]|0;n=(d[o+n>>0]<<8|d[o+(n|1)>>0])&e[k>>1];o=m+n|0;Bq(f,o,u);if(!(a[g>>0]|0))vp(r,d[m+(n+1)>>0]<<16|d[o>>0]<<24|d[m+(n+2)>>0]<<8|d[m+(n+3)>>0],5,t,u);q=q+1|0}while((q|0)<(p|0))}if(!(a[g>>0]|0)){q=d[f+6>>0]|0;p=c[f+56>>2]|0;vp(r,d[p+(q+9)>>0]<<16|d[p+(q+8)>>0]<<24|d[p+(q+10)>>0]<<8|d[p+(q+11)>>0],5,t,u)}}a[f>>0]=s;i=v;return c[u>>2]|0}function Xp(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;a:do if(!(a[e>>0]|0)){f=c[e+52>>2]|0;r=c[e+56>>2]|0;l=d[e+6>>0]|0;if(No(e,d[r+l>>0]|0)|0){c[u>>2]=54562;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}n=c[f+32>>2]|0;b[e+20>>1]=n+65535;a[e+1>>0]=0;q=c[f+36>>2]|0;f=l+8+(d[e+7>>0]|0)|0;b[e+14>>1]=f;c[e+60>>2]=r+q;f=f&65535;c[e+64>>2]=r+f;k=a[r+(l+5)>>0]|0;h=a[r+(l+6)>>0]|0;g=d[r+(l+3)>>0]<<8|d[r+(l+4)>>0];b[e+18>>1]=g;if(g>>>0>(((n+-8|0)>>>0)/6|0)>>>0){c[u>>2]=54579;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}n=(g<<1)+f|0;m=q+-4|0;g=d[r+(l+1)>>0]<<8|d[r+(l+2)>>0];f=(((k&255)<<8|h&255)+65535&65535)+1+(d[r+(l+7)>>0]|0)|0;do if(g){while(1){if((g|0)<(n|0)|(g|0)>(m|0)){t=8;break}h=d[r+g>>0]<<8|d[r+(g+1)>>0];k=d[r+(g+2)>>0]<<8|d[r+(g+3)>>0];g=k+g|0;if(!h){o=k;p=g;s=f;t=12;break}if((h|0)<=(g+3|0)|(g|0)>(q|0))break;g=h;f=k+f|0}if((t|0)==8){c[u>>2]=54634;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break a}if((t|0)==12?(p|0)<=(q|0):0){f=o+s|0;break}c[u>>2]=54641;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break a}while(0);if((f|0)>(q|0)){c[u>>2]=54655;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}else{b[e+16>>1]=f-n;a[e>>0]=1;f=0;break}}else f=0;while(0);i=v;return f|0}function Yp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[b>>2]|0;g=f+65|0;if(!(a[g>>0]|0)){if((c[f+24>>2]&65536|0)==0?(h=b+4|0,m=c[h>>2]|0,c[k>>2]=(d|0)==0?13552:d,$g(m,f,13560,k),(e|0)!=0):0){d=c[c[h>>2]>>2]|0;c[k>>2]=d;c[k+4>>2]=e;f=Iq(f,d,0,k)|0;c[c[h>>2]>>2]=f}if(!(a[g>>0]|0)){c[k>>2]=105209;c[k+4>>2]=10788;Zc(11,13600,k);f=11}else f=7}else f=7;c[b+12>>2]=f;i=l;return}function Zp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;m=a+20|0;a:do if((c[m>>2]|0)>0){h=a+16|0;k=(d|0)==0;l=0;a=0;do{f=(l|0)<2^l;g=c[h>>2]|0;e=c[g+(f<<4)+12>>2]|0;if(!(!k?($c(d,c[g+(f<<4)>>2]|0)|0)!=0:0)){a=Zm(e+24|0,b,n)|0;if(a){a=c[a+8>>2]|0;if(a)break a}else a=0}l=l+1|0}while((l|0)<(c[m>>2]|0))}else a=0;while(0);i=o;return a|0}function _p(d){d=d|0;var f=0,g=0,h=0,i=0;i=c[d+8>>2]|0;h=d+46|0;g=b[h>>1]|0;g=(g&65535)>5?5:g&65535;f=b[(c[d+12>>2]|0)+28>>1]|0;b[i>>1]=f<<16>>16<33?33:f;gw(i+2|0,13512,g<<1|0)|0;f=e[h>>1]|0;if(g>>>0<f>>>0)do{g=g+1|0;b[i+(g<<1)>>1]=23;f=e[h>>1]|0}while((g|0)<(f|0));if(a[d+50>>0]|0)b[i+(f<<1)>>1]=0;return}function $p(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;p=i;i=i+64|0;if((i|0)>=(j|0))ba();n=p;a:do if((((g|0)!=0?(l=c[g>>2]|0,(l|0)!=0):0)?(o=g+8|0,(c[o>>2]|0)!=0):0)?(k=d+4|0,q=Wh(c[d>>2]|0,l,c[k>>2]|0)|0,(q|0)!=0):0){h=c[g+4>>2]|0;b:do if(!h)m=11;else{if(!($c(c[g>>2]|0,h)|0)){k=c[q+8>>2]|0;if(!k){m=11;break}while(1){l=a[k+51>>0]|0;if((l&3)==2)break;k=c[k+20>>2]|0;if(!k){m=11;break b}}h=c[o>>2]|0;f=k}else{f=Zp(c[d>>2]|0,h,c[k>>2]|0)|0;k=c[o>>2]|0;if(!f)break;l=a[f+51>>0]|0;h=k}o=(e[f+46>>1]|0)+1|0;a[f+51>>0]=l&-5;k=f+8|0;Jq(h,o,c[k>>2]|0,f);if(c[f+36>>2]|0)break a;b[q+28>>1]=b[c[k>>2]>>1]|0;break a}while(0);if((m|0)==11)k=c[o>>2]|0;o=q+42|0;m=n+44|0;b[m>>1]=b[o>>1]|0;Jq(k,1,q+28|0,n);b[o>>1]=b[m>>1]|0}while(0);i=p;return 0}function aq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;do if(e){if((c[b+12>>2]|0)>>>0<e>>>0){c[k>>2]=e;bn(b,44408,k);f=1;break}g=(c[b+8>>2]|0)+(e>>>3)|0;h=d[g>>0]|0;f=1<<(e&7);if(!(h&f)){a[g>>0]=h|f;f=0;break}else{c[k>>2]=e;bn(b,44432,k);f=1;break}}else f=1;while(0);i=l;return f|0}function bq(a,b){a=a|0;b=b|0;var d=0,e=0;d=c[a>>2]|0;do if(d){if((b|0)==1){b=d+8|0;c[a>>2]=c[b>>2];c[b>>2]=0;c[d+12>>2]=0;break}b=b+-1|0;d=bq(a,b)|0;e=c[a>>2]|0;if(e){c[e+12>>2]=d;d=e+8|0;c[a>>2]=c[d>>2];c[d>>2]=bq(a,b)|0;return e|0}}else d=0;while(0);return d|0}function cq(b,d){b=b|0;d=d|0;var e=0;if((a[b+43>>0]|0)==2){e=b+24|0;if((c[e>>2]|0)>0){d=b+32|0;b=0;do{Sc(c[(c[d>>2]|0)+(b<<2)>>2]|0);c[(c[d>>2]|0)+(b<<2)>>2]=0;b=b+1|0}while((b|0)<(c[e>>2]|0))}}else{b=c[b+4>>2]|0;nc[c[(c[b>>2]|0)+64>>2]&127](b,d)|0}return}function dq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=Jg(b)|0;if(b)$g(c,a,Oe(a)|0,d);i=d;return b|0}function eq(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=c[a>>2]|0;g=a+16|0;h=a+84|0;_g(c[g>>2]|0,(e[h>>1]|0)<<1);ig(f,c[g>>2]|0);b[h>>1]=d;h=d*80|0;f=ih(f,h,0)|0;if(f){bw(f|0,0,h|0)|0;c[g>>2]=f;if((d|0)>0){h=c[a>>2]|0;g=d<<1;while(1){g=g+-1|0;b[f+8>>1]=1;c[f+32>>2]=h;if((g|0)<=0)break;else f=f+40|0}}}else c[g>>2]=0;return}function fq(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;if(!(a[(c[b>>2]|0)+65>>0]|0)){d=(_(e[b+84>>1]|0,f)|0)+d|0;Tg((c[b+16>>2]|0)+(d*40|0)|0,g,-1,1,h)|0}return}function gq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;k=c[d>>2]|0;h=k+1|0;c[d>>2]=h;if((k|0)>98){f=d+8|0;h=c[f>>2]|0;c[d>>2]=k;do Ln(d);while((c[d>>2]|0)>-1);ph(h,37160,l);c[f>>2]=h}else{b[d+(h<<4)+12>>1]=e;a[d+(h<<4)+14>>0]=f;f=d+(h<<4)+16|0;c[f+0>>2]=c[g+0>>2];c[f+4>>2]=c[g+4>>2];c[f+8>>2]=c[g+8>>2]}i=m;return}function hq(a,b,d){a=a|0;b=b|0;d=d|0;a=c[a+8>>2]|0;switch(b&255|0){case 207:case 196:case 195:case 163:{Ik(c[a>>2]|0,c[d>>2]|0,1);break}case 223:case 219:case 217:{Dk(c[a>>2]|0,c[d>>2]|0);break}case 243:case 238:case 229:case 227:case 216:case 204:case 202:{Ck(c[a>>2]|0,c[d>>2]|0);break}case 175:case 174:{Ck(c[a>>2]|0,c[d>>2]|0);break}case 236:{Dk(c[a>>2]|0,c[d+4>>2]|0);break}case 213:case 212:case 201:case 194:{zo(c[a>>2]|0,c[d>>2]|0);break}case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Jk(c[a>>2]|0,c[d>>2]|0);break}case 252:case 197:{Mn(c[a>>2]|0,c[d>>2]|0);break}case 239:case 234:{Bk(c[a>>2]|0,c[d>>2]|0);break}default:{}}return}
function yl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;p=b+16|0;if((d[p>>0]|0)<2?(d[b+17>>0]|0)<2:0)g=0;else{_o(b);o=b+64|0;l=c[o>>2]|0;h=c[l>>2]|0;do if(!h)h=0;else{if((h|0)==14696){Ci(l,0,0)|0;c[l>>2]=0;h=0;break}k=a[b+5>>0]|0;if(k<<24>>24==3){k=b+72|0;n=k;if(!((c[n>>2]|0)==0&(c[n+4>>2]|0)==0)){h=Yb[c[h+16>>2]&63](l,0,0)|0;if(!h)if(!(a[b+8>>0]|0))h=0;else{h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[b+11>>0]|0)|0}}else h=0;o=k;c[o>>2]=0;c[o+4>>2]=0;break}else if(k<<24>>24!=1?(a[b+4>>0]|0)==0|k<<24>>24==5:0){o=(a[b+12>>0]|0)==0;hc[c[h+4>>2]&127](l)|0;c[l>>2]=0;if(!o){h=0;break}h=c[b>>2]|0;h=Yb[c[h+28>>2]&63](h,c[b+172>>2]|0,0)|0;break}m=b+72|0;k=m;if(!((c[k>>2]|0)==0&(c[k+4>>2]|0)==0)){g=b+160|0;k=c[g>>2]|0;g=c[g+4>>2]|0;if((e|0)!=0|(k|0)==0&(g|0)==0)h=Yb[c[h+16>>2]&63](l,0,0)|0;else h=pc[c[h+12>>2]&31](l,14664,28,0,0)|0;if(!h){if(!(a[b+7>>0]|0)){h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[b+11>>0]|16)|0}else h=0;if((h|0)==0&((g|0)>0|(g|0)==0&k>>>0>0)){h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+24>>2]&127](h,n)|0;l=c[n+4>>2]|0;if((h|0)==0&((l|0)>(g|0)|((l|0)==(g|0)?(c[n>>2]|0)>>>0>k>>>0:0))){h=c[o>>2]|0;h=Yb[c[(c[h>>2]|0)+16>>2]&63](h,k,g)|0}}}}else h=0;o=m;c[o>>2]=0;c[o+4>>2]=0}while(0);k=b+56|0;ai(c[k>>2]|0);c[k>>2]=0;c[b+44>>2]=0;k=b+204|0;g=c[k>>2]|0;e=c[g>>2]|0;if(e){do{tl(e);e=c[g>>2]|0}while((e|0)!=0);g=c[k>>2]|0}k=b+24|0;$o(g,c[k>>2]|0);l=b+208|0;g=c[l>>2]|0;if(!g){if((h|0)==0&(f|0)!=0){g=c[k>>2]|0;if((c[b+32>>2]|0)>>>0>g>>>0)h=xl(b,g)|0;else h=0}}else{e=g+44|0;if(a[e>>0]|0){if(!(a[g+43>>0]|0)){o=c[g+4>>2]|0;lc[c[(c[o>>2]|0)+56>>2]&31](o,0,1,9)|0}a[e>>0]=0;a[g+47>>0]=0}}if((h|0)==0&(f|0)!=0){g=c[b+60>>2]|0;h=c[g>>2]|0;if(!h)k=0;else{k=Yb[c[h+40>>2]&63](g,22,0)|0;k=(k|0)==12?0:k}}else k=h;do if(!(a[b+4>>0]|0)){g=c[l>>2]|0;if((g|0)!=0?(ap(g,0)|0)==0:0){g=0;break}h=c[b+60>>2]|0;g=c[h>>2]|0;if(g){if(!(a[b+13>>0]|0))g=nc[c[g+32>>2]&127](h,1)|0;else g=0;h=b+17|0;if((a[h>>0]|0)!=5)a[h>>0]=1}else g=0;a[b+18>>0]=0}else g=0;while(0);a[p>>0]=1;a[b+19>>0]=0;g=(k|0)==0?g:k}i=q;return g|0}function zl(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=c[d+4>>2]|0;g=c[d>>2]|0;a[j+19>>0]=0;k=d+8|0;do if(a[k>>0]|0){if((c[g+152>>2]|0)>1){g=j+76|0;if((c[g>>2]|0)==(d|0)?(c[g>>2]=0,f=j+22|0,b[f>>1]=e[f>>1]&65439,f=c[j+72>>2]|0,(f|0)!=0):0)do{a[f+8>>0]=1;f=c[f+12>>2]|0}while((f|0)!=0);a[k>>0]=1;break}g=j+72|0;f=c[g>>2]|0;a:do if(f)do while(1){h=f+12|0;i=c[h>>2]|0;if((c[f>>2]|0)!=(d|0)){g=h;f=i;break}c[g>>2]=i;if((c[f+4>>2]|0)==1)f=i;else{Sc(f);f=c[g>>2]|0}if(!f)break a}while((f|0)!=0);while(0);f=j+76|0;if((c[f>>2]|0)!=(d|0)){f=c[j+40>>2]|0;if((f|0)==2){i=j+22|0;b[i>>1]=e[i>>1]&65471;c[j+40>>2]=1;i=20;break}}else{c[f>>2]=0;f=j+22|0;b[f>>1]=e[f>>1]&65439;f=c[j+40>>2]|0}f=f+-1|0;c[j+40>>2]=f;if(!f){a[j+20>>0]=0;i=20}else i=20}else i=20;while(0);if(((i|0)==20?(a[k>>0]=0,(a[j+20>>0]|0)==0):0)?(l=j+12|0,m=c[l>>2]|0,(m|0)!=0):0){c[l>>2]=0;xg(c[m+68>>2]|0)}return}function Al(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=((c[a+36>>2]|0)>>>0)/5|0;if(b>>>0<2){e=0;g=c[a+32>>2]|0;i=c[2514]|0}else{e=b+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;i=c[2514]|0;g=c[a+32>>2]|0;e=((e+1|0)==((i>>>0)/(g>>>0)|0|0)?3:2)+e|0}e=b-d-(((d-b+h+e|0)>>>0)/(h>>>0)|0)|0;f=a+32|0;a=((i>>>0)/(g>>>0)|0)+1|0;d=((i>>>0)/(g>>>0)|0)+1|0;a=((a>>>0<b>>>0&e>>>0<a>>>0)<<31>>31)+e|0;while(1){if(a>>>0<2)e=0;else{e=a+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;e=((e+1|0)==((i>>>0)/((c[f>>2]|0)>>>0)|0|0)?3:2)+e|0}if(!((e|0)==(a|0)|(a|0)==(d|0)))break;a=a+-1|0}return a|0}function Bl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=(d|0)==0;f=b;a:while(1){do if((f|0)!=(e|0)){if(!g?(c[f+60>>2]|0)!=(d|0):0)break;if(((a[f+73>>0]|0)+-1&255)<2){b=bp(f)|0;if(!b)break;else break a}else{cp(f);break}}while(0);f=c[f+8>>2]|0;if(!f){b=0;break}}return b|0}function Cl(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))ba();k=v;m=v+32|0;s=v+28|0;l=v+24|0;o=v+20|0;q=v+16|0;t=v+12|0;r=v+8|0;if(f>>>0<2)n=0;else{n=f+-2|0;n=n-((n>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;n=((n+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+n|0}do if((n|0)!=(f|0)?((((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0)+1|0)!=(f|0):0){p=c[(c[b+12>>2]|0)+56>>2]|0;if((d[p+37>>0]|0)<<16|(d[p+36>>0]|0)<<24|(d[p+38>>0]|0)<<8|(d[p+39>>0]|0)){h=dp(b,f,m,s)|0;if(!h){p=a[m>>0]|0;if(p<<24>>24==2){if(g){h=0;break}h=ep(b,o,l,f,1)|0;if(h)break;k=c[o>>2]|0;if(!k){u=24;break}xg(c[k+68>>2]|0);u=24;break}else if(p<<24>>24!=1){h=$k(b,f,t,0)|0;if(h)break;k=(g|0)==0;m=k?2:0;k=k?e:0;l=(g|0)!=0;do{h=ep(b,r,q,k,m)|0;if(h){u=16;break}n=c[r>>2]|0;if(n)xg(c[n+68>>2]|0);n=c[q>>2]|0}while(l&n>>>0>e>>>0);if((u|0)==16){k=c[t>>2]|0;if(!k)break;xg(c[k+68>>2]|0);break}m=c[t>>2]|0;h=Vm(b,m,p,c[s>>2]|0,n,g)|0;if(m)xg(c[m+68>>2]|0);if(!h){u=24;break}else break}else{c[k>>2]=56228;c[k+4>>2]=10788;Zc(11,13600,k);h=11;break}}}else h=101}else u=24;while(0);if((u|0)==24)if(!g){l=((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0;m=l+1|0;n=b+36|0;k=f;while(1){h=k+-1|0;if((h|0)==(m|0)){k=h;continue}if(h>>>0<2)k=0;else{k=k+-3|0;k=k-((k>>>0)%(((((c[n>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(l|0)?3:2)+k|0}if((k|0)==(h|0))k=h;else break}a[b+19>>0]=1;c[b+44>>2]=h;h=0}else h=0;i=v;return h|0}function Dl(b){b=b|0;var e=0,f=0,g=0;g=b+16|0;f=a[g>>0]|0;a:do if(f<<24>>24!=6)if((f&255)>=2){do if(!(c[b+208>>2]|0)){if(!(f<<24>>24==2?1:(c[c[b+64>>2]>>2]|0)==0)){e=Go(b,0)|0;break}e=yl(b,0,0)|0;if((a[b+15>>0]|0)==0&(f&255)>2){c[b+40>>2]=4;a[g>>0]=6;break a}}else{e=fp(b,2,-1)|0;f=yl(b,d[b+19>>0]|0,0)|0;e=(e|0)==0?f:e}while(0);f=e&255;if((f|0)==10|(f|0)==13){c[b+40>>2]=e;a[g>>0]=6}}else e=0;else e=c[b+40>>2]|0;while(0);return e|0}function El(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;a:do if((d|0)!=0?(h=c[d+4>>2]|0,c[h+4>>2]=c[d>>2],h=c[h+8>>2]|0,(h|0)!=0):0){l=(f|0)==0;while(1){if(!l?(a[h+72>>0]&1)==0:0){if(((a[h+73>>0]|0)+-1&255)<2?(g=bp(h)|0,(g|0)!=0):0)break}else{f=h+56|0;Sc(c[f>>2]|0);c[f>>2]=0;a[h+73>>0]=4;c[h+68>>2]=e}f=h+76|0;if((b[f>>1]|0)>=0){k=0;while(1){i=h+(k<<2)+120|0;j=c[i>>2]|0;if(j)xg(c[j+68>>2]|0);c[i>>2]=0;if((k|0)<(b[f>>1]|0))k=k+1|0;else break}}h=c[h+8>>2]|0;if(!h)break a}El(d,g,0)|0;return g|0}while(0);return 0}function Fl(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[a+4>>2]|0)){d=c[a+20>>2]|0;if((d|0)>0){a=c[a+16>>2]|0;b=0;while(1){e=c[a+(b<<4)+4>>2]|0;if((e|0)!=0?(c[e+16>>2]|0)!=0:0){a=1;break a}b=b+1|0;if((b|0)>=(d|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Gl(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[3164]|0;if(f)jc[f&3]();l=d+20|0;j=c[l>>2]|0;i=(j|0)>0;if(i){f=c[d+16>>2]|0;h=0;do{g=c[f+(h<<4)+4>>2]|0;if(g)c[(c[g+4>>2]|0)+4>>2]=c[g>>2];h=h+1|0}while((h|0)!=(j|0))}m=d+24|0;if(!(c[m>>2]&2))f=1;else f=(a[d+145>>0]|0)!=0;if(i){k=d+16|0;f=f&1;i=j;j=0;h=0;while(1){g=c[(c[k>>2]|0)+(j<<4)+4>>2]|0;if(!g)g=i;else{h=(a[g+8>>0]|0)==2?1:h;Hg(g,e,f);g=c[l>>2]|0}j=j+1|0;if((j|0)>=(g|0))break;else i=g}}else h=0;Nn(d,68);f=c[3166]|0;if(f)jc[f&3]();f=c[m>>2]|0;if((f&2|0)!=0?(a[d+145>>0]|0)==0:0){f=c[d+4>>2]|0;if(f)do{g=f+88|0;b[g>>1]=b[g>>1]|8;f=c[f+52>>2]|0}while((f|0)!=0);Ag(d);f=c[m>>2]|0}g=d+504|0;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[m>>2]=f&-16777217;f=c[d+204>>2]|0;do if(f){if((h|0)==0?(a[d+63>>0]|0)!=0:0)break;_b[f&31](c[d+200>>2]|0)}while(0);return}function Hl(b){b=b|0;var d=0,e=0;e=b+488|0;d=c[e>>2]|0;if(d)do{c[e>>2]=c[d+24>>2];ig(b,d);d=c[e>>2]|0}while((d|0)!=0);c[b+496>>2]=0;c[b+500>>2]=0;a[b+70>>0]=0;return}function Il(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=c[b+4>>2]|0;c[h+4>>2]=c[b>>2];e=c[h+8>>2]|0;if(e)do{d=e;e=c[e+8>>2]|0;if((c[d>>2]|0)==(b|0))gp(d)}while((e|0)!=0);Hg(b,0,0);a:do if(a[b+9>>0]|0){e=h+64|0;d=c[e>>2]|0;c[e>>2]=d+-1;if((d|0)<2){d=c[3664]|0;if((d|0)==(h|0)){c[3664]=c[h+68>>2];f=12;break}else e=d;do{if(!e){f=12;break a}d=e+68|0;e=c[d>>2]|0}while((e|0)!=(h|0));c[d>>2]=c[h+68>>2];f=12}}else f=12;while(0);if((f|0)==12){hp(c[h>>2]|0);d=c[h+52>>2]|0;e=h+48|0;if((d|0)!=0?(g=c[e>>2]|0,(g|0)!=0):0)_b[d&31](g);d=c[e>>2]|0;if(d)Sc(d);d=h+80|0;e=c[d>>2]|0;if(e){e=e+-4|0;c[d>>2]=e;Xk(e);c[d>>2]=0}Sc(h)}e=c[b+28>>2]|0;d=b+24|0;if(e)c[e+24>>2]=c[d>>2];d=c[d>>2]|0;if(d)c[d+28>>2]=e;Sc(b);return}function Jl(a,b){a=a|0;b=b|0;var d=0;b=c[b+32>>2]|0;if((b|0)!=0?(d=(c[b>>2]|0)+-1|0,c[b>>2]=d,(d|0)==0):0){_b[c[b+4>>2]&31](c[b+8>>2]|0);ig(a,b)}return}function Kl(a){a=a|0;var b=0,d=0;d=a+8|0;b=c[d>>2]|0;c[d>>2]=0;d=a+12|0;Sc(c[d>>2]|0);c[d>>2]=0;c[a>>2]=0;if(b)do{d=b;b=c[b>>2]|0;Sc(d)}while((b|0)!=0);c[a+4>>2]=0;return}function Ll(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){e=c[a>>2]|0;hg(e,a);f=c[a+48>>2]|0;d=a+52|0;b=c[d>>2]|0;if(!f)c[e+4>>2]=b;else{c[f+52>>2]=b;b=c[d>>2]|0}if(b)c[b+48>>2]=f;c[a+40>>2]=-1241070648;c[a>>2]=0;ig(e,a)}return}function Ml(d){d=d|0;var e=0;a[d+65>>0]=0;c[d+52>>2]=7;d=c[d+236>>2]|0;do if(d){e=d+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(d);break}}while(0);return}function Nl(d){d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))ba();u=F;x=F+16|0;q=F+12|0;r=F+8|0;E=c[d>>2]|0;if(a[E+65>>0]|0)c[d+80>>2]=7;g=c[d+200>>2]|0;if(g)bw(g|0,0,c[d+196>>2]|0)|0;k=d+176|0;g=c[k>>2]|0;if(g){while(1){h=c[g+4>>2]|0;if(!h)break;else g=h}Tl(g)|0;c[k>>2]=0;c[d+184>>2]=0}o=d+56|0;g=c[o>>2]|0;a:do if((g|0)!=0?(p=d+36|0,f=c[p>>2]|0,(f|0)>0):0){k=0;while(1){h=c[g+(k<<2)>>2]|0;if(!h)h=f;else{xm(d,h);c[(c[o>>2]|0)+(k<<2)>>2]=0;h=c[p>>2]|0}k=k+1|0;if((k|0)>=(h|0))break a;g=c[o>>2]|0;f=h}}while(0);g=c[d+8>>2]|0;if(g)_g(g+40|0,c[d+28>>2]|0);p=d+180|0;g=c[p>>2]|0;if(g)do{c[p>>2]=c[g+4>>2];o=g+80|0;f=g+60|0;h=c[f>>2]|0;m=o+(h*40|0)|0;n=g+64|0;if((c[n>>2]|0)>0){k=0;do{xm(c[g>>2]|0,c[m+(k<<2)>>2]|0);k=k+1|0}while((k|0)<(c[n>>2]|0));h=c[f>>2]|0}_g(o,h);ig(c[c[g>>2]>>2]|0,g);g=c[p>>2]|0}while((g|0)!=0);if(c[d+204>>2]|0)am(d,-1,0);B=d+40|0;b:do if((c[B>>2]|0)==-1108210269){z=d+76|0;if((c[z>>2]|0)>-1){A=d+88|0;n=b[A>>1]|0;if(n&128){y=d+80|0;k=c[y>>2]|0;m=k&255;h=m+-7|0;do if(h>>>0<7?(l=(77>>>(h&127)&1)!=0,l):0)if((n&64)==0|(m|0)!=9){if((m|0)==7|(m|0)==13?(n&32)!=0:0){f=2;break}Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0;k=c[y>>2]|0;f=0}else{l=1;f=0}else{l=0;f=0}while(0);if((k|0)==0?(w=d+144|0,v=c[w+4>>2]|0,(v|0)>0|(v|0)==0&(c[w>>2]|0)>>>0>0):0){w=c[d>>2]|0;c[y>>2]=787;a[d+86>>0]=2;$g(d+44|0,w,34376,u)}m=E+304|0;if((c[m>>2]|0)>0?(c[E+328>>2]|0)==0:0)D=141;else if((a[E+63>>0]|0)!=0?(c[E+156>>2]|0)==(((e[A>>1]|0)>>>6&1^1)&65535|0):0){do if(!(c[y>>2]|0))D=41;else{if(!((a[d+86>>0]|0)!=3|l)){D=41;break}Gl(E,0);c[d+92>>2]=0}while(0);c:do if((D|0)==41){d:do if(pm(d,1)|0)if(!(b[A>>1]&64))g=787;else{f=1;break b}else{l=E+328|0;h=c[l>>2]|0;c[l>>2]=0;k=c[m>>2]|0;e:do if((k|0)>0){n=0;f:while(1){p=c[(c[h+(n<<2)>>2]|0)+8>>2]|0;do if(p){o=c[(c[p>>2]|0)+60>>2]|0;if(!o)break;g=hc[o&127](p)|0;Im(d,p);if(g)break f;k=c[m>>2]|0}while(0);n=n+1|0;if((n|0)>=(k|0)){D=50;break e}}c[l>>2]=h;D=135}else D=50;while(0);g:do if((D|0)==50){c[l>>2]=h;v=E+20|0;w=E+16|0;o=0;k=0;n=0;h:while(1){m=c[v>>2]|0;if((o|0)>=(m|0)){h=k;break}l=c[w>>2]|0;p=o;while(1){o=c[l+(p<<4)+4>>2]|0;if((o|0)!=0?(a[o+8>>0]|0)==2:0)break;p=p+1|0;if((p|0)>=(m|0)){h=k;break h}}g=c[o+4>>2]|0;c[g+4>>2]=c[o>>2];g=Zo(c[g>>2]|0)|0;if(!g){o=p+1|0;k=((p|0)!=1&1)+k|0;n=1}else{D=135;break g}}do if(n){l=c[E+196>>2]|0;if(!l)break;if(hc[l&127](c[E+192>>2]|0)|0){g=531;break d}}while(0);k=c[(c[w>>2]|0)+4>>2]|0;n=c[c[k+4>>2]>>2]|0;m=(a[n+15>>0]|0)==0;if(m){p=c[n+168>>2]|0;if(p)D=62}else{p=10360;D=62}do if((D|0)==62){o=p;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;if((o-p&1073741823|0)==0|(h|0)<2)break;t=c[E>>2]|0;if(m){l=c[n+168>>2]|0;c[x>>2]=0;if(!l){p=0;l=0}else D=80}else{c[x>>2]=0;l=10360;D=80}if((D|0)==80){n=l;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;p=n-l&1073741823}c[u>>2]=l;s=qh(E,44696,u)|0;if(!s){g=7;break d}p=s+p|0;o=t+32|0;n=0;i:while(1){do if(n){if((n|0)>100){D=87;break i}if((n|0)!=1)break;c[u>>2]=s;Zc(13,44728,u)}while(0);_c(4,r);g=c[r>>2]|0;c[u>>2]=g>>>8;c[u+4>>2]=g&255;Yc(13,p,44744,u)|0;g=lc[c[o>>2]&31](t,s,0,q)|0;m=(g|0)==0;if(m&(c[q>>2]|0)!=0)n=n+1|0;else{D=91;break}}if((D|0)==87){c[u>>2]=s;Zc(13,44712,u);Yb[c[t+28>>2]&63](t,s,0)|0;D=92}else if((D|0)==91)if(m)D=92;do if((D|0)==92){g=ip(t,s,x,16406,0)|0;if(g)break;l=c[v>>2]|0;j:do if((l|0)>0){q=0;o=0;r=0;n=0;k:while(1){p=c[(c[w>>2]|0)+(r<<4)+4>>2]|0;do if(!p)p=q;else{if((a[p+8>>0]|0)!=2){p=q;break}m=c[p+4>>2]|0;k=c[m>>2]|0;h=c[k+172>>2]|0;if(!h){p=q;break}if(!n){c[m+4>>2]=c[p>>2];n=(a[k+7>>0]|0)==0&1}k=c[x>>2]|0;p=h;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;m=h;g=pc[c[(c[k>>2]|0)+12>>2]&31](k,h,(p-m&1073741823)+1|0,q,o)|0;p=h;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;if(g){l=k;D=106;break k}p=fw((p-m&1073741823)+1|0,0,q|0,o|0)|0;l=c[v>>2]|0;o=C}while(0);r=r+1|0;if((r|0)>=(l|0))break;else q=p}if((D|0)==106){h=c[l>>2]|0;if(h){hc[c[h+4>>2]&127](k)|0;c[l>>2]=0}Sc(k);Yb[c[t+28>>2]&63](t,s,0)|0;ig(E,s);D=135;break g}do if(!n)n=0;else{m=c[x>>2]|0;if((hc[c[(c[m>>2]|0)+48>>2]&127](m)|0)&1024)break;g=nc[c[(c[m>>2]|0)+20>>2]&127](m,2)|0;if(!g)break;h=c[m>>2]|0;if(h){hc[c[h+4>>2]&127](m)|0;c[m>>2]=0}Sc(m);Yb[c[t+28>>2]&63](t,s,0)|0;ig(E,s);D=135;break g}while(0);k=c[v>>2]|0;if((k|0)>0)p=0;else{p=1;g=0;break}while(1){m=c[(c[w>>2]|0)+(p<<4)+4>>2]|0;if(m){g=Gg(m,s)|0;if(g){p=0;break j}k=c[v>>2]|0}p=p+1|0;if((p|0)>=(k|0)){p=1;g=0;break}}}else{p=1;n=0;g=0}while(0);m=c[x>>2]|0;l=c[m>>2]|0;if(l){hc[c[l+4>>2]&127](m)|0;c[m>>2]=0}Sc(m);if(!p){ig(E,s);D=135;break g}g=Yb[c[t+28>>2]&63](t,s,n)|0;ig(E,s);if(g){D=135;break g}g=c[3164]|0;if(g)jc[g&3]();g=c[v>>2]|0;if((g|0)>0){k=0;do{h=c[(c[w>>2]|0)+(k<<4)+4>>2]|0;if(h){Fg(h,1)|0;g=c[v>>2]|0}k=k+1|0}while((k|0)<(g|0))}g=c[3166]|0;if(g)jc[g&3]();Nn(E,64);break g}while(0);ig(E,s);D=135;break g}while(0);g=c[v>>2]|0;do if((g|0)>0){h=1;while(1){if(k){g=Gg(k,0)|0;if(g){D=135;break g}g=c[v>>2]|0}if((h|0)>=(g|0))break;k=c[(c[w>>2]|0)+(h<<4)+4>>2]|0;h=h+1|0}if((g|0)>0)k=0;else break;do{h=c[(c[w>>2]|0)+(k<<4)+4>>2]|0;if(h){g=Fg(h,0)|0;if(g){D=135;break g}g=c[v>>2]|0}k=k+1|0}while((k|0)<(g|0))}while(0);Nn(E,64)}while(0);do if((D|0)==135){if(!g)break;else if((g|0)!=5)break d;if(!(b[A>>1]&64)){g=5;break d}else{f=5;break b}}while(0);x=E+504|0;D=E+24|0;c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[D>>2]=c[D>>2]&-16777219;break c}while(0);c[y>>2]=g;Gl(E,0);c[d+92>>2]=0}while(0);c[E+500>>2]=0;D=146}else D=141;do if((D|0)==141)if(!f)if(c[y>>2]|0){g=a[d+86>>0]|0;if(g<<24>>24==2){f=2;D=147;break}else if(g<<24>>24==3){f=1;D=147;break}else{Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0;D=146;break}}else{f=1;D=147}else D=147;while(0);if((D|0)==146)if(!f)f=0;else D=147;if((D|0)==147){g=Xl(d,f)|0;if(g){D=c[y>>2]|0;if((D|0)==0|(D&255|0)==19){c[y>>2]=g;D=d+44|0;ig(E,c[D>>2]|0);c[D>>2]=0}Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0}}if(b[A>>1]&4){if((f|0)==2){c[E+80>>2]=0;f=d+92|0}else{f=d+92|0;y=c[f>>2]|0;c[E+80>>2]=y;D=E+84|0;c[D>>2]=(c[D>>2]|0)+y}c[f>>2]=0}}if((c[z>>2]|0)>-1){f=E+148|0;c[f>>2]=(c[f>>2]|0)+-1;f=b[A>>1]|0;if(!(f&64)){f=E+156|0;c[f>>2]=(c[f>>2]|0)+-1;f=b[A>>1]|0}if(f&128){D=E+152|0;c[D>>2]=(c[D>>2]|0)+-1}}}c[B>>2]=1369188723;f=d+80|0;if(!(a[(c[d>>2]|0)+65>>0]|0)){f=(c[f>>2]|0)==5?5:0;break}else{c[f>>2]=7;f=0;break}}else f=0;while(0);i=F;return f|0}function Ol(a,f){a=a|0;f=f|0;var g=0,h=0,i=0,j=0;i=a+8|0;h=e[i>>1]|0;do if(h&18){b[i>>1]=h|2;if(h&16384)Ng(a)|0;g=a+10|0;f=f&255;h=f&247;if((d[g>>0]|0|0)!=(h|0))Ul(a,h)|0;if(((f&8|0)!=0?(c[a+16>>2]&1|0)!=0:0)?(Rl(a)|0)!=0:0){g=0;break}if((b[i>>1]&514)==2){Yl(a)|0;j=12}else j=12}else{Zl(a,f,0)|0;h=f&247;g=a+10|0;j=12}while(0);if((j|0)==12)if((d[g>>0]|0|0)==(h|0))g=c[a+16>>2]|0;else g=0;return g|0}function Pl(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,i=0.0,j=0,k=0.0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,t=0;h[c>>3]=0.0;j=f&255;if(f<<24>>24==1){f=b;g=e;p=1;t=0}else{g=3-j|0;a:do if((g|0)<(e|0))while(1){f=g+2|0;if(a[b+g>>0]|0){e=1;break a}if((f|0)<(e|0))g=f;else{e=0;g=f;break}}else e=0;while(0);f=b+(j&1)|0;g=j+-3+g|0;p=2;t=e}r=b+g|0;b:do if(f>>>0<r>>>0){while(1){g=a[f>>0]|0;if(!(a[10368+(g&255)>>0]&1))break;f=f+p|0;if(f>>>0>=r>>>0){f=0;break b}}if(g<<24>>24==43){f=f+p|0;q=1}else if(g<<24>>24==45){f=f+p|0;q=-1}else q=1;c:do if(f>>>0<r>>>0){g=0;do{if((a[f>>0]|0)!=48)break c;f=f+p|0;g=g+1|0}while(f>>>0<r>>>0)}else g=0;while(0);d:do if(f>>>0<r>>>0){b=0;j=0;while(1){e=a[f>>0]|0;if(!(((e&255)+-48|0)>>>0<10&((b|0)<214748364|(b|0)==214748364&j>>>0<3435973835))){l=b;break d}j=ow(j|0,b|0,10,0)|0;b=(e<<24>>24)+-48|0;j=fw(b|0,((b|0)<0)<<31>>31|0,j|0,C|0)|0;b=C;f=f+p|0;g=g+1|0;if(f>>>0>=r>>>0){l=b;break}}}else{j=0;l=0}while(0);e:do if(f>>>0<r>>>0){e=0;while(1){b=a[f>>0]|0;if(((b&255)+-48|0)>>>0>=10){m=e;break}f=f+p|0;g=g+1|0;b=e+1|0;if(f>>>0<r>>>0)e=b;else{n=l;m=b;b=0;l=1;e=1;break e}}f:do if(b<<24>>24==46){e=f+p|0;g:do if(e>>>0<r>>>0){n=e;while(1){b=a[n>>0]|0;if(!(((b&255)+-48|0)>>>0<10&((l|0)<214748364|(l|0)==214748364&j>>>0<3435973835))){e=n;n=l;break g}j=ow(j|0,l|0,10,0)|0;l=(b<<24>>24)+-48|0;j=fw(l|0,((l|0)<0)<<31>>31|0,j|0,C|0)|0;l=C;g=g+1|0;b=m+-1|0;e=f+(p<<1)|0;if(e>>>0<r>>>0){f=n;n=e;m=b}else{f=n;n=l;m=b;break}}}else n=l;while(0);if(e>>>0<r>>>0){l=p<<1;while(1){if(((d[e>>0]|0)+-48|0)>>>0>=10)break f;b=f+l|0;g=g+1|0;if(b>>>0<r>>>0){f=e;e=b}else{e=b;break}}}}else{e=f;n=l}while(0);if(e>>>0<r>>>0){o=a[e>>0]|0;h:do if(o<<24>>24==69|o<<24>>24==101){f=e+p|0;if(f>>>0>=r>>>0){b=0;l=0;e=1;break e}b=a[f>>0]|0;if(b<<24>>24==45){f=e+(p<<1)|0;o=-1}else if(b<<24>>24==43){f=e+(p<<1)|0;o=1}else o=1;if(f>>>0<r>>>0){e=0;l=0}else{b=0;l=0;e=o;break e}while(1){b=a[f>>0]|0;if(((b&255)+-48|0)>>>0>=10){b=e;e=o;break h}if((e|0)<1e4)b=(e*10|0)+-48+(b<<24>>24)|0;else b=1e4;f=f+p|0;if(f>>>0<r>>>0){e=b;l=1}else{l=1;e=o;break}}}else{f=e;b=0;l=1;e=1}while(0);if((g|0)!=0&(l|0)!=0&f>>>0<r>>>0)do{if(!(a[10368+(d[f>>0]|0)>>0]&1))break e;f=f+p|0}while(f>>>0<r>>>0)}else{f=e;b=0;l=1;e=1}}else{n=l;m=0;b=0;l=1;e=1}while(0);b=(_(b,e)|0)+m|0;o=(b|0)<0;e=o?0-b|0:b;do if((j|0)==0&(n|0)==0)if((q|0)<0)i=(g|0)!=0?-0.0:0.0;else i=0.0;else{if((b>>31|1|0)>0)if(((n|0)<214748364|(n|0)==214748364&j>>>0<3435973836)&(e|0)>0){b=n;do{e=e+-1|0;j=ow(j|0,b|0,10,0)|0;b=C}while(((b|0)<214748364|(b|0)==214748364&j>>>0<3435973836)&(e|0)>0)}else b=n;else{m=nw(j|0,n|0,10,0)|0;if((m|0)==0&(C|0)==0&(e|0)>0){b=n;do{e=e+-1|0;j=mw(j|0,b|0,10,0)|0;b=C;n=nw(j|0,b|0,10,0)|0}while((n|0)==0&(C|0)==0&(e|0)>0)}else b=n}n=(q|0)<0;m=$v(0,0,j|0,b|0)|0;m=n?m:j;n=n?C:b;if(!e){i=+(m>>>0)+4294967296.0*+(n|0);break}if((e+-308|0)>>>0<34){if(!((e|0)%308|0))k=1.0;else{i=1.0;do{i=i*10.0;e=e+-1|0}while(((e|0)%308|0|0)!=0);k=i}i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i/k/1.e+308;break}else{i=i*k*1.e+308;break}}if((e|0)>341){i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i*0.0;break}else{i=i*s;break}}if(!((e|0)%22|0)){j=e;i=1.0}else{j=e;i=1.0;do{i=i*10.0;j=j+-1|0}while(((j|0)%22|0|0)!=0)}if((j|0)>0){do{i=i*1.0e22;j=j+-22|0}while((j|0)>0);k=i}else k=i;i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i/k;break}else{i=i*k;break}}while(0);h[c>>3]=i;f=f>>>0>=r>>>0&(g|0)>0&(l|0)!=0&(t|0)==0&1}else f=0;while(0);return f|0}function Ql(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i=f&255;if(f<<24>>24==1){g=b;h=e;n=1;e=0}else{h=3-i|0;a:do if((h|0)<(e|0))while(1){f=h+2|0;if(a[b+h>>0]|0){e=1;break a}if((f|0)<(e|0))h=f;else{e=0;h=f;break}}else e=0;while(0);g=b+(i&1)|0;h=i+-3+h|0;n=2}k=b+h|0;b:do if(g>>>0<k>>>0){while(1){h=a[g>>0]|0;if(!(a[10368+(h&255)>>0]&1))break;g=g+n|0;if(g>>>0>=k>>>0){l=0;break b}}if(h<<24>>24==45){g=g+n|0;l=1;break}else if(h<<24>>24==43){g=g+n|0;l=0;break}else{l=0;break}}else l=0;while(0);c:do if(g>>>0<k>>>0){h=g;while(1){if((a[h>>0]|0)!=48){m=h;break c}h=h+n|0;if(h>>>0>=k>>>0){m=h;break}}}else m=g;while(0);do if(m>>>0<k>>>0){b=m;j=0;i=0;h=0;while(1){f=a[b>>0]|0;if((f+-48&255)>=10){b=0;k=i;break}i=ow(j|0,i|0,10,0)|0;j=f<<24>>24;i=fw(i|0,C|0,-48,-1)|0;j=fw(i|0,C|0,j|0,((j|0)<0)<<31>>31|0)|0;i=C;h=h+n|0;b=m+h|0;if(b>>>0>=k>>>0){b=1;k=i;break}}i=f<<24>>24;f=(l|0)!=0;if((k|0)>=0)if(f){f=k;p=22;break}else{f=k;p=23;break}else{j=d;c[j>>2]=f?0:-1;c[j+4>>2]=f?-2147483648:2147483647;j=f?0:2;break}}else if(!l){b=1;j=0;f=0;i=0;h=0;p=23}else{b=1;j=0;f=0;i=0;h=0;p=22}while(0);if((p|0)==22){l=$v(0,0,j|0,f|0)|0;j=d;c[j>>2]=l;c[j+4>>2]=C;j=0}else if((p|0)==23){l=d;c[l>>2]=j;c[l+4>>2]=f;j=2}if(((i|0)==0|b?!((h|0)==0&(g|0)==(m|0)):0)?(o=n*19|0,!((h|0)>(o|0)|(e|0)!=0)):0)if((h|0)>=(o|0)){h=0;do{g=a[m+(_(h,n)|0)>>0]|0;e=a[11192+h>>0]|0;h=h+1|0;f=g<<24>>24==e<<24>>24}while(f&(h|0)<18);if(f)g=(a[m+(n*18|0)>>0]|0)+-56|0;else g=((g<<24>>24)-(e<<24>>24)|0)*10|0;if((g|0)>=0)return ((g|0)>0?1:j)|0;else g=0}else g=0;else g=1;return g|0}function Rl(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[g>>1]|0;if(f&16384){Ng(d)|0;f=b[g>>1]|0}do if(f&18){if((c[d+24>>2]|0)!=0?(c[d+16>>2]|0)==(c[d+20>>2]|0):0){f=0;break}f=d+12|0;if(!(ah(d,(c[f>>2]|0)+2|0,1)|0)){d=d+16|0;a[(c[d>>2]|0)+(c[f>>2]|0)>>0]=0;a[(c[d>>2]|0)+((c[f>>2]|0)+1)>>0]=0;b[g>>1]=e[g>>1]|0|512;f=0}else f=7}else f=0;while(0);return f|0}function Sl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=no(a,b,c,d)|0;if(!c)ig(a,b);return c|0}function Tl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=c[a>>2]|0;c[d+200>>2]=c[a+20>>2];c[d+196>>2]=c[a+56>>2];c[d+4>>2]=c[a+8>>2];c[d+32>>2]=c[a+48>>2];c[d+8>>2]=c[a+16>>2];c[d+28>>2]=c[a+52>>2];c[d+56>>2]=c[a+24>>2];c[d+36>>2]=c[a+40>>2];g=a+32|0;f=c[g+4>>2]|0;b=c[d>>2]|0;e=b+32|0;c[e>>2]=c[g>>2];c[e+4>>2]=f;c[d+92>>2]=c[a+68>>2];c[b+80>>2]=c[a+72>>2];return c[a+44>>2]|0}function Ul(a,c){a=a|0;c=c|0;if((b[a+8>>1]&2)!=0?(d[a+10>>0]|0|0)!=(c|0):0)c=xn(a,c&255)|0;else c=0;return c|0}function Vl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=a+8|0;if(b[g>>1]&9312)rg(a);c[a+0>>2]=c[d+0>>2];c[a+4>>2]=c[d+4>>2];c[a+8>>2]=c[d+8>>2];c[a+12>>2]=c[d+12>>2];c[a+16>>2]=c[d+16>>2];if(!(b[d+8>>1]&2048))b[g>>1]=(e[g>>1]|0)&58367|f;return}function Wl(a,d){a=a|0;d=d|0;var e=0,f=0;if(!((b[a+8>>1]&9312)==0?(c[a+24>>2]|0)==0:0))Mg(a);a=a+0|0;e=d+0|0;f=a+40|0;do{c[a>>2]=c[e>>2];a=a+4|0;e=e+4|0}while((a|0)<(f|0));b[d+8>>1]=1;c[d+24>>2]=0;return}function Xl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=c[a>>2]|0;m=p+500|0;f=c[m>>2]|0;do if((f|0)!=0?(n=a+104|0,e=c[n>>2]|0,(e|0)!=0):0){o=e+-1|0;k=p+20|0;e=c[k>>2]|0;if((e|0)>0){i=p+16|0;j=(b|0)==2;g=e;h=0;e=0;do{f=c[(c[i>>2]|0)+(h<<4)+4>>2]|0;if(f){if(j?(l=qm(f,2,o)|0,(l|0)!=0):0)f=l;else f=qm(f,1,o)|0;g=c[k>>2]|0;e=(e|0)==0?f:e}h=h+1|0}while((h|0)<(g|0));c[m>>2]=(c[m>>2]|0)+-1;c[n>>2]=0;if(!e)e=13;else{d=e;e=16}}else{c[m>>2]=f+-1;c[n>>2]=0;e=13}do if((e|0)==13){if((b|0)==2?(d=om(p,2,o)|0,(d|0)!=0):0)break;d=om(p,1,o)|0;e=16}while(0);if((e|0)==16)if((b|0)!=2)break;m=a+152|0;l=c[m+4>>2]|0;k=p+504|0;c[k>>2]=c[m>>2];c[k+4>>2]=l;k=a+160|0;l=c[k+4>>2]|0;m=p+512|0;c[m>>2]=c[k>>2];c[m+4>>2]=l}else d=0;while(0);return d|0}function Yl(d){d=d|0;var f=0,g=0;f=d+12|0;if(!(ah(d,(c[f>>2]|0)+2|0,1)|0)){g=d+16|0;a[(c[g>>2]|0)+(c[f>>2]|0)>>0]=0;a[(c[g>>2]|0)+((c[f>>2]|0)+1)>>0]=0;f=d+8|0;b[f>>1]=e[f>>1]|0|512;f=0}else f=7;return f|0}function Zl(d,f,g){d=d|0;f=f|0;g=g|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();o=q;p=d+8|0;m=b[p>>1]|0;if(!(bh(d,32)|0)){l=d+16|0;n=c[l>>2]|0;if(!(m&4)){h[k>>3]=+h[d>>3];c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];Yc(32,n,20272,o)|0}else{s=d;r=c[s+4>>2]|0;m=o;c[m>>2]=c[s>>2];c[m+4>>2]=r;Yc(32,n,19920,o)|0}m=c[l>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[d+12>>2]=l;a[d+10>>0]=1;l=e[p>>1]|514;b[p>>1]=g<<24>>24==0?l:l&65523;Ul(d,f&255)|0;l=0}else l=7;i=q;return l|0}function _l(a){a=a|0;var b=0,c=0;b=e[a+8>>1]|0;c=b&12;if(!c)if(!(b&18))b=0;else b=jp(a)|0;else b=c&65535;return b|0}function $l(a){a=a|0;var d=0.0,f=0,g=0,i=0,j=0;d=+h[a>>3];if(!(d<=-9223372036854775808.0)&!(d>=9223372036854775808.0)?(f=~~d>>>0,g=+N(d)>=1.0?(d>0.0?~~+$(+M(d/4294967296.0),4294967295.0)>>>0:~~+Z((d-+(~~d>>>0))/4294967296.0)>>>0):0,i=fw(f|0,g|0,1,-2147483648)|0,j=C,!(d!=+(f>>>0)+4294967296.0*+(g|0)|(j>>>0<0|(j|0)==0&i>>>0<2))):0){i=a;c[i>>2]=f;c[i+4>>2]=g;f=a+8|0;b[f>>1]=(e[f>>1]|0)&48640|4}return}function am(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=a+204|0;e=c[f>>2]|0;a:do if(e){h=(b|0)<0;do{while(1){if(!h){if((c[e>>2]|0)!=(b|0))break;g=c[e+4>>2]|0;if((g|0)<=31?(1<<g&d|0)!=0:0)break}g=c[e+12>>2]|0;if(g)_b[g&31](c[e+8>>2]|0);c[f>>2]=c[e+16>>2];ig(c[a>>2]|0,e);e=c[f>>2]|0;if(!e)break a}f=e+16|0;e=c[f>>2]|0}while((e|0)!=0)}while(0);return}function bm(a,b,c){a=a|0;b=b|0;c=c|0;do if(b<<24>>24>66){b=e[a+8>>1]|0;if(!(b&4)){if(b&8){$l(a);break}if(b&2)nh(a,1)}}else if(b<<24>>24==66?(b=e[a+8>>1]|0,!((b&2|0)!=0|(b&12|0)==0)):0)Zl(a,c,1)|0;while(0);return}function cm(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,i=0,j=0;j=a+8|0;g=b[j>>1]|0;i=g&65535;do if(!(i&1)){d=d&255;if((d|0)==67){kp(a);break}else if((d|0)==65){if(i&16){b[j>>1]=i&65040;break}if(!((i&2|0)!=0|(i&12|0)==0)){Zl(a,f,1)|0;g=b[j>>1]|0}b[j>>1]=g&48640|16;break}else if((d|0)==68){d=Rg(a)|0;g=a;c[g>>2]=d;c[g+4>>2]=C;b[j>>1]=(e[j>>1]|0)&48640|4;break}else if((d|0)==69){h[a>>3]=+Qg(a);b[j>>1]=(e[j>>1]|0)&48640|8;break}else{d=i>>>3&2|i;g=d&65535;b[j>>1]=g;if(!((d&2|0)!=0|(i&12|0)==0)){Zl(a,f,1)|0;g=b[j>>1]|0}b[j>>1]=g&49123;break}}while(0);return}function dm(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0.0,i=0,j=0.0,k=0,l=0,m=0;l=b[a+8>>1]|0;k=l&65535;i=b[d+8>>1]|0;m=i&65535;f=(i|l)&65535;do if(!(f&1)){if(!(f&12)){if(f&2){if(!(k&2)){f=1;break}if(!(m&2)){f=-1;break}if(e){f=lp(a,d,e,0)|0;break}}f=mp(a,d)|0;break}if((l&4&i)<<16>>16){l=a;k=c[l>>2]|0;l=c[l+4>>2]|0;i=d;f=c[i>>2]|0;i=c[i+4>>2]|0;if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<f>>>0){f=-1;break}f=((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>f>>>0)&1;break}if(!(k&8)){if(!(k&4)){f=1;break}f=a;j=+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0)}else j=+h[a>>3];if(!(m&8)){if(!(m&4)){f=-1;break}f=d;g=+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0)}else g=+h[d>>3];if(j<g)f=-1;else f=j>g&1}else f=(m&1)-(k&1)|0;while(0);return f|0}function em(b){b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=g+8|0;d=b+48|0;d=ym(c[b>>2]|0,0,c[d>>2]|0,c[d+4>>2]|0,0,e)|0;do if(!d)if(!(c[e>>2]|0)){a[b+26>>0]=0;c[b+60>>2]=0;d=0;break}else{c[f>>2]=67421;c[f+4>>2]=10788;Zc(11,13600,f);d=11;break}while(0);i=g;return d|0}function fm(b){b=b|0;var d=0,e=0,f=0;e=c[b>>2]|0;f=e+73|0;d=a[f>>0]|0;do if((d&255)>2){d=Gn(e)|0;if(!d){d=a[f>>0]|0;f=5;break}else{c[b+60>>2]=0;f=6;break}}else f=5;while(0);if((f|0)==5){c[b+60>>2]=0;if(d<<24>>24==1)d=0;else{d=0;f=6}}if((f|0)==6)a[b+25>>0]=1;return d|0}function gm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;h=f+24|0;if(!(b[f+44>>1]|0)){j=b[f+76>>1]|0;i=c[f+(j<<2)+120>>2]|0;j=e[f+(j<<1)+78>>1]<<1;k=c[i+64>>2]|0;np(i,(c[i+56>>2]|0)+((d[k+j>>0]<<8|d[k+(j|1)>>0])&e[i+20>>1])|0,h);f=f+72|0;a[f>>0]=d[f>>0]|2}i=h;f=c[i+4>>2]|0;h=g;c[h>>2]=c[i>>2];c[h+4>>2]=f;return}function hm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0;if(!(b[f+44>>1]|0)){i=b[f+76>>1]|0;h=c[f+(i<<2)+120>>2]|0;i=e[f+(i<<1)+78>>1]<<1;j=c[h+64>>2]|0;np(h,(c[h+56>>2]|0)+((d[j+i>>0]<<8|d[j+(i|1)>>0])&e[h+20>>1])|0,f+24|0);h=f+72|0;a[h>>0]=d[h>>0]|2}c[g>>2]=c[f+36>>2];return}function im(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;e=d[a>>0]|0;g=d[a+1>>0]|0;do if(g&128){f=d[a+2>>0]|0;if(!(f&128)){c[b>>2]=(f|e<<14)&2080895|g<<7&16256;e=3;break}else{e=op(a,h)|0;g=h;f=c[g>>2]|0;c[b>>2]=((f|0)==(f|0)?0==(c[g+4>>2]|0):0)?f:-1;break}}else{c[b>>2]=e<<7&16256|g;e=2}while(0);i=k;return e|0}function jm(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;j=(h|0)==0;do if((g+f|0)>>>0>(e[d+40>>1]|0)>>>0){l=i+8|0;b[l>>1]=1;h=bh(i,g+2|0)|0;if(!h){k=i+16|0;h=c[k>>2]|0;if(j)h=zh(d,f,g,h)|0;else h=Hm(d,f,g,h,0)|0;if(!h){a[(c[k>>2]|0)+g>>0]=0;a[(c[k>>2]|0)+(g+1)>>0]=0;b[l>>1]=528;c[i+12>>2]=g;h=0;break}if((b[l>>1]&9312)==0?(c[i+24>>2]|0)==0:0)break;Mg(i)}}else{c[i+16>>2]=(c[d+32>>2]|0)+f;b[i+8>>1]=4112;c[i+12>>2]=g;h=0}while(0);return h|0}function km(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;switch(f|0){case 3:{f=d[e+1>>0]<<8|a[e>>0]<<16|d[e+2>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=3;break}case 9:case 8:{e=g;c[e>>2]=f+-8;c[e+4>>2]=0;b[g+8>>1]=4;e=0;break}case 5:{h=a[e>>0]<<8|d[e+1>>0];f=g;c[f>>2]=d[e+3>>0]<<16|d[e+2>>0]<<24|d[e+4>>0]<<8|d[e+5>>0];c[f+4>>2]=h;b[g+8>>1]=4;e=6;break}case 7:case 6:{pp(e,f,g);e=8;break}case 2:{f=a[e>>0]<<8|d[e+1>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=2;break}case 4:{f=d[e+1>>0]<<16|a[e>>0]<<24|d[e+2>>0]<<8|d[e+3>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=4;break}case 0:case 11:case 10:{b[g+8>>1]=1;e=0;break}case 1:{f=a[e>>0]|0;e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=1;break}default:{c[g+16>>2]=e;e=(f+-12|0)>>>1;c[g+12>>2]=e;b[g+8>>1]=b[34328+((f&1)<<1)>>1]|0}}return e|0}function lm(b,c,d){b=b|0;c=c|0;d=d|0;do if(!(d>>>0<0|(d|0)==0&c>>>0<128))if(d>>>0<0|(d|0)==0&c>>>0<16384){d=iw(c|0,d|0,7)|0;a[b>>0]=d|128;a[b+1>>0]=c&127;c=2;break}else{c=qp(b,c,d)|0;break}else{a[b>>0]=c&127;c=1}while(0);return c|0}function mm(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;k=e+73|0;f=a[k>>0]|0;do if((f&255)>2)if(f<<24>>24==4){f=c[e+68>>2]|0;break}else{g=e+56|0;Sc(c[g>>2]|0);c[g>>2]=0;a[k>>0]=0;g=5;break}else g=5;while(0);a:do if((g|0)==5){h=e+76|0;f=b[h>>1]|0;do if(f<<16>>16<=-1){f=c[e+60>>2]|0;if(!f){a[k>>0]=0;f=0;break a}g=e+120|0;f=rp(c[(c[e>>2]|0)+4>>2]|0,f,g,(a[e+72>>0]&1)<<1^2)|0;if(!f){b[h>>1]=0;f=g;break}else{a[k>>0]=0;break a}}else{if(f<<16>>16)do{g=f+-1<<16>>16;b[h>>1]=g;f=c[e+(f<<16>>16<<2)+120>>2]|0;if(!f)f=g;else{xg(c[f+68>>2]|0);f=b[h>>1]|0}}while(f<<16>>16!=0);f=e+120|0}while(0);f=c[f>>2]|0;if((a[f>>0]|0)!=0?((c[e+16>>2]|0)==0|0)==(d[f+2>>0]|0):0){b[e+78>>1]=0;b[e+44>>1]=0;g=e+72|0;a[g>>0]=d[g>>0]&241;if(b[f+18>>1]|0){a[k>>0]=1;f=0;break}if(a[f+5>>0]|0){a[k>>0]=0;f=0;break}if((c[f+72>>2]|0)==1){g=d[f+6>>0]|0;f=c[f+56>>2]|0;f=d[f+(g+9)>>0]<<16|d[f+(g+8)>>0]<<24|d[f+(g+10)>>0]<<8|d[f+(g+11)>>0];a[k>>0]=1;f=nm(e,f)|0;break}else{c[l>>2]=57629;c[l+4>>2]=10788;Zc(11,13600,l);f=11;break}}c[l>>2]=57618;c[l+4>>2]=10788;Zc(11,13600,l);f=11}while(0);i=m;return f|0}function nm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;l=n+8|0;g=e+76|0;k=b[g>>1]|0;h=k<<16>>16;do if(k<<16>>16<=18){k=e+72|0;f=rp(c[e+4>>2]|0,f,l,(a[k>>0]&1)<<1^2)|0;if(!f){f=c[l>>2]|0;l=h+1|0;c[e+(l<<2)+120>>2]=f;b[e+(l<<1)+78>>1]=0;b[g>>1]=(b[g>>1]|0)+1<<16>>16;b[e+44>>1]=0;a[k>>0]=d[k>>0]&249;if((b[f+18>>1]|0)!=0?(a[f+2>>0]|0)==(a[(c[e+(h<<2)+120>>2]|0)+2>>0]|0):0){f=0;break}c[m>>2]=57499;c[m+4>>2]=10788;Zc(11,13600,m);f=11}}else{c[m>>2]=57487;c[m+4>>2]=10788;Zc(11,13600,m);f=11}while(0);i=n;return f|0}function om(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=a+328|0;a:do if(!(c[j>>2]|0))a=0;else{g=a+304|0;h=d+1|0;i=0;while(1){if((i|0)>=(c[g>>2]|0)){a=0;break a}f=c[(c[j>>2]|0)+(i<<2)>>2]|0;a=c[c[f+4>>2]>>2]|0;e=c[f+8>>2]|0;if((e|0)!=0?(c[a>>2]|0)>1:0){if(!b){a=c[a+80>>2]|0;c[f+20>>2]=h}else if((b|0)==2)a=c[a+88>>2]|0;else a=c[a+84>>2]|0;if((a|0)!=0?(c[f+20>>2]|0)>(d|0):0){a=nc[a&127](e,d)|0;if(!a){i=i+1|0;continue}else break a}}i=i+1|0}}while(0);return a|0}function pm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;e=c[b>>2]|0;if(!d){d=b+144|0;k=c[d+4>>2]|0;if((k|0)>0|(k|0)==0&(c[d>>2]|0)>>>0>0)g=4;else e=0}else{d=e+504|0;k=e+512|0;d=fw(c[k>>2]|0,c[k+4>>2]|0,c[d>>2]|0,c[d+4>>2]|0)|0;k=C;if((k|0)>0|(k|0)==0&d>>>0>0)g=4;else e=0}if((g|0)==4){c[b+80>>2]=787;a[b+86>>0]=2;$g(b+44|0,e,34376,f);e=1}i=h;return e|0}function qm(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;if((e|0)!=0?(a[e+8>>0]|0)==2:0){h=c[e+4>>2]|0;c[h+4>>2]=c[e>>2];f=fp(c[h>>2]|0,f,g)|0;if(!f){if((g|0)<0?(b[h+22>>1]&8)!=0:0)c[h+44>>2]=0;f=yg(h)|0;e=c[(c[h+12>>2]|0)+56>>2]|0;c[h+44>>2]=d[e+29>>0]<<16|d[e+28>>0]<<24|d[e+30>>0]<<8|d[e+31>>0]}}else f=0;return f|0}function rm(a,b){a=a|0;b=b|0;a=a+16|0;ml(c[(c[a>>2]|0)+(b<<4)+12>>2]|0);if((b|0)!=1)ml(c[(c[a>>2]|0)+28>>2]|0);return}function sm(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;f=c[a+4>>2]|0;c[f+4>>2]=c[a>>2];if((b|0)==15)f=(c[a+20>>2]|0)+(c[(c[f>>2]|0)+100>>2]|0)|0;else{b=b<<2;f=c[(c[f+12>>2]|0)+56>>2]|0;f=(d[f+(b+37)>>0]|0)<<16|(d[f+(b+36)>>0]|0)<<24|(d[f+(b+38)>>0]|0)<<8|(d[f+(b+39)>>0]|0)}c[e>>2]=f;return}function tm(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;k=(c[d+28>>2]|0)-e|0;i=c[d+8>>2]|0;n=(f<<3)+88|0;m=(h|0)!=0;l=d+56|0;j=c[(c[l>>2]|0)+(e<<2)>>2]|0;if(j){xm(d,j);c[(c[l>>2]|0)+(e<<2)>>2]=0}if(!(bh(i+(k*40|0)|0,(m?200:0)+n|0)|0)){k=i+(k*40|0)+16|0;h=c[k>>2]|0;c[(c[l>>2]|0)+(e<<2)>>2]=h;i=h+0|0;j=i+88|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0));a[h+24>>0]=g;b[h+20>>1]=f;c[h+80>>2]=h+84+(f<<2);if(m){i=(c[k>>2]|0)+n|0;c[h>>2]=i;i=i+0|0;j=i+76|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0))}}else h=0;return h|0}function um(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;k=c[d+4>>2]|0;c[k+4>>2]=c[d>>2];if(f)if(!(b[k+22>>1]&1)){j=k+80|0;if(!(c[j>>2]|0)){i=Co(c[k+32>>2]|0)|0;c[j>>2]=i;if(!i)i=7;else{l=i;i=l;a[i>>0]=0;a[i+1>>0]=0;a[i+2>>0]=0;a[i+3>>0]=0;l=l+4|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;c[j>>2]=(c[j>>2]|0)+4;l=6}}else l=6}else i=8;else l=6;if((l|0)==6){if((e|0)==1)e=(c[k+44>>2]|0)!=0&1;c[h+60>>2]=e;b[h+76>>1]=-1;c[h+16>>2]=g;c[h>>2]=d;c[h+4>>2]=k;a[h+72>>0]=f;i=k+8|0;e=c[i>>2]|0;c[h+8>>2]=e;if(e)c[e+12>>2]=h;c[i>>2]=h;a[h+73>>0]=0;i=0}return i|0}function vm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+128|0;if((i|0)>=(j|0))ba();A=P;H=P+12|0;E=P+8|0;M=P+16|0;K=(g|0)==0;if(!K){o=(a[g>>0]|0)==0;if(Wv(g,14640)|0)if(o)G=4;else{o=0;G=5}else L=1}else G=4;if((G|0)==4)if((a[h+64>>0]|0)==2){L=1;o=1}else{o=1;G=5}if((G|0)==5)L=(m&128|0)!=0;J=L?l|2:l;if((m&256|0)!=0&(L|o))m=m&-769|512;O=mg(48,0)|0;a:do if(O){u=O+0|0;t=u+48|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));c[O>>2]=h;c[O+32>>2]=O;c[O+36>>2]=1;b:do if(!o?!(L&(m&64|0)==0|(m&131072|0)==0):0){if(K)o=1;else{o=g;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=(o-g&1073741823)+1|0}l=(c[f+8>>2]|0)+1|0;r=(l|0)>(o|0)?l:o;r=mg(r,((r|0)<0)<<31>>31)|0;q=O+9|0;a[q>>0]=1;if(!r){Sc(O);n=7;break a}if(!L){a[r>>0]=0;o=lc[c[f+36>>2]&31](f,g,l,r)|0;if(o){Sc(r);Sc(O);n=o;break a}}else gw(r|0,g|0,o|0)|0;o=c[3664]|0;c:do if(o){while(1){l=c[o>>2]|0;if((Wv(r,c[l+168>>2]|0)|0)==0?(c[l>>2]|0)==(f|0):0)break;o=c[o+68>>2]|0;if(!o)break c}l=c[h+20>>2]|0;d:do if((l|0)>0){p=c[h+16>>2]|0;while(1){l=l+-1|0;D=c[p+(l<<4)+4>>2]|0;if((D|0)!=0?(c[D+4>>2]|0)==(o|0):0)break;if((l|0)<=0)break d}Sc(r);Sc(O);n=19;break a}while(0);c[O+4>>2]=o;D=o+64|0;c[D>>2]=(c[D>>2]|0)+1;Sc(r);if(!o){G=32;break b}if(!(a[q>>0]|0))break b;else{G=105;break b}}while(0);Sc(r);G=32}else G=32;while(0);e:do if((G|0)==32){I=mg(84,0)|0;if(I){u=I+0|0;t=u+84|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));C=J&1;D=(C|0)==0;c[H>>2]=1024;B=f+4|0;o=c[B>>2]|0;if((o|0)>40)l=o+7&-8;else l=40;c[I>>2]=0;do if(!(J&2))if(!K)if(a[g>>0]|0){v=f+8|0;q=(c[v>>2]|0)+1|0;x=q<<1;x=mg(x,((x|0)<0)<<31>>31)|0;if(!x)n=7;else{a[x>>0]=0;o=lc[c[f+36>>2]&31](f,g,q,x)|0;q=x;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;u=q-x&1073741823;r=g;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;t=(r-g&1073741823)+1|0;r=a[g+t>>0]|0;t=g+t|0;if(!(r<<24>>24))q=t;else{q=t;do{if(!(r<<24>>24))r=q;else{r=q;do r=r+1|0;while((a[r>>0]|0)!=0)}r=r-q&1073741823;p=q+(r+1)|0;s=p;while(1)if(!(a[s>>0]|0))break;else s=s+1|0;q=q+(r+2+(s-p&1073741823))|0;r=a[q>>0]|0}while(r<<24>>24!=0)}if(!o){if((u+8|0)<=(c[v>>2]|0)){w=1;A=0;v=u;u=q+1-t|0;r=x;G=58;break}c[A>>2]=46171;c[A+4>>2]=10788;Zc(14,14848,A);o=14}Sc(x);G=89}}else{w=1;A=0;v=0;u=0;r=0;t=0;G=58}else{g=0;w=0;A=0;v=0;u=0;r=0;t=0;G=58}else if(!K)if(a[g>>0]|0){r=gh(0,g)|0;if(!r)n=7;else{o=r;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;g=0;w=0;A=1;v=o-r&1073741823;u=0;t=0;G=58}}else{w=1;A=1;v=0;u=0;r=0;t=0;G=58}else{g=0;w=0;A=1;v=0;u=0;r=0;t=0;G=58}while(0);do if((G|0)==58){q=(l<<1)+17+(v*3|0)+u+((c[B>>2]|0)+271&-8)|0;z=mg(q,0)|0;if(!z){if(!r){n=7;break}Sc(r);n=7;break}bw(z|0,0,q|0)|0;x=z+204|0;c[x>>2]=z+216;y=z+60|0;c[y>>2]=z+264;s=(c[B>>2]|0)+271&-8;c[z+68>>2]=z+s;s=s+l|0;c[z+64>>2]=z+s;s=s+l|0;q=z+s|0;o=z+168|0;c[o>>2]=q;if(r){p=v+1|0;l=z+172|0;c[l>>2]=z+(u+p+s);gw(q|0,r|0,v|0)|0;if(u)gw((c[o>>2]|0)+p|0,t|0,u|0)|0;gw(c[l>>2]|0,r|0,v|0)|0;u=(c[l>>2]|0)+v+0|0;s=14928;t=u+10|0;do{a[u>>0]=a[s>>0]|0;u=u+1|0;s=s+1|0}while((u|0)<(t|0));l=(c[l>>2]|0)+(v+9)|0;B=z+212|0;c[B>>2]=l;gw(l|0,r|0,v|0)|0;B=(c[B>>2]|0)+v|0;a[B+0>>0]=a[14944]|0;a[B+1>>0]=a[14945]|0;a[B+2>>0]=a[14946]|0;a[B+3>>0]=a[14947]|0;a[B+4>>0]=a[14948]|0;Sc(r)}c[z>>2]=f;c[z+144>>2]=m;do if(w?(a[g>>0]|0)!=0:0){c[E>>2]=0;o=pc[c[f+24>>2]&31](f,c[o>>2]|0,c[y>>2]|0,m&556927,E)|0;p=c[E>>2]&1;if(!o){o=c[y>>2]|0;o=hc[c[(c[o>>2]|0)+48>>2]&127](o)|0;do if((p|0)==0?(sp(z),F=c[z+148>>2]|0,F>>>0>1024):0)if(F>>>0>8192){c[H>>2]=8192;break}else{c[H>>2]=F;break}while(0);a[z+13>>0]=bg(g,14952,0)|0;if((o&8192|0)==0?(bg(g,14960,0)|0)==0:0){s=0;G=77;break}o=m|1;G=76}}else{o=m;G=76}while(0);if((G|0)==76){a[z+16>>0]=1;a[z+17>>0]=4;a[z+13>>0]=1;p=o&1;s=1;G=77}if((G|0)==77){o=Yk(z,H,-1)|0;if(!o){l=c[H>>2]|0;r=(A|0)==0;m=A^1;q=r?75:0;o=c[x>>2]|0;u=o+0|0;t=u+48|0;do{c[u>>2]=0;u=u+4|0}while((u|0)<(t|0));c[o+20>>2]=1;c[o+24>>2]=80;a[o+28>>0]=m;a[o+29>>0]=2;c[o+32>>2]=q;c[o+36>>2]=z;c[o+16>>2]=100;o=Do(o,l)|0;if(!o){a[z+6>>0]=C^1;c[z+156>>2]=1073741823;a[z+12>>0]=s;a[z+4>>0]=s;a[z+18>>0]=s;a[z+15>>0]=A;a[z+14>>0]=p;a[z+7>>0]=s;if(!(s<<24>>24)){a[z+8>>0]=1;a[z+11>>0]=2;a[z+10>>0]=34;a[z+9>>0]=2}b[z+140>>1]=80;E=z+160|0;c[E>>2]=-1;c[E+4>>2]=-1;sp(z);do if(D){if(r)break;a[z+5>>0]=4}else a[z+5>>0]=2;while(0);c[z+196>>2]=21;c[I>>2]=z;G=90;break}}}l=c[y>>2]|0;m=c[l>>2]|0;if(m){hc[c[m+4>>2]&127](l)|0;c[l>>2]=0}Xk(c[z+200>>2]|0);Sc(z);G=89}while(0);if((G|0)==89)if(!o)G=90;else n=o;do if((G|0)==90){o=c[I>>2]|0;E=h+40|0;t=c[E+4>>2]|0;u=o+128|0;c[u>>2]=c[E>>2];c[u+4>>2]=t;u=M+0|0;t=u+100|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));o=c[o+60>>2]|0;l=c[o>>2]|0;if((l|0)!=0?(n=pc[c[l+8>>2]&31](o,M,100,0,0)|0,!((n|0)==0|(n|0)==522)):0)break;a[I+16>>0]=J;c[I+4>>2]=h;o=c[I>>2]|0;l=o+176|0;c[l>>2]=76;c[o+180>>2]=I;m=c[o+60>>2]|0;n=c[m>>2]|0;if(!n)l=o;else{Yb[c[n+40>>2]&63](m,15,l)|0;l=c[I>>2]|0}c[O+4>>2]=I;c[I+8>>2]=0;c[I+12>>2]=0;if(a[l+14>>0]|0){E=I+22|0;b[E>>1]=e[E>>1]|1}E=d[M+17>>0]<<16|d[M+16>>0]<<8;m=I+32|0;c[m>>2]=E;if((E+-512|0)>>>0<=65024?(E+16777215&E|0)==0:0){o=a[M+20>>0]|0;E=I+22|0;b[E>>1]=e[E>>1]|2;a[I+17>>0]=(d[M+53>>0]<<16|d[M+52>>0]<<24|d[M+54>>0]<<8|d[M+55>>0]|0)!=0&1;a[I+18>>0]=(d[M+65>>0]<<16|d[M+64>>0]<<24|d[M+66>>0]<<8|d[M+67>>0]|0)!=0&1}else{c[m>>2]=0;if(K|L)o=0;else{a[I+17>>0]=0;a[I+18>>0]=0;o=0}}o=o&255;n=Yk(l,m,o)|0;if(!n){c[I+36>>2]=(c[m>>2]|0)-o;if(!(a[O+9>>0]|0))break e;c[I+64>>2]=1;c[I+68>>2]=c[3664];c[3664]=I;G=105;break e}}while(0);if(I){m=c[I>>2]|0;if(!m)m=I;else{hp(m);m=I}}else m=0}else{m=0;n=7}Sc(m);Sc(O);c[k>>2]=0;break a}while(0);f:do if((G|0)==105?(N=c[h+20>>2]|0,(N|0)>0):0){m=c[h+16>>2]|0;l=0;while(1){n=c[m+(l<<4)+4>>2]|0;if((n|0)!=0?(a[n+9>>0]|0)!=0:0){l=n;break}l=l+1|0;if((l|0)>=(N|0))break f}while(1){n=l+28|0;m=c[n>>2]|0;if(!m){m=l;break}else l=m}o=c[O+4>>2]|0;if(o>>>0<(c[m+4>>2]|0)>>>0){c[O+24>>2]=m;c[O+28>>2]=0;c[n>>2]=O;break}while(1){n=m+24|0;l=c[n>>2]|0;if(!l){G=113;break}if((c[l+4>>2]|0)>>>0<o>>>0)m=l;else{G=115;break}}if((G|0)==113){c[O+24>>2]=0;c[O+28>>2]=m}else if((G|0)==115){c[O+24>>2]=l;c[O+28>>2]=m;c[l+28>>2]=O}c[n>>2]=O}while(0);c[k>>2]=O;n=c[O+4>>2]|0;c[n+4>>2]=c[O>>2];if(!(c[n+48>>2]|0)){n=c[(c[n>>2]|0)+204>>2]|0;c[n+16>>2]=2e3;fc[c[8744+124>>2]&15](c[n+40>>2]|0,2e3);n=0}else n=0}else n=7;while(0);i=P;return n|0}function wm(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+48|0;if((i|0)>=(j|0))ba();r=y;v=y+28|0;w=y+24|0;u=y+20|0;n=y+16|0;p=y+12|0;q=y+32|0;s=y+8|0;h=c[b>>2]|0;t=c[b+4>>2]|0;g=t+4|0;c[g>>2]=h;a:do if(!(a[t+17>>0]|0)){g=ep(t,v,w,1,0)|0;c[u>>2]=g;if(!g){h=c[v>>2]|0;x=39}}else{o=t+8|0;k=c[o>>2]|0;if(k)do{m=k+72|0;a[m>>0]=d[m>>0]&251;k=c[k+8>>2]|0}while((k|0)!=0);c[g>>2]=h;m=c[(c[t+12>>2]|0)+56>>2]|0;m=d[m+53>>0]<<16|d[m+52>>0]<<24|d[m+54>>0]<<8|d[m+55>>0];c[w>>2]=m;h=((c[2514]|0)>>>0)/((c[t+32>>2]|0)>>>0)|0;g=t+36|0;while(1){l=m+1|0;if(l>>>0<2)k=0;else{k=m+-1|0;k=k-((k>>>0)%(((((c[g>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((l|0)==(k|0)|(m|0)==(h|0))m=l;else break}c[w>>2]=l;g=ep(t,p,n,l,1)|0;c[u>>2]=g;if(!g){m=c[n>>2]|0;do if((m|0)==(l|0)){h=c[p>>2]|0;c[v>>2]=h}else{a[q>>0]=0;c[s>>2]=0;k=c[o>>2]|0;b:do if(!k)g=0;else{while(1){if(k)break;k=c[2]|0;if(!k){g=0;break b}}g=Bl(k,0,0)|0}while(0);c[u>>2]=g;k=c[p>>2]|0;if(k)xg(c[k+68>>2]|0);if(g)break a;g=$k(t,l,v,0)|0;c[u>>2]=g;if(g)break a;g=dp(t,l,q,s)|0;c[u>>2]=g;k=a[q>>0]|0;if((k+-1&255)>=2){h=c[v>>2]|0;if(!g){g=Vm(t,h,k,c[s>>2]|0,m,0)|0;c[u>>2]=g;if(h)xg(c[h+68>>2]|0);if(g)break a;g=$k(t,l,v,0)|0;c[u>>2]=g;if(g)break a;h=c[v>>2]|0;k=h+68|0;g=Cg(c[k>>2]|0)|0;c[u>>2]=g;if(!g)break;if(!h)break a;xg(c[k>>2]|0);break a}}else{c[r>>2]=60876;c[r+4>>2]=10788;Zc(11,13600,r);c[u>>2]=11;g=11;h=c[v>>2]|0}if(!h)break a;xg(c[h+68>>2]|0);break a}while(0);vp(t,l,1,0,u);g=c[u>>2]|0;if(g){if(!h)break;xg(c[h+68>>2]|0);break}g=zg(b,4,l)|0;c[u>>2]=g;if(g){if(h)xg(c[h+68>>2]|0)}else x=39}}while(0);if((x|0)==39){ll(h,(f&1|0)==0?10:13);g=c[(c[v>>2]|0)+68>>2]|0;if(g)xg(g);c[e>>2]=c[w>>2];g=0}i=y;return g|0}function xm(a,b){a=a|0;b=b|0;var d=0,e=0;do if(b){a=c[a>>2]|0;d=b+56|0;e=c[d>>2]|0;if(e){Wm(a,e);Sc(c[e+40>>2]|0);ig(a,e);c[d>>2]=0}a=c[b+4>>2]|0;if(a){Il(a);break}a=c[b>>2]|0;if(a){gp(a);break}a=c[b+32>>2]|0;if(a){e=c[a>>2]|0;d=c[e>>2]|0;e=e+4|0;c[e>>2]=(c[e>>2]|0)+-1;hc[c[d+28>>2]&127](a)|0}}while(0);return}function ym(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;N=i;i=i+16|0;if((i|0)>=(j|0))ba();L=N+8|0;K=N;q=f+73|0;do if(((a[q>>0]|0)==1?(p=d[f+72>>0]|0,(p&2|0)!=0):0)?(a[(c[f+120>>2]|0)+2>>0]|0)!=0:0){n=f+24|0;o=c[n>>2]|0;n=c[n+4>>2]|0;if((o|0)==(h|0)&(n|0)==(k|0)){c[m>>2]=0;n=0;break}if((p&8|0)!=0&((n|0)<(k|0)|(n|0)==(k|0)&o>>>0<h>>>0)){c[m>>2]=-1;n=0}else M=8}else M=8;while(0);do if((M|0)==8){if(!g)G=0;else{o=c[g>>2]|0;if(((e[o+8>>1]|0)+(e[o+6>>1]|0)|0)<14){n=e[(c[g+8>>2]|0)+8>>1]|0;H=(a[c[o+16>>2]>>0]|0)==0;c[g+12>>2]=H?-1:1;c[g+16>>2]=H?1:-1;if(!(n&4))if((n&25|0)==0?(c[o+20>>2]|0)==0:0)o=39;else M=13;else o=38}else M=13;if((M|0)==13)o=40;a[g+7>>0]=0;G=o}n=mm(f)|0;if(!n){if(!(a[q>>0]|0)){c[m>>2]=-1;n=0;break}H=f+76|0;C=1-l|0;D=(G|0)==0;I=f+72|0;E=f+24|0;F=f+24|0;a:do{l=b[H>>1]|0;A=c[f+(l<<2)+120>>2]|0;B=A+18|0;p=(e[B>>1]|0)+-1|0;o=p>>C;b[f+(l<<1)+78>>1]=o;l=A+56|0;x=A+20|0;y=A+64|0;z=A+7|0;b:do if(D){s=A+3|0;r=A+60|0;q=0;t=p;while(1){p=o<<1;w=c[y>>2]|0;p=(c[l>>2]|0)+(((d[w+p>>0]<<8|d[w+(p|1)>>0])&e[x>>1])+(d[z>>0]|0))|0;c:do if(a[s>>0]|0)while(1){w=p;p=p+1|0;if((a[w>>0]|0)>=0)break c;if(p>>>0>=(c[r>>2]|0)>>>0){M=25;break a}}while(0);op(p,K)|0;n=K;p=c[n>>2]|0;n=c[n+4>>2]|0;if((n|0)<(k|0)|(n|0)==(k|0)&p>>>0<h>>>0){q=o+1|0;if((o|0)<(t|0))p=t;else{n=-1;M=49;break b}}else{if(!((n|0)>(k|0)|(n|0)==(k|0)&p>>>0>h>>>0)){q=n;break}p=o+-1|0;if((q|0)>(p|0)){n=1;M=49;break b}}o=p+q>>1;t=p}a[I>>0]=d[I>>0]|2;z=E;c[z>>2]=p;c[z+4>>2]=q;b[f+(b[H>>1]<<1)+78>>1]=o;if(a[A+5>>0]|0){M=31;break a}}else{u=A+8|0;v=A+10|0;w=o;q=0;while(1){n=c[l>>2]|0;s=w<<1;o=c[y>>2]|0;s=(d[o+s>>0]<<8|d[o+(s|1)>>0])&e[x>>1];o=s+(d[z>>0]|0)|0;O=a[n+o>>0]|0;t=O&255;r=n+(o+1)|0;do if((O&255)>(d[u>>0]|0)){r=d[r>>0]|0;if((r&128|0)==0?(J=r+(t<<7&16256)|0,(J|0)<=(e[v>>1]|0)):0){n=Yb[G&63](J,n+(o+2)|0,g)|0;break}np(A,n+s|0,F);r=c[F>>2]|0;o=mg(r,((r|0)<0)<<31>>31)|0;if(!o){n=7;break a}b[f+(b[H>>1]<<1)+78>>1]=w;n=Hm(f,0,r,o,2)|0;if(n){M=40;break a}n=Yb[G&63](r,o,g)|0;Sc(o)}else n=Yb[G&63](t,r,g)|0;while(0);if((n|0)<0)q=w+1|0;else{if((n|0)<=0){o=w;M=46;break a}p=w+-1|0}if((q|0)>(p|0)){o=w;M=49;break b}w=p+q>>1}}while(0);if((M|0)==49){M=0;if(a[A+5>>0]|0){M=51;break}l=A+56|0;o=q}q=c[l>>2]|0;if((o|0)<(e[B>>1]|0)){p=o<<1;B=c[A+64>>2]|0;p=(d[B+p>>0]<<8|d[B+(p|1)>>0])&e[A+20>>1];p=d[q+(p+1)>>0]<<16|d[q+p>>0]<<24|d[q+(p+2)>>0]<<8|d[q+(p+3)>>0]}else{p=d[A+6>>0]|0;p=d[q+(p+9)>>0]<<16|d[q+(p+8)>>0]<<24|d[q+(p+10)>>0]<<8|d[q+(p+11)>>0]}b[f+(b[H>>1]<<1)+78>>1]=o;n=nm(f,p)|0}while((n|0)==0);if((M|0)==25){c[L>>2]=57865;c[L+4>>2]=10788;Zc(11,13600,L);n=11;break}else if((M|0)==31){c[m>>2]=0;n=0}else if((M|0)==40)Sc(o);else if((M|0)==46){c[m>>2]=0;b[f+(b[H>>1]<<1)+78>>1]=o;n=(a[g+7>>0]|0)==0?0:11}else if((M|0)==51){b[f+(b[H>>1]<<1)+78>>1]=o;c[m>>2]=n;n=0}b[f+44>>1]=0;a[I>>0]=d[I>>0]&249}}while(0);i=N;return n|0}function zm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;b[f+44>>1]=0;h=f+72|0;a[h>>0]=d[h>>0]&249;c[g>>2]=0;do if((a[f+73>>0]|0)==1){h=f+76|0;k=b[h>>1]|0;i=c[f+(k<<2)+120>>2]|0;k=f+(k<<1)+78|0;j=(b[k>>1]|0)+1<<16>>16;b[k>>1]=j;if((j&65535)>=(e[i+18>>1]|0)){h=f+(b[h>>1]<<1)+78|0;b[h>>1]=(b[h>>1]|0)+-1<<16>>16;h=zp(f,g)|0;break}if(!(a[i+5>>0]|0))h=Rm(f)|0;else h=0}else h=zp(f,g)|0;while(0);return h|0}function Am(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0;c[f>>2]=0;j=e+72|0;a[j>>0]=d[j>>0]&241;b[e+44>>1]=0;if(((a[e+73>>0]|0)==1?(g=b[e+76>>1]|0,h=e+(g<<1)+78|0,i=b[h>>1]|0,i<<16>>16!=0):0)?(a[(c[e+(g<<2)+120>>2]|0)+5>>0]|0)!=0:0){b[h>>1]=i+-1<<16>>16;g=0}else g=Ap(e,f)|0;return g|0}function Bm(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;i=0-d&7;j=a+6|0;h=b[j>>1]|0;g=((h&65535)*40|0)+64|0;if((g|0)>(i+e|0)){g=ih(c[a+12>>2]|0,g,0)|0;c[f>>2]=g;if(!g)g=0;else{h=b[j>>1]|0;k=5}}else{c[f>>2]=0;g=d+i|0;k=5}if((k|0)==5){c[g+8>>2]=g+24;c[g>>2]=a;b[g+4>>1]=(h&65535)+1}return g|0}function Cm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();t=u+4|0;s=u;m=c[h+8>>2]|0;a[h+6>>0]=0;k=a[g>>0]|0;if(k<<24>>24>-1){k=k&255;c[t>>2]=k;l=1}else{l=im(g,t)|0;k=c[t>>2]|0}r=d+4|0;p=d+12|0;q=h+4|0;d=k;o=k;n=l&255;k=0;while(1){if(n>>>0>=d>>>0|(o|0)>(f|0))break;h=g+n|0;d=a[h>>0]|0;if(d<<24>>24>-1){c[s>>2]=d&255;h=1}else h=im(h,s)|0;a[m+10>>0]=a[r>>0]|0;c[m+32>>2]=c[p>>2];c[m+24>>2]=0;l=km(g+o|0,c[s>>2]|0,m)|0;k=k+1<<16>>16;if((k&65535)>=(e[q>>1]|0))break;d=c[t>>2]|0;o=l+o|0;n=(h&255)+n|0;m=m+40|0}b[q>>1]=k;i=u;return}function Dm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=b+73|0;if((a[g>>0]|0)==1?(a[b+72>>0]&8)!=0:0)f=0;else h=3;do if((h|0)==3){f=mm(b)|0;if(!f){if(!(a[g>>0]|0)){c[e>>2]=1;f=0;break}c[e>>2]=0;f=Bp(b)|0;e=b+72|0;g=d[e>>0]|0;if(!f){a[e>>0]=g|8;f=0;break}else{a[e>>0]=g&247;break}}}while(0);return f|0}function Em(f,g,h,k,l,m,n,o,p){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;L=i;i=i+32|0;if((i|0)>=(j|0))ba();u=L;A=L+24|0;B=L+20|0;z=L+16|0;K=L+12|0;H=L+8|0;I=L+28|0;c[H>>2]=p;r=(c[f>>2]|0)+4|0;t=c[r>>2]|0;J=f+73|0;do if((a[J>>0]|0)!=4){s=Hn(t,c[f+60>>2]|0,f)|0;c[K>>2]=s;if(!s){if(!(c[f+16>>2]|0)){s=c[(c[r>>2]|0)+8>>2]|0;if(s)do{if((a[s+72>>0]&16)!=0?(E=s+24|0,(c[E>>2]|0)==(h|0)?(c[E+4>>2]|0)==(k|0):0):0)a[s+73>>0]=0;s=c[s+8>>2]|0}while((s|0)!=0);if((a[f+72>>0]&2)!=0&((k|0)>0|(k|0)==0&h>>>0>0)?(E=f+24|0,x=c[E>>2]|0,E=c[E+4>>2]|0,y=fw(h|0,k|0,-1,-1)|0,(x|0)==(y|0)&(E|0)==(C|0)):0)c[H>>2]=-1;else D=13}else D=13;if(((D|0)==13?(p|0)==0:0)?(q=Cp(f,g,h,k,o,H)|0,c[K>>2]=q,(q|0)!=0):0)break;F=f+76|0;G=c[f+(b[F>>1]<<2)+120>>2]|0;E=c[t+80>>2]|0;c[B>>2]=0;o=G+52|0;y=c[o>>2]|0;c[z>>2]=0;s=d[G+7>>0]|0;t=n+m|0;if(a[G+3>>0]|0){if(t>>>0<128){a[E+s>>0]=t;r=1}else r=(lm(E+s|0,t,((t|0)<0)<<31>>31)|0)&255;s=r+s|0}p=(lm(E+s|0,h,k)|0)+s|0;do if(!(a[G+2>>0]|0))if((k|0)>0|(k|0)==0&h>>>0>2147483647|(g|0)==0){c[u>>2]=58825;c[u+4>>2]=10788;Zc(11,13600,u);q=11;s=0;break}else{x=m;t=h;m=h;n=g;D=24;break}else{x=0;n=l;D=24}while(0);do if((D|0)==24){s=e[G+10>>1]|0;if((t|0)>(s|0)){r=e[G+12>>1]|0;o=(((t-r|0)>>>0)%(((c[(c[o>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+r|0;o=(o|0)>(s|0)?r:o;r=o+p|0;s=r+4|0;r=E+r|0}else{s=t+p|0;s=(s|0)<4?4:s;r=E;o=t}if((t|0)>0){h=y+17|0;v=y+36|0;w=y+32|0;g=m;u=E+p|0;k=r;p=0;m=o;while(1){if(!m){u=c[z>>2]|0;if(!(a[h>>0]|0))r=u;else{q=((c[2514]|0)>>>0)/((c[w>>2]|0)>>>0)|0;m=u;while(1){r=m+1|0;if(r>>>0<2)o=0;else{o=m+-1|0;o=o-((o>>>0)%(((((c[v>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;o=((o+1|0)==(q|0)?3:2)+o|0}if((o|0)==(r|0)|(m|0)==(q|0))m=r;else break}c[z>>2]=r}q=ep(y,B,z,r,0)|0;c[A>>2]=q;r=(q|0)==0;if((a[h>>0]|0)!=0&r){r=c[z>>2]|0;vp(y,r,(u|0)!=0?4:3,u,A);q=c[A>>2]|0;if(q){o=p;D=38;break}}else{if(!r)break;r=c[z>>2]|0}a[k>>0]=r>>>24;a[k+1>>0]=r>>>16;a[k+2>>0]=r>>>8;a[k+3>>0]=r;if(p)xg(c[p+68>>2]|0);q=c[B>>2]|0;u=q+56|0;k=c[u>>2]|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;u=(c[u>>2]|0)+4|0;m=(c[v>>2]|0)+-4|0}else q=p;r=(t|0)>(m|0)?m:t;if((g|0)>0){r=(r|0)>(g|0)?g:r;gw(u|0,n|0,r|0)|0}else bw(u|0,0,r|0)|0;t=t-r|0;o=(g|0)==(r|0);if((t|0)<=0){D=51;break}else{g=o?x:g-r|0;u=u+r|0;n=o?l:n+r|0;p=q;m=m-r|0}}if((D|0)==38){p=c[B>>2]|0;if(!p)p=o;else{xg(c[p+68>>2]|0);p=o}}else if((D|0)==51){if(!q){q=0;break}xg(c[q+68>>2]|0);q=0;break}if(p)xg(c[p+68>>2]|0)}else q=0}while(0);c[K>>2]=q;if(!q){q=f+(b[F>>1]<<1)+78|0;o=b[q>>1]|0;r=o&65535;p=c[H>>2]|0;if(!p){q=Cg(c[G+68>>2]|0)|0;c[K>>2]=q;if(q)break;q=r<<1;D=c[G+64>>2]|0;q=(c[G+56>>2]|0)+((d[D+q>>0]<<8|d[D+(q|1)>>0])&e[G+20>>1])|0;if(!(a[G+5>>0]|0)){D=d[q>>0]|d[q+1>>0]<<8|d[q+2>>0]<<16|d[q+3>>0]<<24;a[E>>0]=D;a[E+1>>0]=D>>8;a[E+2>>0]=D>>16;a[E+3>>0]=D>>24}c[K>>2]=Dp(G,q,I)|0;Ep(G,r,e[I>>1]|0,K);q=c[K>>2]|0;if(!q)q=r;else break}else if((p|0)<0?(b[G+18>>1]|0)!=0:0){D=o+1<<16>>16;b[q>>1]=D;q=D&65535}else q=r;Fp(G,q,E,s,0,0,K);b[f+44>>1]=0;q=c[K>>2]|0;if(!q)if(!(a[G+1>>0]|0))q=0;else{q=f+72|0;a[q>>0]=d[q>>0]&253;q=Gp(f)|0;c[K>>2]=q;a[(c[f+(b[F>>1]<<2)+120>>2]|0)+1>>0]=0;a[J>>0]=0}}}else q=s}else q=c[f+68>>2]|0;while(0);i=L;return q|0}function Fm(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();y=z+4|0;q=z+8|0;l=z;m=(c[f>>2]|0)+4|0;s=c[m>>2]|0;w=f+76|0;x=b[w>>1]|0;u=x<<16>>16;p=b[f+(u<<1)+78>>1]|0;v=p&65535;r=c[f+(u<<2)+120>>2]|0;do if((p&65535)<(e[r+18>>1]|0)?(a[f+73>>0]|0)==1:0){p=v<<1;t=c[r+64>>2]|0;p=(c[r+56>>2]|0)+((d[t+p>>0]<<8|d[t+(p|1)>>0])&e[r+20>>1])|0;t=r+5|0;if((a[t>>0]|0)==0?(c[l>>2]=0,k=Am(f,l)|0,c[y>>2]=k,(k|0)!=0):0){g=k;break}k=Hn(s,c[f+60>>2]|0,f)|0;c[y>>2]=k;if(!k){if((c[f+16>>2]|0)==0?(o=f+24|0,n=c[o>>2]|0,o=c[o+4>>2]|0,h=c[(c[m>>2]|0)+8>>2]|0,(h|0)!=0):0)do{if((a[h+72>>0]&16)!=0?(m=h+24|0,(c[m>>2]|0)==(n|0)?(c[m+4>>2]|0)==(o|0):0):0)a[h+73>>0]=0;h=c[h+8>>2]|0}while((h|0)!=0);h=Cg(c[r+68>>2]|0)|0;c[y>>2]=h;if(!h){c[y>>2]=Dp(r,p,q)|0;Ep(r,v,e[q>>1]|0,y);h=c[y>>2]|0;if(!h){if((a[t>>0]|0)==0?(p=c[f+(b[w>>1]<<2)+120>>2]|0,o=c[(c[f+(u+1<<2)+120>>2]|0)+72>>2]|0,l=c[p+56>>2]|0,q=p+18|0,m=e[q>>1]<<1,g=c[p+64>>2]|0,m=(d[g+(m+-2)>>0]<<8|d[g+(m+-1)>>0])&e[p+20>>1],g=(Hp(p,l+m|0)|0)&65535,n=c[s+80>>2]|0,c[y>>2]=Cg(c[p+68>>2]|0)|0,Fp(r,v,l+(m+-4)|0,g+4|0,n,o,y),Ep(p,(e[q>>1]|0)+-1|0,g,y),g=c[y>>2]|0,(g|0)!=0):0)break;g=Gp(f)|0;c[y>>2]=g;if(!g){g=b[w>>1]|0;if(g<<16>>16>x<<16>>16){do{h=g+-1<<16>>16;b[w>>1]=h;g=c[f+(g<<16>>16<<2)+120>>2]|0;if(!g)g=h;else{xg(c[g+68>>2]|0);g=b[w>>1]|0}}while(g<<16>>16>x<<16>>16);g=Gp(f)|0;c[y>>2]=g;if(g)break}mm(f)|0;g=0}}else g=h}else g=h}else g=k}else g=1;while(0);i=z;return g|0}function Gm(f,g,k,l){f=f|0;g=g|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;L=i;i=i+64|0;if((i|0)>=(j|0))ba();J=L+40|0;p=L+56|0;H=L;n=L+52|0;I=L+48|0;s=c[k+8>>2]|0;K=c[k>>2]|0;do if(!l){l=a[g>>0]|0;if(l<<24>>24>-1){l=l&255;c[p>>2]=l;m=1}else{m=im(g,p)|0;l=c[p>>2]|0}if(l>>>0>f>>>0){c[J>>2]=68267;c[J+4>>2]=10788;Zc(11,13600,J);a[k+7>>0]=11;m=0;break}else{G=l;p=l;l=0;n=m&255;o=15;break}}else{l=g+1|0;m=a[l>>0]|0;if(m<<24>>24>-1){l=m&255;c[n>>2]=l;o=1}else{o=im(l,n)|0;l=c[n>>2]|0}m=d[g>>0]|0;c[p>>2]=m;if(l>>>0>11)l=(l+-12|0)>>>1;else l=d[34336+l>>0]|0;G=m;p=l+m|0;l=1;n=(o&255)+1|0;s=s+40|0;o=15}while(0);do if((o|0)==15){w=H+12|0;x=K+4|0;y=H+10|0;z=K+12|0;A=H+32|0;B=H+8|0;D=H+16|0;F=k+7|0;E=k+4|0;v=p;u=n;a:while(1){n=e[s+8>>1]|0;do if(!(n&4)){if(n&8){o=a[g+u>>0]|0;p=o&255;c[I>>2]=p;if((o&255)>11){m=1;o=62;break a}if(!(o<<24>>24)){m=-1;o=62;break a}q=+h[s>>3];km(g+v|0,p,H)|0;if(o<<24>>24==7)r=+h[H>>3];else{m=H;r=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0)}if(r<q){m=-1;o=62;break a}if(r>q){m=1;o=62;break a}else break}do if(!(n&2)){o=g+u|0;t=a[o>>0]|0;p=t&255;if(!(n&16)){c[I>>2]=p;m=t<<24>>24!=0&1;break}if(t<<24>>24>-1)c[I>>2]=p;else{im(o,I)|0;p=c[I>>2]|0}if(!(p>>>0>11&(p&1|0)==0)){m=-1;o=62;break a}t=(p+-12|0)>>>1;if((t+v|0)>>>0>f>>>0){o=57;break a}o=c[s+12>>2]|0;m=Vv(g+v|0,c[s+16>>2]|0,(t|0)<(o|0)?t:o)|0;if(m){o=62;break a}m=t-o|0}else{p=g+u|0;o=a[p>>0]|0;if(o<<24>>24>-1){p=o&255;c[I>>2]=p}else{im(p,I)|0;p=c[I>>2]|0}if(p>>>0<12){m=-1;o=62;break a}if(!(p&1)){m=1;o=62;break a}n=(p+-12|0)>>>1;c[w>>2]=n;if((n+v|0)>>>0>f>>>0){o=46;break a}o=c[K+(l<<2)+20>>2]|0;if(o){a[y>>0]=a[x>>0]|0;c[A>>2]=c[z>>2];b[B>>1]=2;c[D>>2]=g+v;m=lp(H,s,o,F)|0;break}t=c[s+12>>2]|0;m=Vv(g+v|0,c[s+16>>2]|0,(n|0)<(t|0)?n:t)|0;if(m){o=62;break a}m=n-t|0}while(0);if(m){o=62;break a}}else{o=a[g+u>>0]|0;p=o&255;c[I>>2]=p;if((o&255)>11){m=1;o=62;break a}if(o<<24>>24==7){m=s;q=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0);km(g+v|0,p,H)|0;r=+h[H>>3];if(r<q){m=-1;o=62;break a}if(r>q){m=1;o=62;break a}else break}else if(!(o<<24>>24)){m=-1;o=62;break a}o=g+v|0;switch(p|0){case 1:case 0:{t=a[o>>0]|0;m=((t|0)<0)<<31>>31;break}case 4:{t=d[g+(v+1)>>0]<<16|d[o>>0]<<24|d[g+(v+2)>>0]<<8|d[g+(v+3)>>0];m=((t|0)<0)<<31>>31;break}case 3:{t=d[g+(v+1)>>0]<<8|a[o>>0]<<16|d[g+(v+2)>>0];m=((t|0)<0)<<31>>31;break}case 6:{m=d[g+(v+1)>>0]<<16|d[o>>0]<<24|d[g+(v+2)>>0]<<8|d[g+(v+3)>>0];t=d[g+(v+5)>>0]<<16|d[g+(v+4)>>0]<<24|d[g+(v+6)>>0]<<8|d[g+(v+7)>>0];break}case 2:{t=a[o>>0]<<8|d[g+(v+1)>>0];m=((t|0)<0)<<31>>31;break}case 5:{m=a[o>>0]<<8|d[g+(v+1)>>0];t=d[g+(v+3)>>0]<<16|d[g+(v+2)>>0]<<24|d[g+(v+4)>>0]<<8|d[g+(v+5)>>0];break}default:{m=0;t=p+-8|0}}n=s;o=c[n>>2]|0;n=c[n+4>>2]|0;if((m|0)<(n|0)|(m|0)==(n|0)&t>>>0<o>>>0){m=-1;o=62;break a}if((m|0)>(n|0)|(m|0)==(n|0)&t>>>0>o>>>0){m=1;o=62;break a}}while(0);l=l+1|0;s=s+40|0;if(p>>>0>11)n=(p+-12|0)>>>1;else n=d[34336+p>>0]|0;t=p;o=0;p=0;do{p=p+1|0;t=iw(t|0,o|0,7)|0;o=C}while(((t|0)!=0|(o|0)!=0)&(p|0)<9);v=n+v|0;u=p+u|0;if(u>>>0>=G>>>0){o=70;break}if(v>>>0>f>>>0?1:(l|0)>=(e[E>>1]|0)){o=70;break}}if((o|0)==46){c[J>>2]=68346;c[J+4>>2]=10788;Zc(11,13600,J);a[F>>0]=11;m=0;break}else if((o|0)==57){c[J>>2]=68375;c[J+4>>2]=10788;Zc(11,13600,J);a[F>>0]=11;m=0;break}else if((o|0)==62){m=(a[(c[K+16>>2]|0)+l>>0]|0)==0?m:0-m|0;break}else if((o|0)==70){m=a[k+6>>0]|0;break}}while(0);i=L;return m|0}function Hm(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))ba();A=B;y=B+12|0;z=B+8|0;m=b[f+76>>1]|0;o=c[f+(m<<2)+120>>2]|0;x=c[f+4>>2]|0;if(!(b[f+44>>1]|0)){s=o+56|0;m=e[f+(m<<1)+78>>1]<<1;r=c[o+64>>2]|0;np(o,(c[s>>2]|0)+((d[r+m>>0]<<8|d[r+(m|1)>>0])&e[o+20>>1])|0,f+24|0);m=f+72|0;a[m>>0]=d[m>>0]|2;m=s}else m=o+56|0;s=c[f+32>>2]|0;q=f+40|0;n=e[q>>1]|0;r=x+36|0;if((s+n|0)>>>0<=((c[m>>2]|0)+(c[r>>2]|0)|0)>>>0){if(n>>>0>g>>>0){p=(h+g|0)>>>0>n>>>0?n-g|0:h;n=s+g|0;if(l&1){m=Cg(c[o+68>>2]|0)|0;if(!m){gw(n|0,k|0,p|0)|0;m=0}}else{gw(k|0,n|0,p|0)|0;m=0}k=k+p|0;t=0;h=h-p|0}else{t=g-n|0;m=0}a:do if((m|0)==0&(h|0)!=0){m=c[r>>2]|0;w=m+-4|0;n=e[q>>1]|0;q=d[s+(n+1)>>0]<<16|d[s+n>>0]<<24|d[s+(n+2)>>0]<<8|d[s+(n+3)>>0];c[y>>2]=q;s=f+72|0;do if((l|0)!=2?(a[s>>0]&4)==0:0){m=((m+-5+(c[f+36>>2]|0)-n|0)>>>0)/(w>>>0)|0;g=f+64|0;if((m|0)>(c[g>>2]|0)){o=f+20|0;n=ng(c[o>>2]|0,m<<3,0)|0;if(!n){m=7;break}c[g>>2]=m<<1;c[o>>2]=n}bw(c[f+20>>2]|0,0,m<<2|0)|0;a[s>>0]=d[s>>0]|4;m=0}else m=0;while(0);g=a[s>>0]|0;if((g&4)!=0?(v=(t>>>0)/(w>>>0)|0,u=c[(c[f+20>>2]|0)+(v<<2)>>2]|0,(u|0)!=0):0){c[y>>2]=u;p=(t>>>0)%(w>>>0)|0;o=u;q=v}else{p=t;o=q;q=0}if((m|0)==0&(o|0)!=0){u=l&1;v=u<<1^2;u=(u|0)==0;l=f+20|0;while(1){if(g&4)c[(c[l>>2]|0)+(q<<2)>>2]=o;if(p>>>0<w>>>0){r=(p+h|0)>>>0>w>>>0?w-p|0:h;m=vg(c[x>>2]|0,o,z,v)|0;if(!m){g=c[z>>2]|0;n=c[g+4>>2]|0;o=d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|d[n+3>>0];c[y>>2]=o;n=n+(p+4)|0;if(!u){m=Cg(g)|0;if(!m){gw(n|0,k|0,r|0)|0;m=0}}else{gw(k|0,n|0,r|0)|0;m=0}if(!g)p=0;else{xg(g);p=0}}h=h-r|0;k=k+r|0;q=q+1|0}else{g=q+1|0;m=c[(c[l>>2]|0)+(g<<2)>>2]|0;if(!m){m=Ip(x,o,0,y)|0;o=c[y>>2]|0}else{c[y>>2]=m;o=m;m=0}p=p-w|0;q=g}if(!((m|0)==0&(h|0)!=0&(o|0)!=0))break a;g=a[s>>0]|0}}}while(0);if((m|0)==0&(h|0)!=0){c[A>>2]=57357;c[A+4>>2]=10788;Zc(11,13600,A);m=11}}else{c[A>>2]=57202;c[A+4>>2]=10788;Zc(11,13600,A);m=11}i=B;return m|0}function Im(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a>>2]|0;d=a+44|0;ig(e,c[d>>2]|0);a=b+8|0;c[d>>2]=gh(e,c[a>>2]|0)|0;Sc(c[a>>2]|0);c[a>>2]=0;return}function Jm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();k=r+4|0;p=r;q=e+12|0;if(!(c[q>>2]|0)){h=e+8|0;g=Bm(c[(c[h>>2]|0)+28>>2]|0,0,0,k)|0;c[q>>2]=g;if(!(c[k>>2]|0))g=7;else{b[g+4>>1]=b[(c[(c[h>>2]|0)+28>>2]|0)+6>>1]|0;a[g+7>>0]=0;l=4}}else l=4;if((l|0)==4){o=mg(256,0)|0;if(!o)g=7;else{bw(o|0,0,256)|0;g=c[f>>2]|0;c[p>>2]=g;if(g){n=f+4|0;while(1){h=c[n>>2]|0;if(h)if((g|0)==(h|0))m=0;else m=h+(c[g+4>>2]|0)|0;else m=c[g+4>>2]|0;c[g+4>>2]=0;l=c[o>>2]|0;k=c[p>>2]|0;if(!l)l=o;else{h=o;g=0;do{Jp(e,k,l,p);c[h>>2]=0;g=g+1|0;h=o+(g<<2)|0;l=c[h>>2]|0;k=c[p>>2]|0}while((l|0)!=0);l=h}c[l>>2]=k;c[p>>2]=m;if(!m)break;else g=m}}c[p>>2]=0;g=0;h=0;do{Jp(e,g,c[o+(h<<2)>>2]|0,p);h=h+1|0;g=c[p>>2]|0}while((h|0)!=64);c[f>>2]=g;Sc(o);g=d[(c[q>>2]|0)+7>>0]|0}}i=r;return g|0}function Km(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+64|0;if((i|0)>=(j|0))ba();m=o+40|0;n=o;a[b+56>>0]=1;g=b+64|0;l=b+36|0;k=b+72|0;h=c[(c[k>>2]|0)+24>>2]|0;f=n+0|0;e=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(e|0));f=b+96|0;if(!((c[f>>2]|0)==0?(d=Kp(h,f)|0,(d|0)!=0):0)){d=Jm(g,l)|0;if(!d){g=b+104|0;d=g;Lp(c[f>>2]|0,n,c[(c[k>>2]|0)+12>>2]|0,c[d>>2]|0,c[d+4>>2]|0);d=b+92|0;c[d>>2]=(c[d>>2]|0)+1;d=c[b+44>>2]|0;Mp(n,m,lm(m,d,((d|0)<0)<<31>>31)|0);d=c[l>>2]|0;if(d){f=b+40|0;do{e=d;d=c[d+4>>2]|0;b=c[e>>2]|0;Mp(n,m,lm(m,b,((b|0)<0)<<31>>31)|0);Mp(n,e+8|0,c[e>>2]|0);if(!(c[f>>2]|0))Sc(e)}while((d|0)!=0)}c[l>>2]=0;d=Np(n,g)|0}}i=o;return d|0}function Lm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();p=r;g=d;k=c[g>>2]|0;g=c[g+4>>2]|0;q=Mm(b)|0;c[e>>2]=q;h=(q|0)==0;f=h?7:0;h=h^1;if((b|0)>0&h){o=q+12|0;n=a+32|0;m=0;do{h=c[o>>2]|0;l=h+(m*56|0)|0;f=Op(a,l,n,k,g)|0;if(!f){f=Pp(l,p)|0;g=l;k=p;g=fw(c[k>>2]|0,c[k+4>>2]|0,c[g>>2]|0,c[g+4>>2]|0)|0;k=h+(m*56|0)+8|0;h=k;c[h>>2]=g;c[h+4>>2]=C;if(!f)f=Qp(l)|0}else k=h+(m*56|0)+8|0;g=k;k=c[g>>2]|0;g=c[g+4>>2]|0;m=m+1|0;h=(f|0)==0}while((m|0)<(b|0)&h)}if(!h){Pm(q);c[e>>2]=0}b=d;c[b>>2]=k;c[b+4>>2]=g;i=r;return f|0}function Mm(a){a=a|0;var b=0,d=0;b=2;while(1)if((b|0)<(a|0))b=b<<1;else{d=b;break}b=c[2252]|0;if((b|0)!=0?(hc[b&127](100)|0)!=0:0)b=0;else{a=(d*60|0)+16|0;b=mg(a,((a|0)<0)<<31>>31)|0;if(!b)b=0;else{bw(b|0,0,a|0)|0;c[b>>2]=d;c[b+4>>2]=0;a=b+16|0;c[b+12>>2]=a;c[b+8>>2]=a+(d*56|0)}}return b|0}function Nm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=c[2252]|0;if((f|0)!=0?(hc[f&127](100)|0)!=0:0){f=0;i=6}else i=3;do if((i|0)==3){f=mg(64,0)|0;if(!f){i=6;break}else{g=f+0|0;h=g+64|0;do{a[g>>0]=0;g=g+1|0}while((g|0)<(h|0));c[e>>2]=f;c[f+4>>2]=d;c[f>>2]=b;h=c[b+8>>2]|0;g=(c[h+8>>2]|0)+9|0;h=(c[h+4>>2]|0)/2|0;h=(g|0)>(h|0)?g:h;c[f+16>>2]=h;f=b+56|0;g=f;g=fw(h|0,((h|0)<0)<<31>>31|0,c[g>>2]|0,c[g+4>>2]|0)|0;c[f>>2]=g;c[f+4>>2]=C;f=0;break}}while(0);if((i|0)==6){c[e>>2]=f;Pm(d);f=7}return f|0}function Om(a){a=a|0;if(a){Pm(c[a+4>>2]|0);Sc(a)}return}function Pm(a){a=a|0;var b=0,d=0;if((a|0)!=0?(c[a>>2]|0)>0:0){b=a+12|0;d=0;do{Rp((c[b>>2]|0)+(d*56|0)|0);d=d+1|0}while((d|0)<(c[a>>2]|0))}Sc(a);return}function Qm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=c[b>>2]|0;r=b+4|0;c[r>>2]=a;a:do if((n|0)>0){o=b+12|0;p=0;do{l=c[o>>2]|0;j=l+(p*56|0)|0;l=c[l+(p*56|0)+48>>2]|0;if(l){m=c[l>>2]|0;i=c[(c[m+8>>2]|0)+24>>2]|0;e=Qm(m,c[l+4>>2]|0)|0;if(e)break a;k=c[l+16>>2]|0;g=m+48|0;h=c[g>>2]|0;f=m+56|0;if(!h){e=Kp(i,g)|0;i=f;c[i>>2]=0;c[i+4>>2]=0;if(e)break a;h=c[g>>2]|0;g=0;f=0}else{g=c[f>>2]|0;f=c[f+4>>2]|0}c[l+48>>2]=h;l=l+8|0;c[l>>2]=g;c[l+4>>2]=f;l=fw(g|0,f|0,k|0,((k|0)<0)<<31>>31|0)|0;e=m+56|0;c[e>>2]=l;c[e+4>>2]=C;e=Qp(j)|0;if(e)break a}p=p+1|0}while((p|0)<(n|0));e=c[b>>2]|0;q=12}else{e=n;q=12}while(0);if((q|0)==12){f=e+-1|0;b:do if((f|0)>0){j=b+12|0;k=b+8|0;h=e;g=e;i=f;while(1){e=(h|0)/2|0;if((g|0)>(e|0)){g=i-e<<1;e=g;g=g|1}else{g=i<<1;n=c[k>>2]|0;e=c[n+(g<<2)>>2]|0;g=c[n+((g|1)<<2)>>2]|0}f=c[j>>2]|0;if(c[f+(e*56|0)+24>>2]|0){if(c[f+(g*56|0)+24>>2]|0){n=(Sp(c[r>>2]|0,c[f+(e*56|0)+32>>2]|0,c[f+(e*56|0)+20>>2]|0,c[f+(g*56|0)+32>>2]|0,c[f+(g*56|0)+20>>2]|0)|0)<1;e=n?e:g}}else e=g;c[(c[k>>2]|0)+(i<<2)>>2]=e;e=i+-1|0;if((e|0)<=0)break b;g=i;h=c[b>>2]|0;i=e}}while(0);e=d[(c[a+12>>2]|0)+7>>0]|0}return e|0}function Rm(f){f=f|0;var g=0,h=0,i=0,j=0,k=0;i=f+76|0;do{g=b[i>>1]|0;h=c[f+(g<<2)+120>>2]|0;if(a[h+5>>0]|0){g=0;break}j=c[h+56>>2]|0;g=e[f+(g<<1)+78>>1]<<1;k=c[h+64>>2]|0;g=(d[k+g>>0]<<8|d[k+(g|1)>>0])&e[h+20>>1];g=nm(f,d[j+(g+1)>>0]<<16|d[j+g>>0]<<24|d[j+(g+2)>>0]<<8|d[j+(g+3)>>0])|0}while((g|0)==0);return g|0}function Sm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;q=a+8|0;g=c[(c[q>>2]|0)+4>>2]|0;u=c[a+4>>2]|0;s=a+12|0;e=Qp((c[s>>2]|0)+(g*56|0)|0)|0;if(!e){e=c[s>>2]|0;f=g|1;a=(c[a>>2]|0)+g|0;a:do if((a|0)>1){m=e;n=a;i=c[e+(f*56|0)+32>>2]|0;o=e+((g&65534)*56|0)|0;g=e+(f*56|0)|0;while(1){p=o+24|0;j=o;k=o+32|0;l=o+20|0;e=m;h=n;a=i;while(1){f=h;h=(h|0)/2|0;if(!(c[p>>2]|0)){i=a;break}if(((c[g+24>>2]|0)!=0?(r=Sp(u,c[k>>2]|0,c[l>>2]|0,a,c[g+20>>2]|0)|0,(r|0)>=0):0)?!((r|0)==0&o>>>0<g>>>0):0){t=10;break}i=c[s>>2]|0;a=c[q>>2]|0;c[a+(h<<2)>>2]=(j-i|0)/56|0;g=c[a+((h^1)<<2)>>2]|0;if((f|0)<=3){e=i;break a}else{e=i;a=c[i+(g*56|0)+32>>2]|0;g=i+(g*56|0)|0}}if((t|0)==10){t=0;e=c[s>>2]|0;i=(c[p>>2]|0)==0?a:0}a=c[q>>2]|0;c[a+(h<<2)>>2]=(g-e|0)/56|0;if((f|0)>3){m=e;n=h;o=e+((c[a+((h^1)<<2)>>2]|0)*56|0)|0}else break}}else a=c[q>>2]|0;while(0);c[b>>2]=(c[e+((c[a+4>>2]|0)*56|0)+24>>2]|0)==0&1;e=d[(c[u+12>>2]|0)+7>>0]|0}return e|0}function Tm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=b+4|0;g=c[f>>2]|0;c[g+4>>2]=c[b>>2];b=Hn(g,d,0)|0;if(!b){b=c[(c[f>>2]|0)+8>>2]|0;if(b)do{if(a[b+72>>0]&16)a[b+73>>0]=0;b=c[b+8>>2]|0}while((b|0)!=0);b=Tp(g,d,0,e)|0}return b|0}function Um(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+32|0;if((i|0)>=(j|0))ba();q=z;y=z+16|0;x=z+12|0;w=z+8|0;c[y>>2]=0;m=c[f+12>>2]|0;if(!g){g=Up(f,h)|0;c[x>>2]=g}else{c[x>>2]=g;r=(c[g+68>>2]|0)+26|0;b[r>>1]=(b[r>>1]|0)+1<<16>>16}l=Cg(c[m+68>>2]|0)|0;c[w>>2]=l;do if(!l){r=m+56|0;p=c[r>>2]|0;A=p+36|0;l=p+37|0;m=p+38|0;p=p+39|0;n=d[l>>0]<<16|d[A>>0]<<24|d[m>>0]<<8|d[p>>0];o=n+1|0;a[A>>0]=o>>>24;a[l>>0]=o>>>16;a[m>>0]=o>>>8;a[p>>0]=o;p=f+22|0;if(b[p>>1]&4){if(!g){m=$k(f,h,x,0)|0;c[w>>2]=m;if(m){k=m;break}g=c[x>>2]|0}m=Cg(c[g+68>>2]|0)|0;c[w>>2]=m;if(m){k=m;break}bw(c[g+56>>2]|0,0,c[(c[g+52>>2]|0)+32>>2]|0)|0}if((a[f+17>>0]|0)!=0?(vp(f,h,2,0,w),k=c[w>>2]|0,(k|0)!=0):0)break;if(n){l=c[r>>2]|0;l=d[l+33>>0]<<16|d[l+32>>0]<<24|d[l+34>>0]<<8|d[l+35>>0];k=$k(f,l,y,0)|0;c[w>>2]=k;if(k)break;k=c[y>>2]|0;o=k+56|0;n=c[o>>2]|0;n=d[n+5>>0]<<16|d[n+4>>0]<<24|d[n+6>>0]<<8|d[n+7>>0];m=(c[f+36>>2]|0)>>>2;if(n>>>0>(m+-2|0)>>>0){c[q>>2]=58627;c[q+4>>2]=10788;Zc(11,13600,q);c[w>>2]=11;k=11;break}if(n>>>0<(m+-8|0)>>>0){k=Cg(c[k+68>>2]|0)|0;c[w>>2]=k;if(k)break;r=c[o>>2]|0;q=n+1|0;a[r+4>>0]=q>>>24;a[r+5>>0]=q>>>16;a[r+6>>0]=q>>>8;a[r+7>>0]=q;r=n<<2;q=c[o>>2]|0;a[q+(r+8)>>0]=h>>>24;a[q+(r+9)>>0]=h>>>16;a[q+(r+10)>>0]=h>>>8;a[q+(r+11)>>0]=h;if((((g|0)!=0?(b[p>>1]&4)==0:0)?(s=c[g+68>>2]|0,t=s+24|0,u=e[t>>1]|0,(u&2|0)!=0):0)?(c[(c[s+16>>2]|0)+96>>2]|0)==0:0)b[t>>1]=u|32;l=f+60|0;k=c[l>>2]|0;do if(!k){g=c[f+44>>2]|0;k=mg(512,0)|0;if(!k){c[l>>2]=0;k=7;break}else{bw(k|0,0,512)|0;c[k>>2]=g;c[l>>2]=k;v=28;break}}else v=28;while(0);if((v|0)==28)if((c[k>>2]|0)>>>0<h>>>0)k=0;else k=Zh(k,h)|0;c[w>>2]=k;break}}else l=0;if(!g){k=$k(f,h,x,0)|0;c[w>>2]=k;if(k)break;g=c[x>>2]|0}k=Cg(c[g+68>>2]|0)|0;c[w>>2]=k;if(!k){k=g+56|0;s=c[k>>2]|0;a[s>>0]=l>>>24;a[s+1>>0]=l>>>16;a[s+2>>0]=l>>>8;a[s+3>>0]=l;k=(c[k>>2]|0)+4|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;k=c[r>>2]|0;a[k+32>>0]=h>>>24;a[k+33>>0]=h>>>16;a[k+34>>0]=h>>>8;a[k+35>>0]=h;k=0}}else k=l;while(0);g=c[x>>2]|0;if(g){a[g>>0]=0;xg(c[g+68>>2]|0)}g=c[y>>2]|0;if(g)xg(c[g+68>>2]|0);i=z;return k|0}function Vm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+48|0;if((i|0)>=(j|0))ba();M=P+24|0;D=P;w=P+36|0;N=P+32|0;t=g+72|0;L=c[t>>2]|0;u=c[f>>2]|0;r=c[g+68>>2]|0;s=u+15|0;if((a[s>>0]|0)!=0?(n=Cg(r)|0,(n|0)!=0):0)O=20;else O=3;a:do if((O|0)==3){o=r+24|0;q=b[o>>1]|0;if((q&2)!=0?(Qo(r)|0)!=0:0){n=Ro(r)|0;if(n){O=20;break}q=b[o>>1]|0}if((q&4)==0|(m|0)!=0)p=0;else p=c[r+20>>2]|0;b[o>>1]=q&65531;A=u+204|0;m=Yb[c[8744+132>>2]&63](c[(c[A>>2]|0)+40>>2]|0,l,0)|0;m=el(c[A>>2]|0,l,m)|0;do if(m){b[o>>1]=e[o>>1]|e[m+24>>1]&4;if(!(a[s>>0]|0)){il(m);break}else{Vp(m,(c[u+24>>2]|0)+1|0);break}}while(0);q=c[r+20>>2]|0;Vp(r,l);Po(r);if(a[s>>0]|0){Vp(m,q);xg(m)}do if(p){n=vg(u,p,M,0)|0;if(!n){A=c[M>>2]|0;z=A+24|0;b[z>>1]=e[z>>1]|4;Po(A);xg(A);break}if(p>>>0>(c[u+28>>2]|0)>>>0){O=20;break a}_h(c[u+56>>2]|0,p,c[u+200>>2]|0);O=20;break a}while(0);c[N>>2]=0;c[t>>2]=l;if(h<<24>>24==1|h<<24>>24==5){n=Wp(g)|0;c[N>>2]=n;if(!n)O=25;else break}else{m=c[g+56>>2]|0;m=d[m+1>>0]<<16|d[m>>0]<<24|d[m+2>>0]<<8|d[m+3>>0];if(m){vp(f,m,4,l,N);n=c[N>>2]|0;if(!n)O=25;else break}}if((O|0)==25?h<<24>>24==1:0){n=0;break}n=$k(f,k,w,0)|0;c[N>>2]=n;if(!n){z=c[w>>2]|0;A=z+68|0;n=Cg(c[A>>2]|0)|0;c[N>>2]=n;if(n){if(!z)break;xg(c[A>>2]|0);break}b:do if(h<<24>>24==4){n=c[z+56>>2]|0;o=n+1|0;p=n+2|0;m=n+3|0;if((d[o>>0]<<16|d[n>>0]<<24|d[p>>0]<<8|d[m>>0]|0)==(L|0)){a[n>>0]=l>>>24;a[o>>0]=l>>>16;a[p>>0]=l>>>8;a[m>>0]=l;n=0;break}else{c[M>>2]=56060;c[M+4>>2]=10788;Zc(11,13600,M);n=11;break}}else{x=a[z>>0]|0;Xp(z)|0;w=b[z+18>>1]|0;y=w&65535;c:do if(w<<16>>16){g=z+56|0;u=z+20|0;r=z+64|0;v=h<<24>>24==3;w=D+18|0;m=0;while(1){t=c[g>>2]|0;s=m<<1;q=c[r>>2]|0;s=(d[q+s>>0]<<8|d[q+(s|1)>>0])&e[u>>1];q=t+s|0;if(v){np(z,q,D);q=b[w>>1]|0;if((q<<16>>16!=0?(B=(q&65535)+s|0,C=t+(B+3)|0,C>>>0<=((c[g>>2]|0)+(e[u>>1]|0)|0)>>>0):0)?(E=t+B|0,F=t+(B+1)|0,G=t+(B+2)|0,(d[F>>0]<<16|d[E>>0]<<24|d[G>>0]<<8|d[C>>0]|0)==(L|0)):0){q=C;n=E;o=F;p=G;O=40;break}}else{n=t+(s+1)|0;o=t+(s+2)|0;p=t+(s+3)|0;if((d[n>>0]<<16|d[q>>0]<<24|d[o>>0]<<8|d[p>>0]|0)==(L|0)){O=42;break}}m=m+1|0;if((m|0)>=(y|0))break c}if((O|0)==40){a[n>>0]=l>>>24;a[o>>0]=l>>>16;a[p>>0]=l>>>8;a[q>>0]=l;break}else if((O|0)==42){a[q>>0]=l>>>24;a[n>>0]=l>>>16;a[o>>0]=l>>>8;a[p>>0]=l;break}}else m=0;while(0);do if((m|0)==(y|0)){if(h<<24>>24==5?(K=d[z+6>>0]|0,G=c[z+56>>2]|0,H=G+(K+8)|0,I=G+(K+9)|0,J=G+(K+10)|0,K=G+(K+11)|0,(d[I>>0]<<16|d[H>>0]<<24|d[J>>0]<<8|d[K>>0]|0)==(L|0)):0){a[H>>0]=l>>>24;a[I>>0]=l>>>16;a[J>>0]=l>>>8;a[K>>0]=l;break}c[M>>2]=56094;c[M+4>>2]=10788;Zc(11,13600,M);n=11;break b}while(0);a[z>>0]=x;n=0}while(0);c[N>>2]=n;if(z)xg(c[A>>2]|0);if(!n){vp(f,l,h,k,N);n=c[N>>2]|0}}}while(0);if((O|0)==20)c[N>>2]=n;i=P;return n|0}function Wm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=e+20|0;Pm(c[j>>2]|0);c[j>>2]=0;j=e+59|0;if(a[j>>0]|0){k=0;do{g=e+(k<<6)+76|0;ig(b,c[g>>2]|0);c[g>>2]=0;g=e+(k<<6)+80|0;h=c[g>>2]|0;if(h)do{i=h;h=c[h+4>>2]|0;if(i)Sc(i)}while((h|0)!=0);c[g>>2]=0;h=e+(k<<6)+96|0;g=c[h>>2]|0;if(g){i=c[g>>2]|0;if(i){hc[c[i+4>>2]&127](g)|0;c[g>>2]=0}Sc(g);c[h>>2]=0;g=e+(k<<6)+104|0;c[g>>2]=0;c[g+4>>2]=0}i=e+(k<<6)+112|0;h=c[i>>2]|0;if(h){g=c[h>>2]|0;if(g){hc[c[g+4>>2]&127](h)|0;c[h>>2]=0}Sc(h);c[i>>2]=0;g=e+(k<<6)+120|0;c[g>>2]=0;c[g+4>>2]=0}k=k+1|0}while((k|0)<(d[j>>0]|0))}h=e+36|0;if((c[e+40>>2]|0)==0?(f=c[h>>2]|0,(f|0)!=0):0)do{g=f;f=c[f+4>>2]|0;if(g)Sc(g)}while((f|0)!=0);c[h>>2]=0;c[e+44>>2]=0;a[e+56>>0]=0;c[e+48>>2]=0;c[e+8>>2]=0;f=e+32|0;ig(b,c[f>>2]|0);c[f>>2]=0;return}function Xm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();k=r+4|0;o=r;p=c[d>>2]|0;m=c[d+8>>2]|0;n=c[p+16>>2]|0;l=(c[n+(m<<4)+12>>2]|0)+78|0;b[l>>1]=e[l>>1]&65531;l=p+65|0;do if(!(a[l>>0]|0))if(g){q=g+4|0;f=c[q>>2]|0;if(!f){Yp(d,c[g>>2]|0,0);h=0;break}h=g+8|0;s=c[h>>2]|0;if((s|0)!=0?(a[s>>0]|0)!=0:0){n=p+144|0;a[n>>0]=m;c[k>>2]=0;zn(f,k)|0;f=c[h>>2]|0;c[p+140>>2]=c[k>>2];q=p+146|0;a[q>>0]=0;eh(p,f,-1,0,0,o,0)|0;f=c[p+52>>2]|0;a[n>>0]=0;do if((f|0)!=0?(a[q>>0]|0)==0:0){c[d+12>>2]=f;if((f|0)==7){a[l>>0]=1;break}else if((f|0)==9)break;if((f&255|0)!=6){q=c[g>>2]|0;Yp(d,q,Oe(p)|0)}}while(0);id(c[o>>2]|0)|0;h=0;break}f=c[g>>2]|0;if(!f){Yp(d,0,0);h=0;break}f=Zp(p,f,c[n+(m<<4)>>2]|0)|0;if((f|0)!=0?(zn(c[q>>2]|0,f+40|0)|0)==0:0){Yp(d,c[g>>2]|0,13528);h=0}else h=0}else h=0;else{Yp(d,c[g>>2]|0,0);h=1}while(0);i=r;return h|0}function Ym(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;l=m+8|0;h=b+16|0;f=c[h>>2]|0;g=c[(c[f+(d<<4)+12>>2]|0)+32>>2]|0;if(g){f=g;do{_p(c[f+8>>2]|0);f=c[f>>2]|0}while((f|0)!=0);f=c[h>>2]|0}c[l>>2]=b;f=c[f+(d<<4)>>2]|0;c[l+4>>2]=f;do if(!(Wh(b,13384,f)|0))e=1;else{c[k>>2]=f;f=qh(b,13400,k)|0;if((f|0)!=0?(e=Me(b,f,23,l,0)|0,ig(b,f),(e|0)!=7):0)break;a[b+65>>0]=1;e=7}while(0);i=m;return e|0}function Zm(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;j=c[b+12>>2]|0;if(!j){h=b+4|0;g=b+8|0;i=0}else{h=a[e>>0]|0;if(!(h<<24>>24))h=0;else{g=e;i=h;h=0;do{g=g+1|0;h=h<<3^h^(d[9328+(i&255)>>0]|0);i=a[g>>0]|0}while(i<<24>>24!=0)}i=(h>>>0)%((c[b>>2]|0)>>>0)|0;h=j+(i<<3)|0;g=j+(i<<3)+4|0}h=c[h>>2]|0;g=c[g>>2]|0;c[f>>2]=i;a:do if(!h)g=0;else while(1){h=h+-1|0;if(!($c(c[g+12>>2]|0,e)|0))break a;if(!h){g=0;break}else g=c[g>>2]|0}while(0);return g|0}function _m(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();t=u;s=u+12|0;a:do if((g|0)>0){q=b+16|0;r=b+4|0;p=(e|0)==0;h=f;e=g;while(1){m=e+-1|0;if(!(c[q>>2]|0))break a;if((h|0)<1){h=e;e=5;break}if(aq(b,h)|0)break a;if(vg(c[r>>2]|0,h,s,0)|0){e=8;break}n=c[s>>2]|0;o=c[n+4>>2]|0;do if(p)if((m|0)>0?(a[(c[b>>2]|0)+17>>0]|0)!=0:0){$m(b,d[o+1>>0]<<16|d[o>>0]<<24|d[o+2>>0]<<8|d[o+3>>0],4,h);e=m}else e=m;else{l=d[o+5>>0]<<16|d[o+4>>0]<<24|d[o+6>>0]<<8|d[o+7>>0];k=c[b>>2]|0;if(a[k+17>>0]|0){$m(b,h,2,0);k=c[b>>2]|0}if((l|0)>(((c[k+36>>2]|0)/4|0)+-2|0)){c[t>>2]=h;bn(b,44640,t);e=e+-2|0;break}b:do if((l|0)>0){e=0;while(1){h=e<<2;h=d[o+(h+9)>>0]<<16|d[o+(h+8)>>0]<<24|d[o+(h+10)>>0]<<8|d[o+(h+11)>>0];if(a[k+17>>0]|0)$m(b,h,2,0);aq(b,h)|0;e=e+1|0;if((e|0)==(l|0))break b;k=c[b>>2]|0}}while(0);e=m-l|0}while(0);h=d[o+1>>0]<<16|d[o>>0]<<24|d[o+2>>0]<<8|d[o+3>>0];if(n)xg(n);if((e|0)<=0)break a}if((e|0)==5){c[t>>2]=h;c[t+4>>2]=g;c[t+8>>2]=f;bn(b,44552,t);break}else if((e|0)==8){c[t>>2]=h;bn(b,44616,t);break}}while(0);i=u;return}function $m(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();l=n;h=n+24|0;k=n+20|0;g=dp(c[b>>2]|0,d,h,k)|0;if((g|0)==7|(g|0)==3082){c[b+24>>2]=1;m=3}else if(!g){h=a[h>>0]|0;g=c[k>>2]|0;if(!((g|0)==(f|0)?h<<24>>24==e<<24>>24:0)){c[l>>2]=d;c[l+4>>2]=e&255;c[l+8>>2]=f;c[l+12>>2]=h&255;c[l+16>>2]=g;bn(b,44496,l)}}else m=3;if((m|0)==3){c[l>>2]=d;bn(b,44464,l)}i=n;return}function an(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=i;i=i+64|0;if((i|0)>=(j|0))ba();S=Z+40|0;o=Z+56|0;N=Z+32|0;O=Z+24|0;K=Z;X=N;c[X>>2]=0;c[X+4>>2]=0;X=O;c[X>>2]=0;c[X+4>>2]=0;X=f+28|0;Y=c[X>>2]|0;T=f+32|0;U=c[T>>2]|0;V=f+36|0;W=c[V>>2]|0;P=c[f>>2]|0;J=P+36|0;Q=c[J>>2]|0;if((g|0)!=0?(aq(f,g)|0)==0:0){c[X>>2]=43768;c[T>>2]=g;p=$k(P,g,o,0)|0;do if(!p){R=c[o>>2]|0;a[R>>0]=0;p=Xp(R)|0;if(p){c[S>>2]=p;bn(f,43824,S);if(!R){l=-1;break}xg(c[R+68>>2]|0);l=-1;break}w=f+16|0;L=R+18|0;p=b[L>>1]|0;a:do if(!(p<<16>>16)){q=R+5|0;p=0;l=0}else{x=R+56|0;y=R+20|0;z=R+64|0;A=K+12|0;B=R+2|0;C=K+16|0;D=Q+-5|0;E=Q+-4|0;F=P+17|0;G=R+5|0;t=0;u=0;while(1){if(!(c[w>>2]|0)){q=G;l=t;break a}c[X>>2]=43864;c[T>>2]=g;c[V>>2]=u;o=c[x>>2]|0;p=u<<1;q=c[z>>2]|0;p=(d[q+p>>0]<<8|d[q+(p|1)>>0])&e[y>>1];q=o+p|0;np(R,q,K);r=c[A>>2]|0;if(a[B>>0]|0){l=K;v=c[l>>2]|0;l=c[l+4>>2]|0;if(u){n=O;m=c[n>>2]|0;n=c[n+4>>2]|0;if(!((l|0)>(n|0)|(l|0)==(n|0)&v>>>0>m>>>0)){s=S;c[s>>2]=v;c[s+4>>2]=l;s=S+8|0;c[s>>2]=m;c[s+4>>2]=n;bn(f,43896,S)}}else{m=O;c[m>>2]=v;c[m+4>>2]=l;m=N;c[m>>2]=v;c[m+4>>2]=l}m=O;c[m>>2]=v;c[m+4>>2]=l}v=c[C>>2]|0;l=v&65535;if(r>>>0>l>>>0?(H=(v>>>16)+p|0,I=o+H|0,I>>>0<=((c[x>>2]|0)+(c[J>>2]|0)|0)>>>0):0){v=d[o+(H+1)>>0]<<16|d[I>>0]<<24|d[o+(H+2)>>0]<<8|d[o+(H+3)>>0];if(a[F>>0]|0)$m(f,v,3,g);_m(f,0,v,((D+r-l|0)>>>0)/(E>>>0)|0)}if(!(a[G>>0]|0)){s=d[o+(p+1)>>0]<<16|d[q>>0]<<24|d[o+(p+2)>>0]<<8|d[o+(p+3)>>0];if(a[F>>0]|0)$m(f,s,5,g);l=an(f,s,N,(u|0)==0?0:O)|0;if(!((u|0)<1|(l|0)==(t|0)))bn(f,43944,S)}else l=t;u=u+1|0;p=b[L>>1]|0;if((u|0)>=(p&65535|0)){q=G;break}else t=l}}while(0);if(!(a[q>>0]|0)){o=d[R+6>>0]|0;G=c[R+56>>2]|0;o=d[G+(o+9)>>0]<<16|d[G+(o+8)>>0]<<24|d[G+(o+10)>>0]<<8|d[G+(o+11)>>0];c[X>>2]=43976;c[T>>2]=g;if(a[P+17>>0]|0){$m(f,o,5,g);p=b[L>>1]|0}an(f,o,0,p<<16>>16!=0?O:0)|0;G=a[q>>0]|0;c[X>>2]=43768;c[T>>2]=g;if(G<<24>>24)M=34}else{c[X>>2]=43768;c[T>>2]=g;M=34}do if((M|0)==34?(a[R+2>>0]|0)!=0:0){o=(k|0)!=0;if(!h){if(!o)break;o=N;p=c[o>>2]|0;o=c[o+4>>2]|0;m=k;n=c[m>>2]|0;m=c[m+4>>2]|0;if((o|0)>(m|0)|(o|0)==(m|0)&p>>>0>n>>>0)break;G=S;c[G>>2]=p;c[G+4>>2]=o;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44200,S);break}if(!o){p=O;o=c[p>>2]|0;p=c[p+4>>2]|0;m=h;n=c[m>>2]|0;m=c[m+4>>2]|0;if(!((p|0)>(m|0)|(p|0)==(m|0)&o>>>0>n>>>0))break;G=S;c[G>>2]=o;c[G+4>>2]=p;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44008,S);break}o=N;p=c[o>>2]|0;o=c[o+4>>2]|0;m=h;n=c[m>>2]|0;m=c[m+4>>2]|0;if(!((o|0)>(m|0)|(o|0)==(m|0)&p>>>0>n>>>0)){G=S;c[G>>2]=p;c[G+4>>2]=o;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44072,S)}n=O;m=c[n>>2]|0;n=c[n+4>>2]|0;o=k;p=c[o>>2]|0;o=c[o+4>>2]|0;if((n|0)>(o|0)|(n|0)==(o|0)&m>>>0>p>>>0){G=S;c[G>>2]=m;c[G+4>>2]=n;n=S+8|0;c[n>>2]=p;c[n+4>>2]=o;bn(f,44136,S);n=O;m=c[n>>2]|0;n=c[n+4>>2]|0}G=h;c[G>>2]=m;c[G+4>>2]=n}while(0);t=c[R+56>>2]|0;u=d[R+6>>0]|0;v=Co(c[P+32>>2]|0)|0;c[X>>2]=0;if(v){s=((d[t+(u+5)>>0]<<8|d[t+(u+6)>>0])+65535&65535)+1|0;bw(v+s|0,0,Q-s|0)|0;bw(v|0,1,s|0)|0;s=d[t+(u+3)>>0]<<8|d[t+(u+4)>>0];n=u+12-(d[q>>0]<<2)|0;if(s){m=Q+-4|0;r=0;do{q=n+(r<<1)|0;q=d[t+q>>0]<<8|d[t+(q+1)>>0];if((q|0)>(m|0))o=65536;else o=(Hp(R,t+q|0)|0)&65535;p=o+q|0;if((p|0)<=(Q|0)){if(o)do{p=p+-1|0;G=v+p|0;a[G>>0]=(a[G>>0]|0)+1<<24>>24}while((p|0)>(q|0))}else{c[X>>2]=0;c[S>>2]=r;c[S+4>>2]=g;bn(f,44264,S)}r=r+1|0}while((r|0)<(s|0))}m=d[t+(u+1)>>0]<<8|d[t+(u+2)>>0];if(m)do{n=d[t+(m+2)>>0]<<8|d[t+(m+3)>>0];if(n){n=n+m|0;do{n=n+-1|0;G=v+n|0;a[G>>0]=(a[G>>0]|0)+1<<24>>24}while((n|0)>(m|0))}m=d[t+m>>0]<<8|d[t+(m+1)>>0]}while((m|0)!=0);b:do if((Q|0)>0){n=0;m=0;while(1){o=a[v+m>>0]|0;if(o<<24>>24){if(o<<24>>24>1)break}else n=n+1|0;m=m+1|0;if((m|0)>=(Q|0))break b}c[S>>2]=m;c[S+4>>2]=g;bn(f,44312,S)}else n=0;while(0);m=d[t+(u+7)>>0]|0;if((n|0)!=(m|0)){c[S>>2]=n;c[S+4>>2]=m;c[S+8>>2]=g;bn(f,44352,S)}}else c[f+24>>2]=1;Xk(v);if(R)xg(c[R+68>>2]|0)}else{c[S>>2]=p;bn(f,43784,S);l=-1}while(0);c[X>>2]=Y;c[T>>2]=U;c[V>>2]=W;l=l+1|0}else l=0;i=Z;return l|0}function bn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+224|0;if((i|0)>=(j|0))ba();h=m;k=m+8|0;l=m+24|0;f=b+16|0;g=c[f>>2]|0;if(g){c[f>>2]=g+-1;f=b+20|0;c[f>>2]=(c[f>>2]|0)+1;c[k>>2]=e;e=b+40|0;if(c[b+52>>2]|0)Ok(e,43760,1);f=c[b+28>>2]|0;if(f){g=c[b+36>>2]|0;c[h>>2]=c[b+32>>2];c[h+4>>2]=g;Yc(200,l,f,h)|0;f=l;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;Ok(e,l,f-l&1073741823)}og(e,1,d,k);if((a[b+65>>0]|0)==1)c[b+24>>2]=1}i=m;return}function cn(b){b=b|0;var d=0,e=0;d=b+8|0;e=c[d>>2]|0;do if((e|0)!=(c[b+4>>2]|0))if((a[b+24>>0]|0)==1){ig(c[b>>2]|0,e);break}else{Sc(e);break}while(0);c[d>>2]=0;return}function dn(d){d=d|0;var f=0,g=0,h=0,i=0;g=c[d+32>>2]|0;i=d+8|0;if(!((b[i>>1]&9312)==0?(c[d+24>>2]|0)==0:0))Mg(d);f=ih(g,64,0)|0;h=d+20|0;c[h>>2]=f;if(!(a[g+65>>0]|0)){do if(!g)f=hc[c[8744+48>>2]&127](f)|0;else{if((c[g+276>>2]|0)>>>0<=f>>>0?(c[g+280>>2]|0)>>>0>f>>>0:0){f=e[g+248>>1]|0;break}f=hc[c[8744+48>>2]&127](f)|0}while(0);c[d+24>>2]=f;h=c[h>>2]|0;c[h>>2]=0;c[h+4>>2]=g;c[h+8>>2]=0;c[h+12>>2]=0;c[h+20>>2]=0;c[h+16>>2]=h+32;b[h+24>>1]=(f+1048544|0)>>>4;b[h+26>>1]=1;c[h+28>>2]=0;c[d>>2]=h;b[i>>1]=32}else{b[i>>1]=1;c[d+24>>2]=0}return}function en(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=kn(a)|0;if(i){j=i;c[j>>2]=d;c[j+4>>2]=f;c[i+8>>2]=0;j=a+12|0;h=c[j>>2]|0;if(!h)c[a+8>>2]=i;else{a=a+26|0;g=e[a>>1]|0;if((g&1|0)!=0?(k=h,l=c[k+4>>2]|0,!((l|0)<(f|0)|((l|0)==(f|0)?(c[k>>2]|0)>>>0<d>>>0:0))):0)b[a>>1]=g&65534;c[h+8>>2]=i}c[j>>2]=i}return}function fn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))ba();g=h;bw(g|0,0,160)|0;a:do if(!a){a=0;b=0}else{b=0;while(1){d=a+8|0;f=c[d>>2]|0;c[d>>2]=0;if(!b)b=g;else{d=b;b=g;e=0;do{a=hn(d,a)|0;c[b>>2]=0;e=e+1|0;b=g+(e<<2)|0;d=c[b>>2]|0}while((d|0)!=0)}c[b>>2]=a;if(!f){a=0;b=0;break a}a=f;b=c[g>>2]|0}}while(0);do{a=hn(a,c[g+(b<<2)>>2]|0)|0;b=b+1|0}while((b|0)!=40);i=h;return a|0}function gn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;f=c[a+12>>2]|0;if(!f)c[b>>2]=a;else{gn(f,b,e);c[(c[e>>2]|0)+8>>2]=a}e=a+8|0;f=c[e>>2]|0;if(!f)c[d>>2]=a;else gn(f,e,d);i=g;return}function hn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;d=(a|0)!=0;a:do if(d&(b|0)!=0){e=a;a=l;while(1){h=e;g=c[h>>2]|0;h=c[h+4>>2]|0;while(1){f=b;d=c[f>>2]|0;f=c[f+4>>2]|0;if((h|0)<(f|0)|(h|0)==(f|0)&g>>>0<d>>>0){k=4;break}if(!((f|0)<(h|0)|(f|0)==(h|0)&d>>>0<g>>>0))break;c[a+8>>2]=b;d=c[b+8>>2]|0;if(!d){f=0;d=1;break a}else{a=b;b=d}}if((k|0)==4){k=0;c[a+8>>2]=e;a=e}e=c[e+8>>2]|0;d=(e|0)!=0;if(!(d&(b|0)!=0)){f=b;b=a;break}}}else{f=b;e=a;b=l}while(0);c[b+8>>2]=d?e:f;i=m;return c[l+8>>2]|0}function jn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;d=a+8|0;b=c[d>>2]|0;c[e>>2]=b;c[d>>2]=0;c[a+12>>2]=0;if(!b)b=a;else{d=1;while(1){g=b+8|0;c[e>>2]=c[g>>2];c[b+12>>2]=a;c[g>>2]=bq(e,d)|0;a=c[e>>2]|0;if(!a)break;else{g=b;b=a;d=d+1|0;a=g}}}i=f;return b|0}function kn(a){a=a|0;var d=0,e=0,f=0,g=0;f=a+24|0;d=b[f>>1]|0;if(!(d<<16>>16)){d=ih(c[a+4>>2]|0,1016,0)|0;if(!d)d=0;else{c[d>>2]=c[a>>2];c[a>>2]=d;d=d+8|0;c[a+16>>2]=d;b[f>>1]=63;e=62;g=5}}else{e=d+-1<<16>>16;d=c[a+16>>2]|0;g=5}if((g|0)==5){b[f>>1]=e;c[a+16>>2]=d+16}return d|0}function ln(d){d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q;g=d+4|0;if(a[g>>0]|0){e=mn(d)|0;if(!e){m=a[g>>0]|0;f=4}}else{m=0;f=4}do if((f|0)==4){h=c[d>>2]|0;n=c[d+60>>2]|0;k=c[d+212>>2]|0;e=d+160|0;f=c[e>>2]|0;e=c[e+4>>2]|0;l=d+208|0;c[l>>2]=0;g=(c[h+4>>2]|0)+112|0;o=mg(g,0)|0;if(!o)e=7;else{bw(o|0,0,g|0)|0;c[o>>2]=h;r=o+112|0;g=o+8|0;c[g>>2]=r;c[o+4>>2]=n;b[o+40>>1]=-1;d=o+16|0;c[d>>2]=f;c[d+4>>2]=e;c[o+100>>2]=k;d=o+48|0;a[d>>0]=1;f=o+49|0;a[f>>0]=1;a[o+43>>0]=m<<24>>24!=0?2:0;c[p>>2]=524294;e=pc[c[h+24>>2]&31](h,k,r,524294,p)|0;if(e){cq(o,0);f=c[g>>2]|0;g=c[f>>2]|0;if(g){hc[c[g+4>>2]&127](f)|0;c[f>>2]=0}Sc(o);break}if(c[p>>2]&1)a[o+46>>0]=1;g=hc[c[(c[n>>2]|0)+48>>2]&127](n)|0;if(g&1024)a[d>>0]=0;if(g&4096)a[f>>0]=0;c[l>>2]=o;e=0}}while(0);i=q;return e|0}function mn(b){b=b|0;var d=0,e=0,f=0;f=bl(b,4)|0;if((f|0)!=0?(d=c[b+60>>2]|0,e=c[d>>2]|0,(e|0)!=0):0){if(!(a[b+13>>0]|0))nc[c[e+32>>2]&127](d,1)|0;d=b+17|0;if((a[d>>0]|0)!=5)a[d>>0]=1}return f|0}function nn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;if(!b)g=0;else{k=b+4|0;g=c[k>>2]|0;g=nc[c[(c[g>>2]|0)+28>>2]&127](g,4)|0;if(!g){h=b+43|0;if(!(a[h>>0]|0))a[h>>0]=1;g=Pn(b,0,0,0,d,e,f,0,0)|0;if(!g){c[l>>2]=-1;g=c[k>>2]|0;Yb[c[(c[g>>2]|0)+40>>2]&63](g,10,l)|0;if((c[l>>2]|0)==1){g=b+16|0;d=c[g+4>>2]|0;if((d|0)>-1|(d|0)==-1&(c[g>>2]|0)>>>0>4294967295){Vo(b,0,0);e=0;g=0}else{e=0;g=0}}else{e=1;g=0}}else e=0}else e=0;cq(b,e);d=c[b+8>>2]|0;h=c[d>>2]|0;if(h){hc[c[h+4>>2]&127](d)|0;c[d>>2]=0}if(e){d=c[3164]|0;if(d)jc[d&3]();d=c[b>>2]|0;Yb[c[d+28>>2]&63](d,c[b+100>>2]|0,0)|0;d=c[3166]|0;if(d)jc[d&3]()}Sc(c[b+32>>2]|0);Sc(b)}i=m;return g|0}function on(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=b+5|0;g=a[k>>0]|0;if(!((a[b+15>>0]|0)!=0?!((e|0)==2|(e|0)==4):0))h=3;do if(((h|0)==3?(f=g&255,(f|0)!=(e|0)):0)?(a[k>>0]=e,(a[b+4>>0]|0)==0&(f&5|0)==1&(e&1|0)==0):0){f=c[b+64>>2]|0;g=c[f>>2]|0;if(g){hc[c[g+4>>2]&127](f)|0;c[f>>2]=0}j=b+17|0;if((d[j>>0]|0)>1){f=c[b>>2]|0;Yb[c[f+28>>2]&63](f,c[b+172>>2]|0,0)|0;break}g=b+16|0;f=a[g>>0]|0;i=f<<24>>24==0;if(i){e=_k(b)|0;h=a[g>>0]|0}else{h=f;e=0}if(h<<24>>24==1)e=bl(b,2)|0;if((e|0)==0?(g=c[b>>2]|0,Yb[c[g+28>>2]&63](g,c[b+172>>2]|0,0)|0,f<<24>>24==1):0){g=c[b+60>>2]|0;f=c[g>>2]|0;if(!f)break;if(!(a[b+13>>0]|0))nc[c[f+32>>2]&127](g,1)|0;if((a[j>>0]|0)==5)break;a[j>>0]=1;break}if(i)Jo(b)}while(0);return d[k>>0]|0}function pn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=g+4|0;do if(d)if(!(eh(a,d,-1,0,0,e,0)|0)){e=c[e>>2]|0;Od(e)|0;a=dq(a,e,b)|0;break}else{$g(b,a,Oe(a)|0,f);a=Jf(a)|0;break}else a=7;while(0);i=g;return a|0}function qn(a){a=a|0;var b=0;c[(c[a+4>>2]|0)+4>>2]=c[a>>2];b=Gg(a,0)|0;if(!b)b=Fg(a,0)|0;return b|0}function rn(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[e+4>>2]|0;c[g+4>>2]=c[e>>2];e=f&255;if(b[g+22>>1]&2){f=g+17|0;if(((e|0)!=0|0)==(d[f>>0]|0|0))h=4;else f=8}else{f=g+17|0;h=4}if((h|0)==4){a[f>>0]=(e|0)!=0&1;a[g+18>>0]=(e|0)==2&1;f=0}return f|0}function sn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;d=eh(a,d,-1,0,0,e,0)|0;do if(!d){e=c[e>>2]|0;while(1){if((Od(e)|0)!=100){f=6;break}d=pn(a,b,be(e,0)|0)|0;if(d){f=5;break}}if((f|0)==5){dq(a,e,b)|0;break}else if((f|0)==6){d=dq(a,e,b)|0;break}}while(0);i=g;return d|0}function tn(a){a=a|0;var b=0;b=a+100|0;c[b>>2]=(c[b>>2]|0)+1;b=c[a+88>>2]|0;if(b)do{c[b+16>>2]=1;b=c[b+44>>2]|0}while((b|0)!=0);$o(c[a+204>>2]|0,0);return}function un(a){a=a|0;var b=0,d=0,e=0;e=a+304|0;b=c[e>>2]|0;if(!((b|0)%5|0)){b=(b<<2)+20|0;d=a+328|0;b=no(a,c[d>>2]|0,b,((b|0)<0)<<31>>31)|0;if(!b)b=7;else{a=b+(c[e>>2]<<2)|0;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[d>>2]=b;b=0}}else b=0;return b|0}function vn(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;r=z+8|0;u=z+4|0;l=f+56|0;s=c[l>>2]|0;t=c[f+52>>2]|0;c[u>>2]=0;c[w>>2]=c[f>>2];y=qh(e,10344,w)|0;do if(!y)l=7;else{v=ih(e,28,0)|0;if(!v){ig(e,y);l=7;break}p=v+0|0;o=p+28|0;do{a[p>>0]=0;p=p+1|0}while((p|0)<(o|0));c[v>>2]=e;c[v+4>>2]=g;q=c[f+68>>2]|0;a:do if(q){p=c[e+20>>2]|0;if((p|0)>0){n=c[e+16>>2]|0;m=0;while(1){o=m+1|0;if((c[n+(m<<4)+12>>2]|0)==(q|0)){o=m;break a}if((o|0)<(p|0))m=o;else break}}else o=0}else o=-1e6;while(0);c[(c[l>>2]|0)+4>>2]=c[(c[e+16>>2]|0)+(o<<4)>>2];p=r+4|0;c[p>>2]=f;c[r>>2]=v;q=e+324|0;n=c[q>>2]|0;c[q>>2]=r;o=v+8|0;l=gc[h&7](e,c[g+8>>2]|0,t,s,o,u)|0;c[q>>2]=n;do if(!l){n=c[o>>2]|0;if(n){c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;c[c[o>>2]>>2]=c[g>>2];c[v+12>>2]=1;if(c[p>>2]|0){c[w>>2]=c[f>>2];c[k>>2]=qh(e,28376,w)|0;wn(v);l=1;break}u=f+60|0;c[v+24>>2]=c[u>>2];c[u>>2]=v;u=f+38|0;l=b[u>>1]|0;if(l<<16>>16>0){t=f+4|0;m=c[t>>2]|0;h=0;while(1){r=c[m+(h*24|0)+12>>2]|0;if(r){n=r;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;o=n-r|0;q=o&1073741823;if((Bc(28424,r,6)|0)==0?(s=a[r+6>>0]|0,s<<24>>24==32|s<<24>>24==0):0)n=0;else x=24;b:do if((x|0)==24){x=0;if(!q)n=0;else{n=0;while(1){if((Bc(28432,r+n|0,7)|0)==0?(s=a[r+(n+7)>>0]|0,s<<24>>24==32|s<<24>>24==0):0)break;n=n+1|0;if((n|0)>=(q|0))break b}n=n+1|0}}while(0);if((n|0)<(q|0)){p=(a[r+(n+6)>>0]|0)!=0|6;m=n+p|0;if((m|0)<=(q|0)){o=(o&1073741823)+1-p|0;l=m;m=n;while(1){a[r+m>>0]=a[r+l>>0]|0;m=m+1|0;if((m|0)==(o|0))break;else l=m+p|0}}if((a[r+n>>0]|0)==0&(n|0)>0)a[r+(n+-1)>>0]=0;m=c[t>>2]|0;l=m+(h*24|0)+23|0;a[l>>0]=d[l>>0]|2;l=b[u>>1]|0}}h=h+1|0;if((h|0)>=(l<<16>>16|0)){l=0;break}}}else l=0}else l=0}else if((l|0)==7){a[e+65>>0]=1;x=11}else x=11;while(0);if((x|0)==11){m=c[u>>2]|0;if(!m){c[w>>2]=y;c[k>>2]=qh(e,28344,w)|0}else{c[w>>2]=m;c[k>>2]=qh(e,10344,w)|0;Sc(c[u>>2]|0)}ig(e,v)}ig(e,y)}while(0);i=z;return l|0}function wn(a){a=a|0;var b=0,d=0,e=0;b=c[a>>2]|0;e=a+12|0;d=(c[e>>2]|0)+-1|0;c[e>>2]=d;if(!d){d=c[a+8>>2]|0;if(d)hc[c[(c[d>>2]|0)+16>>2]&127](d)|0;ig(b,a)}return}function xn(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=f+10|0;i=g<<24>>24==1;if((a[s>>0]|0)==1|i){o=f+12|0;h=c[o>>2]|0;if(i){i=h&-2;c[o>>2]=i;l=i;i=i<<1|1}else{l=h;i=(h<<1)+2|0}p=f+16|0;h=c[p>>2]|0;n=h+l|0;q=f+32|0;r=ih(c[q>>2]|0,i,((i|0)<0)<<31>>31)|0;if(!r)h=7;else{i=a[s>>0]|0;if(i<<24>>24==2)if((l|0)>0){i=r;do{j=d[h>>0]|0;l=h+2|0;m=d[h+1>>0]<<8;k=m|j;if((m&63488|0)==55296&l>>>0<n>>>0){k=(k<<10&983040)+65536|j<<10&64512|d[l>>0]|d[h+3>>0]<<8&768;h=h+4|0}else h=l;do if(k>>>0>=128){if(k>>>0<2048){a[i>>0]=k>>>6&31|192;a[i+1>>0]=k&63|128;i=i+2|0;break}if(k>>>0<65536){a[i>>0]=k>>>12&15|224;a[i+1>>0]=k>>>6&63|128;a[i+2>>0]=k&63|128;i=i+3|0;break}else{a[i>>0]=k>>>18&7|240;a[i+1>>0]=k>>>12&63|128;a[i+2>>0]=k>>>6&63|128;a[i+3>>0]=k&63|128;i=i+4|0;break}}else{a[i>>0]=k;i=i+1|0}while(0)}while(h>>>0<n>>>0);m=55}else{i=r;m=55}else if(i<<24>>24!=1)if((l|0)>0){i=r;do{m=d[h>>0]<<8;l=h+2|0;k=d[h+1>>0]|0;j=m|k;if((m&63488|0)==55296&l>>>0<n>>>0){j=(j<<10&983040)+65536|k<<10&64512|d[h+3>>0]|d[l>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[i>>0]=j>>>6&31|192;a[i+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[i>>0]=j>>>12&15|224;a[i+1>>0]=j>>>6&63|128;a[i+2>>0]=j&63|128;i=i+3|0;break}else{a[i>>0]=j>>>18&7|240;a[i+1>>0]=j>>>12&63|128;a[i+2>>0]=j>>>6&63|128;a[i+3>>0]=j&63|128;i=i+4|0;break}}else{a[i>>0]=j;i=i+1|0}while(0)}while(h>>>0<n>>>0);m=55}else{i=r;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=r;l=h;while(1){h=l+1|0;j=a[l>>0]|0;k=j&255;if((j&255)>191){k=d[15360+(k+-192)>>0]|0;a:do if((h|0)==(n|0))h=n;else while(1){j=a[h>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(n|0)){h=n;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[i>>0]=l>>>10&192|k>>>10&63;a[i+1>>0]=l>>>18&3|216;a[i+2>>0]=k;a[i+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[i>>0]=k;a[i+1>>0]=k>>>8;i=i+2|0}if(h>>>0<n>>>0)l=h;else break}}else i=r;else if(i){i=r;do{l=h+1|0;k=a[h>>0]|0;j=k&255;if((k&255)>191){j=d[15360+(j+-192)>>0]|0;b:do if((l|0)==(n|0))h=n;else{k=h;h=l;while(1){l=a[h>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(n|0)){h=n;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[i>>0]=l>>>18&3|216;a[i+1>>0]=l>>>10&192|j>>>10&63;a[i+2>>0]=j>>>8&3|220;a[i+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[i>>0]=j>>>8;a[i+1>>0]=j;i=i+2|0}}while(h>>>0<n>>>0)}else i=r;c[o>>2]=i-r;a[i>>0]=0;i=i+1|0}if((m|0)==55)c[o>>2]=i-r;a[i>>0]=0;i=f+8|0;o=b[i>>1]|0;h=o&65535;if(!((o&9312)==0?(c[f+24>>2]|0)==0:0))Mg(f);b[i>>1]=h&29|514;a[s>>0]=g;c[p>>2]=r;c[f+20>>2]=r;h=c[q>>2]|0;do if(!h)h=hc[c[8744+48>>2]&127](r)|0;else{if((c[h+276>>2]|0)>>>0<=r>>>0?(c[h+280>>2]|0)>>>0>r>>>0:0){h=e[h+248>>1]|0;break}h=hc[c[8744+48>>2]&127](r)|0}while(0);c[f+24>>2]=h;h=0}}else if(!(Rl(f)|0)){h=c[f+16>>2]|0;q=c[f+12>>2]&-2;i=h+q|0;if((q|0)>0)do{p=a[h>>0]|0;q=h+1|0;a[h>>0]=a[q>>0]|0;h=h+2|0;a[q>>0]=p}while(h>>>0<i>>>0);a[s>>0]=g;h=0}else h=7;return h|0}function yn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[b>>0]|0;g=i&255;a:do switch(g|0){case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&1))break;else f=f+1|0;c[e>>2]=151;break}case 91:{f=1;while(1){g=a[b+f>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[e>>2]=(g|0)==93?27:150;break}case 37:{c[e>>2]=93;f=1;break}case 61:{c[e>>2]=79;f=(a[b+1>>0]|0)==61?2:1;break}case 62:{f=a[b+1>>0]|0;if(f<<24>>24==61){c[e>>2]=83;f=2;break a}else if(f<<24>>24==62){c[e>>2]=88;f=2;break a}else{c[e>>2]=80;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 40:{c[e>>2]=22;f=1;break}case 41:{c[e>>2]=23;f=1;break}case 34:case 39:case 96:{g=a[b+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[b+f>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[b+f>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[e>>2]=97;break a}else{c[e>>2]=27;break a}}else f=1;while(0);c[e>>2]=150;break}case 60:{f=a[b+1>>0]|0;if(f<<24>>24==60){c[e>>2]=87;f=2;break a}else if(f<<24>>24==61){c[e>>2]=81;f=2;break a}else if(f<<24>>24==62){c[e>>2]=78;f=2;break a}else{c[e>>2]=82;f=1;break a}}case 63:{c[e>>2]=135;f=1;while(1)if(((d[b+f>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 58:case 35:case 64:case 36:{c[e>>2]=135;g=a[b+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[10368+(g&255)>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[b+g>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[b+f>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[b+f>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[10368+(i&255)>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[e>>2]=150}while(0);if(g)break a}else f=1;c[e>>2]=150;break}case 44:{c[e>>2]=26;f=1;break}case 38:{c[e>>2]=85;f=1;break}case 126:{c[e>>2]=96;f=1;break}case 33:if((a[b+1>>0]|0)==61){c[e>>2]=78;f=2;break a}else{c[e>>2]=150;f=2;break a}case 45:{if((a[b+1>>0]|0)==45)f=2;else{c[e>>2]=90;f=1;break a}while(1){g=a[b+f>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[e>>2]=151;break}case 88:case 120:{if((a[b+1>>0]|0)==39){c[e>>2]=134;f=2;while(1){g=a[b+f>>0]|0;if(!(a[10368+(g&255)>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[e>>2]=150;while(1){g=a[b+f>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 59:{c[e>>2]=1;f=1;break}case 43:{c[e>>2]=89;f=1;break}case 124:if((a[b+1>>0]|0)==124){c[e>>2]=94;f=2;break a}else{c[e>>2]=86;f=1;break a}case 42:{c[e>>2]=91;f=1;break}case 47:{if((a[b+1>>0]|0)==42?(f=a[b+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[b+g>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[e>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[e>>2]=92;f=1;break}case 46:{if(((d[b+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[e>>2]=122;f=1}break}default:j=98}while(0);c:do if((j|0)==51){c[e>>2]=132;f=a[b>>0]|0;if(f<<24>>24==48){g=a[b+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[10368+(d[b+2>>0]|0)>>0]&8))h=0;else{f=3;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[b+g>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[g>>0]|0)+-48|0)>>>0<10);c[e>>2]=133;h=a[g>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[b+(i+1)>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[b+f>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[g>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[e>>2]=133;g=a[g>>0]|0}else{g=h;f=i}while(0);if(a[10368+(g&255)>>0]&70)do{c[e>>2]=150;f=f+1|0}while((a[10368+(d[b+f>>0]|0)>>0]&70)!=0)}else if((j|0)==98){if(!(a[10368+g>>0]&70)){c[e>>2]=150;f=1;break}else f=1;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&70))break;else f=f+1|0;c[e>>2]=bi(b,f)|0}while(0);return f|0}function zn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[b>>0]|0;if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if((f<<24>>24==48?(f=a[b+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[g>>0]|0,(a[10368+(e&255)>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[f>>0]|0}if(!(a[10368+(e&255)>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[g+b>>0]|0;e=(a[10368+(h&255)>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[d>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[b+h>>0]|0)+-48|0;if(g>>>0>=10)break;f=ow(e|0,f|0,10,0)|0;e=fw(g|0,((g|0)<0)<<31>>31|0,f|0,C|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=C}g=$v(e|0,f|0,i|0,0)|0;b=C;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=$v(0,0,e|0,f|0)|0;c[d>>2]=e;e=1}}while(0);return e|0}function An(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;og(a,b,d,g);i=f;return}function Bn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))ba();D=F;A=F+4|0;c[A>>2]=0;E=ih(e,536,0)|0;a:do if(E){bw(E|0,0,536)|0;c[E+476>>2]=k;r=e+20|0;k=c[r>>2]|0;b:do if((k|0)>0){s=e+16|0;p=0;while(1){q=c[(c[s>>2]|0)+(p<<4)+4>>2]|0;if(q){c[(c[q+4>>2]|0)+4>>2]=c[q>>2];n=Zk(q,1,1)|0;if(n)break;k=c[r>>2]|0}p=p+1|0;if((p|0)>=(k|0))break b}c[D>>2]=c[(c[s>>2]|0)+(p<<4)>>2];qg(e,n,40984,D);p=E;break a}while(0);nl(e);c[E>>2]=e;c[E+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[f+(g+-1)>>0]|0)==0:0){B=21;break}if((c[e+92>>2]|0)<(g|0)){qg(e,18,41016,D);if(!e){p=E;n=18;break a}if(!(a[e+65>>0]|0)){p=E;n=c[e+56>>2]&18;break a}else{Ml(e);p=E;n=7;break a}}else{if((f|0)!=0?(o=fw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,o=ih(e,o,C)|0,(o|0)!=0):0){gw(o|0,f|0,g|0)|0;a[o+g>>0]=0;Hh(E,o,A)|0;ig(e,o);n=E+480|0;c[n>>2]=f+((c[n>>2]|0)-o);break}c[E+480>>2]=f+g;break}}else B=21;while(0);if((B|0)==21)Hh(E,f,A)|0;s=e+65|0;k=E+12|0;if(!(a[s>>0]|0)){p=E+12|0;if((c[k>>2]|0)==101)c[p>>2]=0}else{c[k>>2]=7;p=E+12|0}c:do if((a[E+17>>0]|0)!=0?(t=c[E>>2]|0,u=t+20|0,(c[u>>2]|0)>0):0){o=t+16|0;r=0;while(1){k=c[o>>2]|0;n=c[k+(r<<4)+4>>2]|0;if(n){if(!(a[n+8>>0]|0)){k=ug(n,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[o>>2]|0;q=1}else q=0;g=c[n+4>>2]|0;c[g+4>>2]=c[n>>2];g=c[(c[g+12>>2]|0)+56>>2]|0;if((d[g+41>>0]<<16|d[g+40>>0]<<24|d[g+42>>0]<<8|d[g+43>>0]|0)!=(c[c[k+(r<<4)+12>>2]>>2]|0)){rm(t,r);c[p>>2]=17}if(q)qn(n)|0}r=r+1|0;if((r|0)>=(c[u>>2]|0))break c}a[t+65>>0]=1}while(0);if(a[s>>0]|0)c[p>>2]=7;if(m)c[m>>2]=c[E+480>>2];n=c[p>>2]|0;q=(n|0)==0;do if(q?(w=E+8|0,v=c[w>>2]|0,(v|0)!=0):0){p=a[E+450>>0]|0;if(!(p<<24>>24))break;else if(p<<24>>24==2){eq(v,4);o=8;k=12}else{eq(v,8);o=0;k=8}p=o;do{fq(c[w>>2]|0,p-o|0,0,c[41040+(p<<2)>>2]|0,0);p=p+1|0}while((p|0)<(k|0))}while(0);o=E+8|0;if((a[e+145>>0]|0)==0?(z=c[o>>2]|0,x=(c[E+480>>2]|0)-f|0,(z|0)!=0):0){if((f|0)!=0?(w=c[z>>2]|0,y=fw(x|0,((x|0)<0)<<31>>31|0,1,0)|0,y=ih(w,y,C)|0,(y|0)!=0):0){gw(y|0,f|0,x|0)|0;a[y+x>>0]=0;p=y}else p=0;c[z+168>>2]=p;z=z+88|0;b[z>>1]=b[z>>1]&-257|(h&65535)<<8&256}p=c[o>>2]|0;do if(!p)B=60;else{if(q?(a[s>>0]|0)==0:0){B=60;break}Jg(p)|0}while(0);if((B|0)==60)c[l>>2]=p;o=c[A>>2]|0;do if(!o){c[e+52>>2]=n;o=c[e+236>>2]|0;if(o){p=o+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;break}else{rg(o);break}}}else{c[D>>2]=o;qg(e,n,10344,D);ig(e,o)}while(0);o=E+528|0;p=c[o>>2]|0;if(!p)p=E;else{do{c[o>>2]=c[p+4>>2];ig(e,p);p=c[o>>2]|0}while((p|0)!=0);p=E}}else{p=0;n=7}while(0);yh(p);ig(e,E);D=Kg(e,n)|0;i=F;return D|0}function Cn(b){b=b|0;var d=0,e=0;e=c[b>>2]|0;if((a[e+145>>0]|0)==0?(d=Vh(e,b+4|0)|0,(d|0)!=0):0){c[b+12>>2]=d;e=b+64|0;c[e>>2]=(c[e>>2]|0)+1}else d=0;return d|0}function Dn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[a+24>>2]|0;h=f+84|0;b=c[h>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=no(c[f>>2]|0,c[g>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[f>>2]|0;do if(!b)b=hc[c[8744+48>>2]&127](a)|0;else{if((c[b+276>>2]|0)>>>0<=a>>>0?(c[b+280>>2]|0)>>>0>a>>>0:0){b=e[b+248>>1]|0;break}b=hc[c[8744+48>>2]&127](a)|0}while(0);c[h>>2]=(b>>>0)/20|0;c[g>>2]=a}return (d?0:7)|0}function En(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -10:{if(c[a+520>>2]|0)break a;wn(e);break a}case -11:{if(c[a+520>>2]|0)break a;Sc(e);break a}case -15:case -1:case -13:case -12:{ig(a,e);break a}case -5:{if(!(b[e+2>>1]&16))break a;ig(a,e);break a}case -6:{if(c[a+520>>2]|0)break a;a=(c[e>>2]|0)+-1|0;c[e>>2]=a;if(a)break a;Sc(e);break a}case -8:{if(!(c[a+520>>2]|0)){Ih(e);break a}if(c[e+24>>2]|0)ig(a,c[e+20>>2]|0);ig(a,e);break a}default:break a}while(0);return}function Fn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=c[f>>2]|0;p=c[e+24>>2]|0;q=p+112|0;k=c[q>>2]|0;n=e+88|0;b[n>>1]=b[n>>1]&-193|64;h=c[e+32>>2]|0;a:do if((h|0)>0){j=c[e+4>>2]|0;while(1){h=h+-1|0;i=d[j>>0]|0;switch(i|0){case 2:case 3:{o=7;break}case 12:case 13:case 11:{b[n>>1]=b[n>>1]&-193|128;break}case 15:{r=c[j+8>>2]|0;g=(r|0)>(g|0)?r:g;break}case 6:case 8:{c[j+16>>2]=77;a[j+1>>0]=-19;break}case 5:case 7:case 9:{c[j+16>>2]=76;a[j+1>>0]=-19;break}case 10:case 1:{r=d[j+3>>0]|0;g=(r|0)>(g|0)?r:g;break}case 14:{r=c[j+-16>>2]|0;g=(r|0)>(g|0)?r:g;break}case 4:{if(!(c[j+8>>2]|0))o=7;else{b[n>>1]=b[n>>1]&-65;o=7}break}default:{}}if((o|0)==7){o=0;b[n>>1]=b[n>>1]|128}i=a[34168+i>>0]|0;a[j+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[l>>2]|0,(m|0)<0):0)c[l>>2]=c[k+(~m<<2)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);ig(c[e>>2]|0,c[q>>2]|0);c[q>>2]=0;c[p+108>>2]=0;c[f>>2]=g;return}function Gn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=b+73|0;if((a[e>>0]|0)!=4){a[e>>0]=0;f=b+56|0;d=b+48|0;d=Cp(b,c[f>>2]|0,c[d>>2]|0,c[d+4>>2]|0,0,g)|0;if(!d){Sc(c[f>>2]|0);c[f>>2]=0;f=b+68|0;d=c[f>>2]|c[g>>2];c[f>>2]=d;if((d|0)!=0?(a[e>>0]|0)==1:0){a[e>>0]=2;d=0}else d=0}}else d=c[b+68>>2]|0;i=h;return d|0}function Hn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[a+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[a+60>>2]|0)==(b|0))break}a=c[a+8>>2]|0;if(!a){a=0;break a}}a=Bl(a,b,d)|0}while(0);return a|0}function In(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[b>>2]|0;g=f+1|0;c[b>>2]=g;h=a[f>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[15360+(e+-192)>>0]|0;if((a[g>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[b>>2]=f;e=(d[g>>0]|0)&63|e<<6;if((a[f>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Jn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[b>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[b>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[f>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0<g>>>0)}else c=0;return c|0}function Kn(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))ba();t=x+32|0;u=x+16|0;v=x;k=c[d>>2]|0;if((k|0)<0){c[d>>2]=0;c[d+4>>2]=-1;b[d+12>>1]=0;a[d+14>>0]=0;k=0}p=g;o=c[p+4>>2]|0;q=v;c[q>>2]=c[p>>2];c[q+4>>2]=o;q=d+8|0;c[q>>2]=h;o=f&255;p=(f|0)==254;do{n=b[d+(k<<4)+12>>1]|0;h=n&65535;g=37184+(h<<1)|0;a:do if((n&65535)>429)w=6;else{n=o;while(1){m=b[g>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){w=6;break a}m=n&255;k=l+m|0;if(k>>>0<=1496?(a[39336+k>>0]|0)==n<<24>>24:0){w=16;break}if(!(n<<24>>24))break;if((n&255)>=70){r=l;w=12;break}n=a[40840+m>>0]|0;if(!(n<<24>>24)){r=l;w=12;break}}if((w|0)==16){w=0;k=e[22184+(k<<1)>>1]|0;break}if(((w|0)==12?(w=0,s=r+70|0,(s|0)>-1):0)?(a[39336+s>>0]|0)==70:0){k=e[22184+(s<<1)>>1]|0;break}k=e[38048+(h<<1)>>1]|0}while(0);if((w|0)==6){w=0;k=e[38048+(h<<1)>>1]|0}if(k>>>0<642){w=18;break}if(k>>>0>=969){w=20;break}iq(d,k+-642|0);if(p)break;k=c[d>>2]|0}while((k|0)>-1);if((w|0)==18){gq(d,k,f,v);r=d+4|0;c[r>>2]=(c[r>>2]|0)+-1}else if((w|0)==20){c[u+0>>2]=c[v+0>>2];c[u+4>>2]=c[v+4>>2];c[u+8>>2]=c[v+8>>2];r=c[q>>2]|0;c[t>>2]=u;ph(r,20432,t);c[q>>2]=r;hq(d,o,v)}i=x;return}function Ln(b){b=b|0;var d=0;d=c[b>>2]|0;if((d|0)>=0){hq(b,a[b+(d<<4)+14>>0]|0,b+(d<<4)+16|0);c[b>>2]=(c[b>>2]|0)+-1}return}function Mn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[b>>2]|0)>0){d=0;do{Jk(a,c[b+(d<<4)+12>>2]|0);Ik(a,c[b+(d<<4)+16>>2]|0,1);ig(a,c[b+(d<<4)+8>>2]|0);d=d+1|0}while((d|0)<(c[b>>2]|0))}ig(a,b)}return}function Nn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[h>>2]|0;if(d){i=a+304|0;if((c[i>>2]|0)>0){f=0;do{e=c[d+(f<<2)>>2]|0;d=c[e+8>>2]|0;if((d|0)!=0?(g=c[(c[d>>2]|0)+b>>2]|0,(g|0)!=0):0)hc[g&127](d)|0;c[e+20>>2]=0;wn(e);f=f+1|0;d=c[h>>2]|0}while((f|0)<(c[i>>2]|0))}ig(a,d);c[i>>2]=0;c[h>>2]=0}return}function On(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[a+12>>2]|0))d=(c[a+16>>2]|0)==0?0:6;else d=6;else{h=b[a>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[a+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0}
function qc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))ba();return b|0}function rc(){return i|0}function sc(a){a=a|0;i=a}function tc(a,b){a=a|0;b=b|0;if(!n){n=a;o=b}}function uc(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0]}function vc(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0];a[k+4>>0]=a[b+4>>0];a[k+5>>0]=a[b+5>>0];a[k+6>>0]=a[b+6>>0];a[k+7>>0]=a[b+7>>0]}function wc(a){a=a|0;C=a}function xc(){return C|0}function yc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();e=h+4|0;f=h;g=0;a:while(1){c[e>>2]=0;c[f>>2]=0;a[280]=0;if(Nf(14640,e)|0){d=4;break}d=c[e>>2]|0;b=0;do{if(Me(d,c[8+(b<<2)>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[e>>2]|0}while((b|0)!=5);pf(d)|0;if(Wv(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)eb(8472,8488,47,8496);else if((d|0)==7)eb(8472,8488,50,8496);else if((d|0)==9)eb(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function zc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;dw(280,c[f>>2]|0)|0;b=280+(cw(280)|0)|0;a[b>>0]=61;a[b+1>>0]=0;b=c[e>>2]|0;dw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ac(b){b=b|0;var e=0,f=0,g=0;g=(Bc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[b>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[8648+(f<<2)>>2]|0;if((Bc(g,e,b)|0)==0?(a[10368+(d[e+b>>0]|0)>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Bc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[f>>0]|0;if(!(b<<24>>24))break;if((a[9328+(b&255)>>0]|0)!=(a[9328+(d[c>>0]|0)>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[9328+(b&255)>>0]|0)-(d[9328+(d[c>>0]|0)>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Cc(a){a=a|0;if(a>>>0<4)a=c[8648+(a<<2)>>2]|0;else a=0;return a|0}function Dc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;if(a>>>0<=9){g=c[8664+(a<<2)>>2]|0;f=b;c[f>>2]=g;c[f+4>>2]=0;f=8704+(a<<2)|0;a=d;c[a>>2]=c[f>>2];c[a+4>>2]=0;if(!e)f=0;else{c[f>>2]=g;f=0}}else{c[f>>2]=15033;c[f+4>>2]=10788;Zc(21,13648,f);f=21}i=h;return f|0}function Ec(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h+8|0;g=h;a=Dc(a,f,g,e)|0;if(!a){c[b>>2]=c[f>>2];c[d>>2]=c[g>>2]}i=h;return a|0}function Fc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;l=p;switch(b|0){case 2:{c[n>>2]=0;o=a+20|0;g=c[o>>2]|0;h=(g|0)>0;if(h){l=c[a+16>>2]|0;k=0;do{b=c[l+(k<<4)+4>>2]|0;if(b)c[(c[b+4>>2]|0)+4>>2]=c[b>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[k>>2]=n;if(h){m=a+16|0;h=0;do{b=c[(c[m>>2]|0)+(h<<4)+12>>2]|0;if(b){l=hc[c[8744+52>>2]&127](16)|0;l=_((c[b+44>>2]|0)+(c[b+12>>2]|0)+(c[b+28>>2]|0)+(c[b+60>>2]|0)|0,l)|0;c[n>>2]=l+(c[n>>2]|0);l=hc[c[8744+48>>2]&127](c[b+20>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+52>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+36>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+68>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=c[b+48>>2]|0;if(l)do{fg(a,c[l+8>>2]|0);l=c[l>>2]|0}while((l|0)!=0);l=c[b+16>>2]|0;if(l)do{gg(a,c[l+8>>2]|0);l=c[l>>2]|0}while((l|0)!=0);g=c[o>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[n>>2]|0}else h=0}else{k=a+520|0;c[k>>2]=n;h=0}c[k>>2]=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 9:case 8:case 7:{o=a+20|0;l=c[o>>2]|0;if((l|0)>0){n=c[a+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[n+(g<<4)+4>>2]|0;if(l){l=(c[c[l+4>>2]>>2]|0)+(m<<2)+184|0;h=(c[l>>2]|0)+h|0;if(k)l=b;else{c[l>>2]=0;l=c[o>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 0:{k=a+252|0;c[d>>2]=c[k>>2];h=a+256|0;c[f>>2]=c[h>>2];if(!g)h=0;else{c[h>>2]=c[k>>2];h=0}break}case 6:case 5:case 4:{c[d>>2]=0;h=a+(b+-4<<2)+260|0;c[f>>2]=c[h>>2];if(!g)h=0;else{c[h>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[m>>2]|0;g=(k|0)>0;if(g){h=c[a+16>>2]|0;l=0;do{b=c[h+(l<<4)+4>>2]|0;if(b)c[(c[b+4>>2]|0)+4>>2]=c[b>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[(c[b>>2]|0)+(l<<4)+4>>2]|0;if(!g)g=k;else{o=c[c[g+4>>2]>>2]|0;a=o+152|0;n=(c[a>>2]|0)+60+(e[o+140>>1]|0)|0;n=_(hc[c[8744+128>>2]&127](c[(c[o+204>>2]|0)+40>>2]|0)|0,n)|0;o=hc[c[8744+48>>2]&127](o)|0;g=c[m>>2]|0;h=n+h+o+(c[a>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[d>>2]=h;c[f>>2]=0;h=0;break}case 3:{c[l>>2]=0;g=a+520|0;c[g>>2]=l;k=c[a+4>>2]|0;if(!k)h=0;else{do{hg(a,k);ig(a,k);k=c[k+52>>2]|0}while((k|0)!=0);h=c[l>>2]|0}c[g>>2]=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 10:{c[f>>2]=0;o=a+512|0;n=c[o+4>>2]|0;if((n|0)>0|(n|0)==0&(c[o>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[h+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[h>>2]|0)>>>0>0}c[d>>2]=h&1;h=0;break}default:h=1}i=p;return h|0}function Gc(a){a=a|0;var b=0;a:do if(!(Hc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(Wv(a,c[b+16>>2]|0)|0))break a;b=c[b+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Hc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[k>>2]=16496;hf(4,k)|0}b=9024|0;d=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(_(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[a>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[b>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=hc[c[8744+56>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{jg(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{jg(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);jg(10840,19256);jg(10840,19292|0);jg(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[k>>2]=16440;hf(18,k)|0;a=c[2214]|0}a=hc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Pc(10)|0;if(!a)a=7;else{Sc(a);Ic(9584,1)|0;Ic(9672|0,0)|0;Ic(9760|0,0)|0;Ic(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=_(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[b>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(_(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Ic(a,b){a=a|0;b=b|0;var d=0;d=Hc()|0;do if(!d){kg(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[a+12>>2]=d;c[2254]=a;d=0;break}else{c[a+12>>2]=c[d+12>>2];c[(c[2254]|0)+12>>2]=a;d=0;break}}while(0);return d|0}function Jc(a){a=a|0;kg(a);return 0}function Kc(a){a=a|0;return 0}function Lc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Hc()|0)){e=9032|0;d=c[e>>2]|0;e=c[e+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[f>>2]=a;c[f+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);C=e;return d|0}function Mc(){var a=0;a=c[2166]|0;C=((a|0)<0)<<31>>31;return a|0}function Nc(a){a=a|0;var b=0;b=(a|0)<0;Lc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Oc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];C=((b|0)<0)<<31>>31;return b|0}function Pc(a){a=a|0;if((Hc()|0)!=0|(a|0)<1)a=0;else a=mg(a,((a|0)<0)<<31>>31)|0;return a|0}function Qc(a,b){a=a|0;b=b|0;if(!(Hc()|0))a=mg(a,b)|0;else a=0;return a|0}function Rc(a){a=a|0;a=hc[c[8744+48>>2]&127](a)|0;C=((a|0)<0)<<31>>31;return a|0}function Sc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){_b[c[8744+40>>2]&31](a);break}else{b=hc[c[8744+48>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;_b[c[8744+40>>2]&31](a);break}while(0);return}function Tc(a,b){a=a|0;b=b|0;var c=0;if(!(Hc()|0)){c=(b|0)<0;b=ng(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Uc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Hc()|0))b=ng(a,b,c)|0;else b=0;return b|0}function Vc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))ba();f=g+28|0;e=g;if(!(Hc()|0)){c[e+4>>2]=f;c[e+8>>2]=f;c[e>>2]=0;c[e+12>>2]=0;c[e+16>>2]=70;c[e+20>>2]=1e9;a[e+25>>0]=0;a[e+24>>0]=2;og(e,0,b,d);e=pg(e)|0}else e=0;i=g;return e|0}function Wc(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;if(!(Hc()|0)){c[d>>2]=b;d=Vc(a,d)|0}else d=0;i=e;return d|0}function Xc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))ba();g=h;if((b|0)>=1){c[g+4>>2]=d;c[g+8>>2]=d;c[g>>2]=0;c[g+12>>2]=0;c[g+16>>2]=b;c[g+20>>2]=0;a[g+25>>0]=0;a[g+24>>0]=0;og(g,0,e,f);d=pg(g)|0}i=h;return d|0}function Yc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;a=Xc(a,b,d,g)|0;i=f;return a|0}function Zc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))ba();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[g>>2]=e;c[f+4>>2]=h;c[f+8>>2]=h;c[f>>2]=0;c[f+12>>2]=0;c[f+16>>2]=210;c[f+20>>2]=0;a[f+25>>0]=0;a[f+24>>0]=0;og(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=pg(f)|0;ic[e&63](g,b,f)}i=k;return}function _c(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))ba();g=h;do if(!(Hc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Hc()|0)==0;f=f?c[2254]|0:0;Yb[c[f+56>>2]&63](f,256,g)|0;f=0;do{a[9067+f>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[g+f>>0]|0)+(d[k>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[m>>0]|0;a[m>>0]=a[k>>0]|0;a[k>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[k>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[k>>0]=a[9067+(l&255)>>0]|0;a[9067+(d[9066]|0)>>0]=g;a[e>>0]=a[9067+((d[9067+(d[9065]|0)>>0]|0)+f&255)>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function $c(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[b>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[9328+(e&255)>>0]|0)!=(a[9328+(d[c>>0]|0)>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[b>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[9328+(e&255)>>0]|0)-(d[9328+(d[c>>0]|0)>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ad(a){a=a|0;c[2241]=a;return 0}function bd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;a:do if((f|0)==(d|0)){qg(f,1,10016,n);h=0}else{h=mg(48,0)|0;if(!h){c[d+52>>2]=7;h=c[d+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;h=0;break}else{rg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[m>>2]=sg(d,f,g)|0;k=sg(d,d,e)|0;l=h+4|0;c[l>>2]=k;c[h>>2]=d;c[h+20>>2]=f;c[h+16>>2]=1;c[h+40>>2]=0;e=c[m>>2]|0;do if(!((e|0)==0|(k|0)==0)?(tg(k,c[(c[e+4>>2]|0)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[(c[l>>2]|0)+8>>0]|0)){e=(c[m>>2]|0)+16|0;c[e>>2]=(c[e>>2]|0)+1;break a}else{qg(d,1,47416,n);break}while(0);Sc(h);h=0}while(0);i=o;return h|0}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0;E=i;i=i+32|0;if((i|0)>=(j|0))ba();z=E;p=E+16|0;s=E+12|0;w=E+8|0;B=b+24|0;g=c[B>>2]|0;h=c[g+4>>2]|0;c[h+4>>2]=c[g>>2];D=b+28|0;f=c[D>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){v=c[h>>2]|0;A=b+4|0;f=c[A>>2]|0;y=c[c[f+4>>2]>>2]|0;if((c[b>>2]|0)!=0?(a[h+20>>0]|0)==2:0){x=0;g=5}else t=5;do if((t|0)==5){h=b+12|0;if(!(c[h>>2]|0)){g=ug(f,2)|0;if(g){x=0;break}c[h>>2]=1;x=c[A>>2]|0;g=c[x+4>>2]|0;c[g+4>>2]=c[x>>2];g=c[(c[g+12>>2]|0)+56>>2]|0;c[b+8>>2]=d[g+41>>0]<<16|d[g+40>>0]<<24|d[g+42>>0]<<8|d[g+43>>0];g=c[B>>2]|0}if(!(a[g+8>>0]|0)){x=1;g=ug(g,0)|0}else{x=0;g=0}}while(0);l=c[(c[B>>2]|0)+4>>2]|0;u=c[l+32>>2]|0;o=c[(c[A>>2]|0)+4>>2]|0;r=c[o+32>>2]|0;o=(a[(c[o>>2]|0)+5>>0]|0)==5;f=(u|0)==(r|0)|(g|0)==0&o^1?g:8;l=c[l+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[g>>2]|0;n=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[(c[(c[B>>2]|0)+4>>2]|0)+32>>2]|0)>>>0)|0)+1|0)){f=vg(v,m,p,2)|0;if(!f){k=c[p>>2]|0;f=wg(b,m,c[k+4>>2]|0,0)|0;if(k)xg(k)}}else f=0;m=(c[g>>2]|0)+1|0;c[g>>2]=m;n=n+1|0}while(h|(n|0)<(e|0))}while(0);if(!f){c[b+36>>2]=l;f=c[b+16>>2]|0;c[b+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[f>>2]|0)){A=(c[c[(c[B>>2]|0)+4>>2]>>2]|0)+88|0;c[b+44>>2]=c[A>>2];c[A>>2]=b;c[f>>2]=1;f=0}else f=0}else t=22}else if((f|0)==101)t=22;do if((t|0)==22){if(!l){g=c[A>>2]|0;f=c[g+4>>2]|0;c[f+4>>2]=c[g>>2];c[f+44>>2]=0;f=yg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=zg(c[A>>2]|0,1,(c[b+8>>2]|0)+1|0)|0;if(!f){g=c[b>>2]|0;if(g)Ag(g);if(o?(q=Bg(c[A>>2]|0,2)|0,(q|0)!=0):0){f=q;break}if((u|0)<(r|0)){g=(r|0)/(u|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[(c[(c[A>>2]|0)+4>>2]|0)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((u|0)<0)<<31>>31;q=ow(l|0,((l|0)<0)<<31>>31|0,u|0,b|0)|0;o=C;e=c[y+60>>2]|0;n=c[y+24>>2]|0;b:do if(g>>>0<=n>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=vg(y,g,s,0)|0;if(f)break b;h=c[s>>2]|0;f=Cg(h)|0;if(h)xg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>n>>>0|h^1)break;k=c[(c[(c[A>>2]|0)+4>>2]|0)+32>>2]|0;h=c[2514]|0}if(h)t=38}else t=38;while(0);if((t|0)==38)f=Dg(y,0,1)|0;h=c[2514]|0;l=h+r|0;m=((l|0)<0)<<31>>31;k=(m|0)<(o|0)|(m|0)==(o|0)&l>>>0<q>>>0;l=k?l:q;m=k?m:o;h=h+u|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0<l>>>0))do{c[w>>2]=0;f=mw(h|0,k|0,u|0,b|0)|0;f=fw(f|0,C|0,1,0)|0;f=vg(v,f,w,0)|0;g=c[w>>2]|0;if(!f)f=pc[c[(c[e>>2]|0)+12>>2]&31](e,c[g+4>>2]|0,u,h,k)|0;if(g)xg(g);h=fw(h|0,k|0,u|0,b|0)|0;k=C;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0<l>>>0));if(!g)break;f=nc[c[(c[e>>2]|0)+24>>2]&127](e,z)|0;w=c[z+4>>2]|0;if((f|0)==0&((w|0)>(o|0)|((w|0)==(o|0)?(c[z>>2]|0)>>>0>q>>>0:0)))f=Yb[c[(c[e>>2]|0)+16>>2]&63](e,q,o)|0;if(f)break;f=Eg(y,0)|0}else{c[y+24>>2]=_((u|0)/(r|0)|0,l)|0;f=Dg(y,0,0)|0}if(!f){f=Fg(c[A>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(x){Gg(c[B>>2]|0,0)|0;Fg(c[B>>2]|0,0)|0}f=(f|0)==3082?7:f;c[D>>2]=f}i=E;return f|0}function dd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[a+20>>2]|0;e=c[a+24>>2]|0;d=c[e+4>>2]|0;c[d+4>>2]=c[e>>2];if(c[a>>2]|0){e=e+16|0;c[e>>2]=(c[e>>2]|0)+-1}if(c[a+40>>2]|0){d=(c[d>>2]|0)+88|0;while(1){e=c[d>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[d>>2]=c[a+44>>2]}Hg(c[a+4>>2]|0,0,0);d=c[a+28>>2]|0;d=(d|0)==101?0:d;e=c[a>>2]|0;if(e){c[e+52>>2]=d;f=c[e+236>>2]|0;do if(f){g=f+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(f);e=c[a>>2]|0;break}}while(0);Ig(e);if(c[a>>2]|0)Sc(a)}Ig(h)}return d|0}function ed(a){a=a|0;return c[a+32>>2]|0}function fd(a){a=a|0;return c[a+36>>2]|0}function gd(a){a=a|0;if((a|0)!=0?(b[a+88>>1]&256)!=0:0)a=c[a+168>>2]|0;else a=0;return a|0}function hd(a){a=a|0;if(!a)a=1;else a=(b[a+88>>1]&8)!=0;return a&1|0}function id(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(a){b=c[a>>2]|0;if(!b){Zc(21,47360,d);c[d>>2]=68910;c[d+4>>2]=10788;Zc(21,13648,d);b=21;break}else{a=Kg(b,Jg(a)|0)|0;Ig(b);b=a;break}}else b=0;while(0);i=e;return b|0}function jd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Lg(b)|0;c[b+76>>2]=-1;c[b+80>>2]=0;a[b+86>>0]=2;c[b+40>>2]=-1108210269;c[b+92>>2]=0;c[b+72>>2]=1;a[b+87>>0]=-1;c[b+104>>2]=0;e=b+144|0;c[e>>2]=0;c[e+4>>2]=0;b=Kg(c[b>>2]|0,d)|0}return b|0}function kd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[h>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[i>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[d+(g*40|0)+8>>1]&9312)==0?(c[d+(g*40|0)+24>>2]|0)==0:0)){Mg(f);d=c[i>>2]|0;e=b[h>>1]|0}b[d+(g*40|0)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[d>>1]|0;if((e&256)!=0?(c[a+188>>2]|0)!=0:0)b[d>>1]=e|8;return 0}function ld(a){a=a|0;var d=0;d=a+8|0;if(b[d>>1]&18){Ng(a)|0;b[d>>1]=e[d>>1]|0|16;if(!(c[a+12>>2]|0))d=0;else d=c[a+16>>2]|0}else d=Og(a,1)|0;return d|0}function md(a){a=a|0;return Og(a,1)|0}function nd(a){a=a|0;return Pg(a,1)|0}function od(a){a=a|0;return Pg(a,2)|0}function pd(a){a=a|0;return +(+Qg(a))}function qd(a){a=a|0;a=Rg(a)|0;return a|0}function rd(a){a=a|0;a=Rg(a)|0;return a|0}function sd(a){a=a|0;return Og(a,2)|0}function td(a){a=a|0;return Og(a,3)|0}function ud(a){a=a|0;return Og(a,2)|0}function vd(a){a=a|0;return d[10064+((e[a+8>>1]|0)&31)>>0]|0|0}function wd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,0,d);return}function xd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))_b[g&31](d);if(b){c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0}}else Sg(b,d,e,0,g);return}function yd(a,b){a=a|0;b=+b;Ug(c[a>>2]|0,b);return}function zd(b,d,e){b=b|0;d=d|0;e=e|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,d,e,1,-1)|0;return}function Ad(b,d,e){b=b|0;d=d|0;e=e|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,d,e,2,-1)|0;return}function Bd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[a>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[f>>1]&9312)){c[a>>2]=d;c[a+4>>2]=e;b[f>>1]=4}else Vg(a,d,e);return}function Cd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[a>>2]|0;f=a+8|0;if(!(b[f>>1]&9312)){c[a>>2]=d;c[a+4>>2]=e;b[f>>1]=4}else Vg(a,d,e);return}function Dd(a){a=a|0;var d=0;a=c[a>>2]|0;d=a+8|0;if(!(b[d>>1]&9312))b[d>>1]=1;else rg(a);return}function Ed(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,1,d);return}function Fd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))_b[g&31](d);if(b){c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0}}else Sg(b,d,e,h<<24>>24==4?2:h,g);return}function Gd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,2,d);return}function Hd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,3,d);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,2,d);return}function Jd(a,b){a=a|0;b=b|0;Wg(c[a>>2]|0,b)|0;return}function Kd(a,b){a=a|0;b=b|0;Xg(c[a>>2]|0,b);return}function Ld(d,e){d=d|0;e=e|0;var f=0;c[d+20>>2]=e;a[d+25>>0]=1;f=c[d>>2]|0;if(b[f+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344;Tg(f,d,-1,1,0)|0}return}function Md(b){b=b|0;c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0;return}function Nd(d){d=d|0;var e=0,f=0;e=c[d>>2]|0;f=e+8|0;if(!(b[f>>1]&9312))b[f>>1]=1;else{rg(e);e=c[d>>2]|0}c[d+20>>2]=7;a[d+25>>0]=1;a[(c[e+32>>2]|0)+65>>0]=1;return}function Od(f){f=f|0;var g=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;W=i;i=i+224|0;if((i|0)>=(j|0))ba();R=W+8|0;Q=W;if(!(Yg(f)|0)){V=c[f>>2]|0;J=f+88|0;b[J>>1]=b[J>>1]&-513;N=f+40|0;O=f+76|0;P=f+128|0;U=f+80|0;z=f+168|0;A=f+8|0;B=f+20|0;D=f+32|0;E=f+4|0;F=f+84|0;T=f+44|0;G=(f|0)==0;H=f+52|0;I=f+48|0;y=0;while(1){if((c[N>>2]|0)!=-1108210269)jd(f)|0;x=c[f>>2]|0;if(a[x+65>>0]|0){S=7;break}l=c[O>>2]|0;do if((l|0)<1){if(b[J>>1]&8){c[U>>2]=17;l=1;break}if((l|0)<0){l=x+148|0;if(!(c[l>>2]|0))c[x+240>>2]=0;if((c[x+184>>2]|0)!=0?(a[x+145>>0]|0)==0:0)Zg(c[x>>2]|0,P)|0;c[l>>2]=(c[l>>2]|0)+1;l=b[J>>1]|0;if(!(l&64)){l=x+156|0;c[l>>2]=(c[l>>2]|0)+1;l=b[J>>1]|0}if(l&128){w=x+152|0;c[w>>2]=(c[w>>2]|0)+1}c[O>>2]=0;S=22}else S=22}else S=22;while(0);if((S|0)==22){S=0;do if(!(b[J>>1]&3)){w=x+160|0;c[w>>2]=(c[w>>2]|0)+1;l=ch(f)|0;c[w>>2]=(c[w>>2]|0)+-1;if((l|0)==100)l=100;else S=101}else{p=c[f>>2]|0;v=c[A>>2]|0;u=v+40|0;_g(u,8);c[B>>2]=0;if((c[U>>2]|0)==7){a[p+65>>0]=1;l=1;S=101;break}n=c[D>>2]|0;q=b[J>>1]&3;if(q<<16>>16==1){o=c[A>>2]|0;r=o+360|0;if(b[o+368>>1]&16){s=(c[o+372>>2]|0)>>>2;m=c[o+376>>2]|0;if(!s){t=m;o=n;g=0}else{l=0;o=n;do{o=(c[(c[m+(l<<2)>>2]|0)+4>>2]|0)+o|0;l=l+1|0}while((l|0)<(s|0));t=m;g=s}}else{t=0;o=n;g=0}}else{t=0;o=n;g=0;r=0}n=q<<16>>16==2;m=c[O>>2]|0;while(1){l=m+1|0;if((m|0)>=(o|0)){S=33;break}if(!n)break;if((a[(c[E>>2]|0)+(m*20|0)>>0]|0)==-99)break;else m=l}if((S|0)==33){c[O>>2]=l;c[U>>2]=0;l=101;S=101;break}c[O>>2]=l;if(c[p+240>>2]|0){c[U>>2]=9;c[R>>2]=15832;$g(T,p,10344,R);l=1;S=101;break}o=c[D>>2]|0;if((m|0)<(o|0)){l=m;w=(c[E>>2]|0)+(m*20|0)|0}else{m=m-o|0;o=c[t>>2]|0;n=c[o+4>>2]|0;if((m|0)<(n|0))n=m;else{o=m;l=0;while(1){m=o-n|0;l=l+1|0;o=c[t+(l<<2)>>2]|0;n=c[o+4>>2]|0;if((m|0)<(n|0)){n=m;break}else o=m}}l=n;w=(c[o>>2]|0)+(n*20|0)|0}if((b[J>>1]&3)==1){b[v+48>>1]=4;n=u;c[n>>2]=l;c[n+4>>2]=((l|0)<0)<<31>>31;b[v+88>>1]=2562;n=c[44856+(d[w>>0]<<2)>>2]|0;c[v+96>>2]=n;o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;s=v+80|0;c[v+92>>2]=o-n&1073741823;a[v+90>>0]=1;if((a[w+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)o=0;else{n=c[w+16>>2]|0;m=0;while(1){o=m+1|0;if((c[t+(m<<2)>>2]|0)==(n|0)){o=m;break a}if((o|0)<(g|0))m=o;else break}}while(0);if((o|0)==(g|0)?(ah(r,l,(g|0)!=0&1)|0)==0:0){c[(c[r+16>>2]|0)+(g<<2)>>2]=c[w+16>>2];v=r+8|0;b[v>>1]=e[v>>1]|16;c[r+12>>2]=l;v=s}else v=s}else v=s}b[v+48>>1]=4;u=c[w+4>>2]|0;t=v+40|0;c[t>>2]=u;c[t+4>>2]=((u|0)<0)<<31>>31;b[v+88>>1]=4;t=c[w+8>>2]|0;u=v+80|0;c[u>>2]=t;c[u+4>>2]=((t|0)<0)<<31>>31;b[v+128>>1]=4;u=c[w+12>>2]|0;t=v+120|0;c[t>>2]=u;c[t+4>>2]=((u|0)<0)<<31>>31;t=v+160|0;if(!(bh(t,32)|0)){b[v+168>>1]=514;u=v+176|0;g=c[u>>2]|0;b:do switch(a[w+1>>0]|0){case -6:{p=c[w+16>>2]|0;l=p+6|0;c[R>>2]=e[l>>1];Yc(32,g,44768,R)|0;if(!g)o=0;else{o=g;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-g&1073741823}c:do if(b[l>>1]|0){q=p+16|0;r=0;while(1){n=c[p+(r<<2)+20>>2]|0;if(n){n=c[n>>2]|0;if(!n){m=0;n=0}else S=61}else{n=44776;S=61}do if((S|0)==61){S=0;s=n;while(1)if(!(a[s>>0]|0))break;else s=s+1|0;m=s-n&1073741823;if((m|0)!=6)break;s=(Vv(n,11152,6)|0)==0;m=s?1:6;n=s?44784:n}while(0);if((m+o|0)>26)break;s=o+1|0;a[g+o>>0]=44;if(a[(c[q>>2]|0)+r>>0]|0){a[g+s>>0]=45;s=o+2|0}gw(g+s|0,n|0,m+1|0)|0;o=s+m|0;r=r+1|0;if((r|0)>=(e[l>>1]|0))break c}l=g+o|0;a[l>>0]=44;a[l+1>>0]=46;a[l+2>>0]=46;a[l+3>>0]=46}while(0);a[g+o>>0]=41;a[g+(o+1)>>0]=0;n=g;break}case -15:{Yc(32,g,44832,R)|0;n=g;break}case -18:{Yc(32,g,44848,R)|0;n=g;break}case -4:{c[R>>2]=c[c[w+16>>2]>>2];Yc(32,g,44792,R)|0;n=g;break}case -5:{l=c[w+16>>2]|0;n=b[l>>1]|0;c[R>>2]=c[l+24>>2];c[R+4>>2]=n;Yc(32,g,44800,R)|0;n=g;break}case -13:{m=c[w+16>>2]|0;l=c[m+4>>2]|0;n=R;c[n>>2]=c[m>>2];c[n+4>>2]=l;Yc(32,g,19920,R)|0;n=g;break}case -14:{c[R>>2]=c[w+16>>2];Yc(32,g,44808,R)|0;n=g;break}case -12:{h[k>>3]=+h[c[w+16>>2]>>3];c[R>>2]=c[k>>2];c[R+4>>2]=c[k+4>>2];Yc(32,g,19912,R)|0;n=g;break}case -8:{o=c[w+16>>2]|0;n=e[o+8>>1]|0;if(n&2){n=c[o+16>>2]|0;break b}if(n&4){m=o;l=c[m+4>>2]|0;n=R;c[n>>2]=c[m>>2];c[n+4>>2]=l;Yc(32,g,19920,R)|0;n=g;break b}if(n&8){h[k>>3]=+h[o>>3];c[R>>2]=c[k>>2];c[R+4>>2]=c[k+4>>2];Yc(32,g,19912,R)|0;n=g;break b}if(!(n&1))n=44816;else{Yc(32,g,20304,R)|0;n=g}break}case -19:{a[g>>0]=0;n=g;break}case -10:{c[R>>2]=c[(c[w+16>>2]|0)+8>>2];Yc(32,g,44824,R)|0;n=g;break}default:{o=c[w+16>>2]|0;if(!o){a[g>>0]=0;n=g}else n=o}}while(0);if((n|0)==(c[u>>2]|0)){if(!n)l=0;else{o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;l=o-n&1073741823}c[v+172>>2]=l;a[v+170>>0]=1}else Tg(t,n,-1,1,0)|0;l=b[J>>1]|0;if((l&3)==1){if(bh(v+200|0,4)|0){l=1;S=101;break}b[v+208>>1]=514;c[v+212>>2]=2;l=c[v+216>>2]|0;c[R>>2]=d[w+3>>0];Yc(3,l,44760,R)|0;a[v+210>>0]=1;b[v+248>>1]=1;l=b[J>>1]|0}b[F>>1]=12-((l&3)<<2);c[B>>2]=(c[A>>2]|0)+40;c[U>>2]=0;l=100}else{l=1;S=101}}while(0);if((S|0)==101){S=0;g=x+184|0;if(((c[g>>2]|0)!=0?(a[x+145>>0]|0)==0:0)?(c[z>>2]|0)!=0:0){Zg(c[x>>2]|0,Q)|0;g=c[g>>2]|0;u=c[x+188>>2]|0;v=c[z>>2]|0;m=Q;w=P;w=$v(c[m>>2]|0,c[m+4>>2]|0,c[w>>2]|0,c[w+4>>2]|0)|0;w=ow(w|0,C|0,1e6,0)|0;mc[g&15](u,v,w,C)}if((l|0)==101){p=x+20|0;o=c[p>>2]|0;if((o|0)>0){q=x+16|0;r=x+216|0;s=x+220|0;g=0;l=0;do{n=c[q>>2]|0;m=c[n+(g<<4)+4>>2]|0;if(((m|0)!=0?(K=c[m+4>>2]|0,c[K+4>>2]=c[m>>2],K=c[(c[K>>2]|0)+208>>2]|0,(K|0)!=0):0)?(M=K+12|0,L=c[M>>2]|0,c[M>>2]=0,M=c[r>>2]|0,(M|0)!=0&(L|0)>0&(l|0)==0):0){l=lc[M&31](c[s>>2]|0,x,c[n+(g<<4)>>2]|0,L)|0;o=c[p>>2]|0}g=g+1|0}while((g|0)<(o|0))}else l=0;c[U>>2]=l;l=(l|0)==0?101:1}}c[x+52>>2]=l;if((Kg(c[f>>2]|0,c[U>>2]|0)|0)==7)c[U>>2]=7}if((b[J>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=dh(f)|0;g=c[x+56>>2]&l;if((g|0)!=17)break;o=y+1|0;if((y|0)>=50){g=17;break}m=c[O>>2]|0;if(!G?(b[J>>1]&256)!=0:0)l=c[z>>2]|0;else l=0;n=c[f>>2]|0;g=eh(n,l,-1,0,f,Q,0)|0;if((g|0)==7){g=n;S=124;break}else if(g){S=127;break}y=c[Q>>2]|0;gw(R|0,y|0,208)|0;gw(y|0,f|0,208)|0;gw(f|0,R|0,208)|0;w=y+52|0;x=c[w>>2]|0;c[w>>2]=c[H>>2];c[H>>2]=x;x=y+48|0;w=c[x>>2]|0;c[x>>2]=c[I>>2];c[I>>2]=w;w=y+168|0;x=c[w>>2]|0;c[w>>2]=c[z>>2];c[z>>2]=x;b[J>>1]=b[J>>1]&-257|b[y+88>>1]&256;fh(y,f);c[y+80>>2]=0;Jg(y)|0;jd(f)|0;if((m|0)<=-1){y=o;continue}b[J>>1]=b[J>>1]|512;y=o}if((S|0)==7){c[U>>2]=7;g=7}else if((S|0)==124){a[g+65>>0]=1;g=7;S=127}do if((S|0)==127){l=Og(c[V+236>>2]|0,1)|0;ig(V,c[T>>2]|0);if(!(a[V+65>>0]|0)){c[T>>2]=gh(V,l)|0;c[U>>2]=g;break}else{c[T>>2]=0;c[U>>2]=7;g=7;break}}while(0);g=Kg(V,g)|0}else{c[R>>2]=69408;c[R+4>>2]=10788;Zc(21,13648,R);g=21}i=W;return g|0}function Pd(a){a=a|0;return c[(c[a+4>>2]|0)+4>>2]|0}function Qd(a){a=a|0;return c[(c[a>>2]|0)+32>>2]|0}function Rd(a,d){a=a|0;d=d|0;var e=0;e=c[a+8>>2]|0;if(!(b[e+8>>1]&8192))e=hh(a,d)|0;else e=c[e+16>>2]|0;return e|0}function Sd(a,b){a=a|0;b=b|0;var d=0;d=c[(c[a+12>>2]|0)+204>>2]|0;a:do if(!d)d=0;else{a=c[a+16>>2]|0;while(1){if((c[d>>2]|0)==(a|0)?(c[d+4>>2]|0)==(b|0):0)break;d=c[d+16>>2]|0;if(!d){d=0;break a}}d=c[d+8>>2]|0}while(0);return d|0}function Td(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[b+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[j>>2]|0;a:do if(g){i=c[b+16>>2]|0;while(1){if((c[g>>2]|0)==(i|0)?(c[g+4>>2]|0)==(d|0):0)break;g=c[g+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[g+12>>2]|0;if(h)_b[h&31](c[g+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=ih(c[h>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(i|0));c[g>>2]=c[b+16>>2];c[g+4>>2]=d;c[g+16>>2]=c[j>>2];c[j>>2]=g;h=b+25|0;if(!(a[h>>0]|0)){c[b+20>>2]=0;a[h>>0]=1}}c[g+8>>2]=e;c[g+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)_b[f&31](e);return}function Ud(a){a=a|0;return c[(c[a+8>>2]|0)+12>>2]|0}function Vd(a){a=a|0;if(!a)a=0;else a=e[a+84>>1]|0;return a|0}function Wd(a){a=a|0;if((a|0)!=0?(c[a+20>>2]|0)!=0:0)a=e[a+84>>1]|0;else a=0;return a|0}function Xd(a,b){a=a|0;b=b|0;var d=0;b=ld(jh(a,b)|0)|0;if(a){d=a+80|0;c[d>>2]=Kg(c[a>>2]|0,c[d>>2]|0)|0}return b|0}function Yd(a,b){a=a|0;b=b|0;var d=0;b=Pg(jh(a,b)|0,1)|0;if(a){d=a+80|0;c[d>>2]=Kg(c[a>>2]|0,c[d>>2]|0)|0}return b|0}function Zd(a,b){a=a|0;b=b|0;var d=0;b=Pg(jh(a,b)|0,2)|0;if(a){d=a+80|0;c[d>>2]=Kg(c[a>>2]|0,c[d>>2]|0)|0}return b|0}function _d(a,b){a=a|0;b=b|0;var d=0.0;d=+Qg(jh(a,b)|0);if(a){b=a+80|0;c[b>>2]=Kg(c[a>>2]|0,c[b>>2]|0)|0}return +d}function $d(a,b){a=a|0;b=b|0;var d=0;b=Rg(jh(a,b)|0)|0;if(a){d=a+80|0;c[d>>2]=Kg(c[a>>2]|0,c[d>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0,e=0;b=Rg(jh(a,b)|0)|0;d=C;if(a){e=a+80|0;c[e>>2]=Kg(c[a>>2]|0,c[e>>2]|0)|0}C=d;return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Og(jh(a,b)|0,1)|0;if(a){d=a+80|0;c[d>>2]=Kg(c[a>>2]|0,c[d>>2]|0)|0}return b|0}function ce(a,d){a=a|0;d=d|0;var f=0,g=0;d=jh(a,d)|0;f=d+8|0;g=e[f>>1]|0;if(g&2048)b[f>>1]=g&59391|4096;if(a){f=a+80|0;c[f>>2]=Kg(c[a>>2]|0,c[f>>2]|0)|0}return d|0}function de(a,b){a=a|0;b=b|0;var d=0;b=Og(jh(a,b)|0,2)|0;if(a){d=a+80|0;c[d>>2]=Kg(c[a>>2]|0,c[d>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var f=0;b=d[10064+((e[(jh(a,b)|0)+8>>1]|0)&31)>>0]|0;if(a){f=a+80|0;c[f>>2]=Kg(c[a>>2]|0,c[f>>2]|0)|0}return b|0}function fe(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[b>>2]|0;if(!b)f=0;else f=e[b+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Og((c[b+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[f>>0]|0){a[f>>0]=0;d=0}}else d=0;return d|0}function ge(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[b>>2]|0;if(!b)f=0;else f=e[b+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Og((c[b+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[f>>0]|0){a[f>>0]=0;d=0}}else d=0;return d|0}function he(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[b>>2]|0;if(!b)f=0;else f=e[b+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Og((c[b+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[f>>0]|0){a[f>>0]=0;d=0}}else d=0;return d|0}function ie(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[b>>2]|0;if(!b)f=0;else f=e[b+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Og((c[b+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[f>>0]|0){a[f>>0]=0;d=0}}else d=0;return d|0}function je(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return kh(a,b,c,d,e,0)|0}function ke(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{_b[f&31](c);d=18}}else d=kh(a,b,c,d,f,0)|0;return d|0}function le(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=lh(a,b)|0;if(!e)Ug((c[a+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function me(a,b,c){a=a|0;b=b|0;c=c|0;return ne(a,b,c,((c|0)<0)<<31>>31)|0}function ne(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=lh(a,d)|0;do if(!g){d=d+-1|0;h=c[a+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[d>>1]&9312)){c[a>>2]=e;c[a+4>>2]=f;b[d>>1]=4;break}else{Vg(a,e,f);break}}while(0);return g|0}function oe(a,b){a=a|0;b=b|0;return lh(a,b)|0}function pe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return kh(a,b,c,d,e,1)|0}function qe(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{_b[f&31](c);d=18}}else d=kh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return kh(a,b,c,d,e,2)|0}function se(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[g+8>>1]|0;j=d[10064+(i&31)>>0]|0;do if((j|0)==3)i=kh(e,f,c[g+16>>2]|0,c[g+12>>2]|0,-1,a[g+10>>0]|0)|0;else if((j|0)==2)i=le(e,f,+h[g>>3])|0;else if((j|0)==4)if(!(i&16384)){i=kh(e,f,c[g+16>>2]|0,c[g+12>>2]|0,-1,0)|0;break}else{i=te(e,f,c[g>>2]|0)|0;break}else if((j|0)==1){i=g;i=ne(e,f,c[i>>2]|0,c[i+4>>2]|0)|0}else i=lh(e,f)|0;while(0);return i|0}function te(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=lh(a,b)|0;if(!e)Xg((c[a+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ue(a){a=a|0;if(!a)a=0;else a=b[a+68>>1]|0;return a|0}function ve(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[a+70>>1]|0)>=(d|0):0)d=c[(c[a+64>>2]|0)+(d+-1<<2)>>2]|0;else d=0;return d|0}function we(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[d>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return mh(b,c,d)|0}function xe(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[a+68>>1]|0)==(b[d+68>>1]|0)){f=d+88|0;e=b[f>>1]|0;if((e&256)!=0?(c[d+188>>2]|0)!=0:0)b[f>>1]=e|8;e=a+88|0;f=b[e>>1]|0;if((f&256)!=0?(c[a+188>>2]|0)!=0:0)b[e>>1]=f|8;fh(a,d);e=0}else e=1;return e|0}function ye(a){a=a|0;if(!a)a=0;else a=c[a>>2]|0;return a|0}function ze(a){a=a|0;if(!a)a=1;else a=(e[a+88>>1]|0)>>>6&1;return a|0}function Ae(a){a=a|0;if((a|0)!=0?(c[a+76>>2]|0)>-1:0)a=(c[a+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Be(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[a>>2]|0}function Ce(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[a>>2]|0;if(d)c[a>>2]=0;return b|0}function De(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[c>>1]|0;b=d[10064+(f&31)>>0]|0;if((f&15|0)==2){nh(a,0);b=d[10064+((e[c>>1]|0)&31)>>0]|0}return b|0}function Ee(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;R=i;i=i+16|0;if((i|0)>=(j|0))ba();P=R;Q=R+4|0;c[Q>>2]=0;c[m>>2]=0;K=(l|0)!=0;L=K&1;N=ih(d,28,0)|0;do if(N){l=N+0|0;p=l+28|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(p|0));p=ih(d,536,0)|0;if(p){H=d+20|0;I=d+16|0;y=d+24|0;l=N+20|0;z=N+12|0;A=N+24|0;B=d+65|0;C=L^3;D=L|2;E=p+440|0;F=p+72|0;G=p+68|0;o=0;J=1;n=0;while(1){bw(p|0,0,536)|0;c[p>>2]=d;ig(d,o);c[Q>>2]=0;o=c[H>>2]|0;if((o|0)>0){q=c[I>>2]|0;s=0;do{r=c[q+(s<<4)+4>>2]|0;if(r)c[(c[r+4>>2]|0)+4>>2]=c[r>>2];s=s+1|0}while((s|0)!=(o|0))}x=oh(p,0,f,e)|0;if(!x)break;o=a[x+44>>0]|0;if(o&16){O=11;break}if(o&32){O=13;break}if(c[x+12>>2]|0){O=17;break}w=x+38|0;t=b[w>>1]|0;a:do if(t<<16>>16>0){s=c[x+4>>2]|0;r=t<<16>>16;o=0;while(1){q=o+1|0;if(!($c(c[s+(o*24|0)>>2]|0,g)|0)){q=o;break a}if((q|0)<(r|0))o=q;else break}}else q=0;while(0);if((q|0)==(t<<16>>16|0)){O=23;break}if(K){if((c[y>>2]&524288|0)!=0?(M=c[x+16>>2]|0,(M|0)!=0):0){u=M;o=0;do{t=c[u+20>>2]|0;if((t|0)>0){s=0;do{o=(c[u+(s<<3)+36>>2]|0)==(q|0)?10280:o;s=s+1|0}while((s|0)<(t|0))}u=c[u+4>>2]|0}while((u|0)!=0)}else o=0;s=c[x+8>>2]|0;if(s)do{r=b[s+46>>1]|0;if(r<<16>>16){v=c[s+4>>2]|0;t=r&65535;u=0;do{o=(b[v+(u<<1)>>1]|0)==(q|0)?10296:o;u=u+1|0}while((u|0)<(t|0))}s=c[s+20>>2]|0}while((s|0)!=0);if(o){O=36;break}}v=rh(p)|0;c[l>>2]=v;if(v){u=c[x+68>>2]|0;b:do if(u){t=c[H>>2]|0;if((t|0)>0){s=c[I>>2]|0;o=0;while(1){r=o+1|0;if((c[s+(o<<4)+12>>2]|0)==(u|0)){r=o;break b}if((r|0)<(t|0))o=r;else break}}else r=0}else r=-1e6;while(0);o=c[u+4>>2]|0;th(v,sh(v,4,r,L,c[u>>2]|0)|0,o,-14);o=v+4|0;s=c[o>>2]|0;t=v+32|0;if(s)a[s+(((c[t>>2]|0)+-1|0)*20|0)+3>>0]=1;uh(v,10,10120)|0;s=v+96|0;c[s>>2]=c[s>>2]|1<<r;if((c[t>>2]|0)>>>0>1){u=c[o>>2]|0;c[u+24>>2]=r;s=x+32|0;c[u+28>>2]=c[s>>2];c[(c[o>>2]|0)+32>>2]=L}else s=x+32|0;th(v,1,c[x>>2]|0,0);vh(v,C);if((c[t>>2]|0)>>>0>D>>>0){c[(c[o>>2]|0)+(D*20|0)+8>>2]=c[s>>2];c[(c[o>>2]|0)+(D*20|0)+12>>2]=r}th(v,D,(b[w>>1]|0)+1|0,-14);if((c[t>>2]|0)>>>0>6)c[(c[o>>2]|0)+128>>2]=b[w>>1];if(!(a[B>>0]|0)){c[E>>2]=1;c[F>>2]=1;c[G>>2]=1;wh(v,p)}}c[N>>2]=L;c[z>>2]=q;c[A>>2]=d;if(a[B>>0]|0){O=57;break}ne(c[l>>2]|0,1,h,k)|0;n=xh(N,h,k,Q)|0;if(!((J|0)<50&(n|0)==17)){O=57;break}o=c[Q>>2]|0;J=J+1|0;n=17}if((O|0)==11){c[P>>2]=f;ph(p,10160,P)}else if((O|0)==13){c[P>>2]=f;ph(p,10192,P)}else if((O|0)==17){c[P>>2]=f;ph(p,10232,P)}else if((O|0)==23){ig(d,0);c[P>>2]=g;c[Q>>2]=qh(d,10256,P)|0;n=1;O=62;break}else if((O|0)==36){ig(d,0);c[P>>2]=o;c[Q>>2]=qh(d,10304,P)|0;n=1;O=62;break}else if((O|0)==57)if(!n){n=1;o=p;O=58;break}else{o=p;O=61;break}o=p+4|0;if(!(c[o>>2]|0)){n=1;O=62}else{ig(d,0);c[Q>>2]=c[o>>2];c[o>>2]=0;n=1;O=62}}else{n=1;o=p;O=58}}else{n=0;o=0;O=58}while(0);do if((O|0)==58)if(a[d+65>>0]|0)if(n){n=0;O=61;break}else{n=0;O=64;break}else{c[m>>2]=N;n=0;break}while(0);if((O|0)==61){l=N+20|0;p=o;O=62}if((O|0)==62){o=c[l>>2]|0;if(!o){o=p;O=64}else{Jg(o)|0;o=p;O=64}}if((O|0)==64)ig(d,N);H=c[Q>>2]|0;c[P>>2]=H;qg(d,n,(H|0)!=0?10344:0,P);ig(d,H);yh(o);ig(d,o);H=Kg(d,n)|0;i=R;return H|0}function Fe(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[a+24>>2]|0;b=id(c[a+20>>2]|0)|0;ig(d,a);a=b}return a|0}function Ge(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ah(a,b,c,d,18)|0}function He(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ah(a,b,c,d,19)|0}function Ie(a){a=a|0;if((a|0)!=0?(c[a+20>>2]|0)!=0:0)a=c[a+4>>2]|0;else a=0;return a|0}function Je(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();e=h;f=h+8|0;if(!a){c[e>>2]=77720;c[e+4>>2]=10788;Zc(21,13648,e);b=21}else{g=c[a+24>>2]|0;if(c[a+20>>2]|0){b=xh(a,b,d,f)|0;if(!b)b=0;else{d=c[f>>2]|0;c[e>>2]=d;qg(g,b,(d|0)!=0?10344:0,e);ig(g,d)}}else b=4;b=Kg(g,b)|0}i=h;return b|0}function Ke(a,d,e){a=a|0;d=d|0;e=e|0;c[a+284>>2]=d;c[a+288>>2]=e;a=c[a+4>>2]|0;if(a)do{e=a+88|0;b[e>>1]=b[e>>1]|8;a=c[a+52>>2]|0}while((a|0)!=0);return 0}function Le(a,b){a=a|0;b=b|0;return (Ch(a,b,10352,0)|0)==0|0}function Me(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))ba();m=B;x=B+12|0;y=B+8|0;c[y>>2]=0;do if(Dh(e)|0){l=(f|0)==0?10360:f;z=e+52|0;c[z>>2]=0;A=e+236|0;m=c[A>>2]|0;do if(m){f=m+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;break}else{rg(m);break}}while(0);u=(g|0)==0;v=e+24|0;m=0;a:while(1){do{if(m){n=39;break a}if(!(a[l>>0]|0)){m=0;n=39;break a}c[y>>2]=0;m=eh(e,l,-1,1,0,y,x)|0}while((m|0)!=0);l=c[y>>2]|0;if(!l){l=c[x>>2]|0;m=0;continue}t=b[l+84>>1]|0;r=t&65535;s=r<<3|1;t=t<<16>>16==0;f=0;n=0;o=0;b:do{m=Od(l)|0;do if(!u){p=(m|0)==100;if(!p){if((m|0)!=101|(o|0)!=0)break b;if(!(c[v>>2]&256)){o=0;break}}if(!o){f=ih(e,s,0)|0;if(!f){f=0;n=40;break a}bw(f|0,0,s|0)|0;if(t)q=1;else{o=0;do{c[f+(o<<2)>>2]=fe(l,o)|0;o=o+1|0}while((o|0)<(r|0));q=1}}else q=o;c:do if(p){n=f+(r<<2)|0;if(!t){o=0;while(1){p=be(l,o)|0;c[f+(o+r<<2)>>2]=p;if((p|0)==0?(w=c[y>>2]|0,(ee(w,o)|0)!=5):0){m=w;n=27;break a}o=o+1|0;if((o|0)>=(r|0))break c;l=c[y>>2]|0}}}while(0);if(!(lc[g&31](h,r,n,f)|0))o=q;else{l=f;n=31;break a}}while(0);l=c[y>>2]|0}while((m|0)==100);m=Jg(l)|0;c[y>>2]=0;l=c[x>>2]|0;while(1)if(!(a[10368+(d[l>>0]|0)>>0]&1))break;else l=l+1|0;ig(e,f)}do if((n|0)==27){a[e+65>>0]=1;l=m;m=100;n=40}else if((n|0)==31){Jg(c[y>>2]|0)|0;c[y>>2]=0;c[z>>2]=4;m=c[A>>2]|0;if(m){f=m+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;f=l;m=4;break}else{rg(m);f=l;m=4;break}}else{f=l;m=4}}else if((n|0)==39){l=c[y>>2]|0;f=0;n=40}while(0);if((n|0)==40)if(l)Jg(l)|0;ig(e,f);l=Kg(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[k>>2]=0;break}f=Oe(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=mg(f,((f|0)<0)<<31>>31)|0;c[k>>2]=m;if(m){gw(m|0,Oe(e)|0,f|0)|0;break}c[z>>2]=7;l=c[A>>2]|0;if(l){f=l+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;l=7;break}else{rg(l);l=7;break}}else l=7}else{c[m>>2]=101334;c[m+4>>2]=10788;Zc(21,13648,m);l=21}while(0);i=B;return l|0}function Ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return eh(a,b,c,1,0,d,e)|0}function Oe(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129635;c[d+4>>2]=10788;Zc(21,13648,d);d=16120;break}if(!(a[b+65>>0]|0)){d=Og(c[b+236>>2]|0,1)|0;if(!d){d=c[b+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Pe(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();s=u;t=u+8|0;r=c[b>>2]|0;c[t>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;g=l-d&1073741823}p=g+300|0;o=(f|0)!=0;if(o)c[f>>2]=0;do if(!(c[b+24>>2]&4194304))if(o){c[f>>2]=Wc(25216,s)|0;g=1}else g=1;else{n=(e|0)!=0?e:41192;k=r+40|0;l=nc[c[k>>2]&127](r,d)|0;if(!l){c[s>>2]=d;c[s+4>>2]=41184;h=Wc(27824,s)|0;if(!h){g=7;break}l=nc[c[k>>2]&127](r,h)|0;Sc(h);if(!l){if(!o){g=1;break}l=Pc(p)|0;c[t>>2]=l;c[f>>2]=l;if(!l){g=1;break}c[s>>2]=d;Yc(p,l,41216,s)|0;ic[c[r+44>>2]&63](r,g+299|0,l);g=1;break}else q=l}else q=l;g=r+48|0;l=Yb[c[g>>2]&63](r,q,n)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Pc(l+30|0)|0;if(!e){fc[c[r+52>>2]&15](r,q);g=7;break}n=e;m=n;a[m>>0]=115;a[m+1>>0]=113;a[m+2>>0]=108;a[m+3>>0]=105;n=n+4|0;a[n>>0]=116;a[n+1>>0]=101;a[n+2>>0]=51;a[n+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[d+k>>0]|0)==47)break;else l=k}h=(Bc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[d+h>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[10368+(l&255)>>0]&2))l=k;else{a[e+k>>0]=a[9328+(l<<24>>24)>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[l+0>>0]=a[41264]|0;a[l+1>>0]=a[41265]|0;a[l+2>>0]=a[41266]|0;a[l+3>>0]=a[41267]|0;a[l+4>>0]=a[41268]|0;a[l+5>>0]=a[41269]|0;l=Yb[c[g>>2]&63](r,q,e)|0;g=e;h=e}else{g=0;h=n}if(!l){if(o){if(!h)l=0;else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+p|0;k=Pc(l)|0;c[t>>2]=k;c[f>>2]=k;if(k){c[s>>2]=h;c[s+4>>2]=d;Yc(l,k,41272,s)|0;ic[c[r+44>>2]&63](r,l+-1|0,k)}}fc[c[r+52>>2]&15](r,q);Sc(g);g=1;break}Sc(g);if(Yb[l&63](b,t,13776)|0){if(o){c[s>>2]=c[t>>2];c[f>>2]=Wc(41320,s)|0}Sc(c[t>>2]|0);fc[c[r+52>>2]&15](r,q);g=1;break}k=b+168|0;g=(c[k>>2]<<2)+4|0;l=ih(b,g,0)|0;if(!l)g=7;else{bw(l|0,0,g|0)|0;g=c[k>>2]|0;h=b+172|0;if((g|0)>0)gw(l|0,c[h>>2]|0,g<<2|0)|0;ig(b,c[h>>2]|0);c[h>>2]=l;g=c[k>>2]|0;c[k>>2]=g+1;c[l+(g<<2)>>2]=q;g=0}}while(0);q=Kg(b,g)|0;i=u;return q|0}function Qe(a){a=a|0;var b=0,d=0,e=0,f=0;b=Hc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[d+(e<<2)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Tc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[b+(d<<2)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Re(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[b>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[b>>2]=c[f+(d<<2)>>2];b=1}return b|0}function Se(){if(!(Hc()|0)){Sc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return eh(a,b,c,0,0,d,e)|0}function Ue(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Eh(a,b,c,0,d,e)|0}function Ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Eh(a,b,c,1,d,e)|0}function We(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))ba();n=v;q=v+4|0;c[d>>2]=0;r=(f|0)!=0;if(r)c[f>>2]=0;s=(e|0)!=0;if(s)c[e>>2]=0;l=(g|0)!=0;if(l)c[g>>2]=0;m=q+4|0;c[m>>2]=0;t=q+12|0;c[t>>2]=0;u=q+16|0;c[u>>2]=0;k=q+20|0;c[k>>2]=1;o=q+8|0;c[o>>2]=20;p=q+24|0;c[p>>2]=0;h=Pc(80)|0;c[q>>2]=h;a:do if(h){c[h>>2]=0;b=Me(a,b,20,q,g)|0;c[c[q>>2]>>2]=c[k>>2];if((b&255|0)==4){Xe((c[q>>2]|0)+4|0);b=c[m>>2]|0;if(b){if(l){Sc(c[g>>2]|0);c[n>>2]=c[m>>2];c[g>>2]=Wc(10344,n)|0;b=c[m>>2]|0}Sc(b)}b=c[p>>2]|0;c[a+52>>2]=b;break}Sc(c[m>>2]|0);if(b){Xe((c[q>>2]|0)+4|0);break}h=c[k>>2]|0;b=c[q>>2]|0;do if((c[o>>2]|0)>>>0>h>>>0){b=Tc(b,h<<2)|0;if(!b){Xe((c[q>>2]|0)+4|0);c[a+52>>2]=7;b=7;break a}else{c[q>>2]=b;break}}while(0);c[d>>2]=b+4;if(r)c[f>>2]=c[u>>2];if(s){c[e>>2]=c[t>>2];b=0}else b=0}else{c[a+52>>2]=7;b=7}while(0);i=v;return b|0}function Xe(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[b>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[a+(f+-1<<2)>>2]|0;if(e)Sc(e);f=f+1|0}while((f|0)<(d|0))}Sc(b)}return}function Ye(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Gh(a,b,c,d,0)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Gh(a,b,c,d,e)|0}function _e(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p;g=p+8|0;c[g>>2]=0;h=d+324|0;f=c[h>>2]|0;if((f|0)!=0?(m=c[f+4>>2]|0,(m|0)!=0):0){n=ih(d,536,0)|0;if(!n)e=7;else{bw(n|0,0,536)|0;k=n+451|0;a[k>>0]=1;c[n>>2]=d;c[n+424>>2]=1;if(((((Hh(n,e,g)|0)==0?(l=c[n+484>>2]|0,(l|0)!=0):0)?(a[d+65>>0]|0)==0:0)?(c[l+12>>2]|0)==0:0)?(a[l+44>>0]&16)==0:0){f=m+4|0;if(!(c[f>>2]|0)){o=l+4|0;c[f>>2]=c[o>>2];l=l+38|0;b[m+38>>1]=b[l>>1]|0;b[l>>1]=0;c[o>>2]=0}c[(c[h>>2]|0)+4>>2]=0;e=0}else{e=c[g>>2]|0;c[o>>2]=e;qg(d,1,(e|0)!=0?10344:0,o);ig(d,e);e=1}a[k>>0]=0;f=c[n+8>>2]|0;if(f)Jg(f)|0;gg(d,c[n+484>>2]|0);yh(n);ig(d,n)}e=Kg(d,e)|0}else{c[d+52>>2]=21;f=c[d+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);c[o>>2]=114865;c[o+4>>2]=10788;Zc(21,13648,o);e=21}i=p;return e|0}function $e(a){a=a|0;return d[10640+((d[a+69>>0]|0)+-1)>>0]|0|0}function af(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();h=l;g=l+8|0;c[g>>2]=f;do if((e|0)==1){e=c[d+324>>2]|0;if(!e){c[h>>2]=115248;c[h+4>>2]=10788;Zc(21,13648,h);k=6;break}else{d=c[g>>2]|0;f=c[d>>2]|0;c[g>>2]=d+4;a[(c[e>>2]|0)+16>>0]=f;e=0;break}}else{c[h>>2]=115256;c[h+4>>2]=10788;Zc(21,13648,h);k=6}while(0);do if((k|0)==6){c[d+52>>2]=21;e=c[d+236>>2]|0;if(e){f=e+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;e=21;break}else{rg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function bf(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[b>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[b+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[g>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 91:{do{b=b+1|0;f=a[b>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[b>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[b+1>>0]|0)==42){b=b+2|0;while(1){e=a[b>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[b>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 59:{e=0;break}default:if(!(a[10368+(g&255)>>0]&70))e=2;else{e=1;while(1)if(!(a[10368+(d[b+e>>0]|0)>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Bc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Bc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Bc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Bc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Bc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Bc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[(e&255)+(10648+((c&255)<<3))>>0]|0;b=b+1|0;g=a[b>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function cf(d){d=d|0;var e=0,f=0,g=0;e=Hc()|0;if(!e){f=mg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(g|0));b[f+8>>1]=1;c[f+32>>2]=0;Tg(f,d,-1,2,0)|0}e=Og(f,1)|0;if(!e)e=7;else e=(bf(e)|0)&255;Ih(f)}return e|0}function df(){return 8632}function ef(){return 10768}function ff(){return 3008009}function gf(){return 0}function hf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))ba();d=f;e=f+8|0;if(!(c[2243]|0)){c[e>>2]=b;do switch(a|0){case 5:{if(!(c[2195]|0)){c[d>>2]=16496;hf(4,d)|0}a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[d+0>>2]=c[2195];c[d+4>>2]=c[2196];c[d+8>>2]=c[2197];c[d+12>>2]=c[2198];c[d+16>>2]=c[2199];c[d+20>>2]=c[2200];c[d+24>>2]=c[2201];c[d+28>>2]=c[2202];d=0;break}case 17:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2189]=d;d=0;break}case 20:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2190]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[d>>2]=16440;hf(18,d)|0}a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[d>>2]=c[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 16:{d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;c[2250]=a;a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2251]=d;d=0;break}case 13:{d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;c[2193]=a;a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2194]=d;d=0;break}case 7:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2237]=d;d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;c[2238]=a;a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2239]=d;d=0;break}case 24:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[d>>2]=152;d=0;break}case 15:{d=1;break}case 4:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2195]=c[d+0>>2];c[2196]=c[d+4>>2];c[2197]=c[d+8>>2];c[2198]=c[d+12>>2];c[2199]=c[d+16>>2];c[2200]=c[d+20>>2];c[2201]=c[d+24>>2];c[2202]=c[d+28>>2];d=0;break}case 18:{d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[d>>2]=c[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 6:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2234]=d;d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;c[2235]=a;a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2236]=d;d=0;break}case 9:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2186]=d;d=0;break}case 22:{c[e>>2]=(c[e>>2]|0)+8;c[e>>2]=(c[e>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2242]=d;d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[d>>2]=127883;c[d+4>>2]=10788;Zc(21,13648,d);d=21}i=f;return d|0}function jf(a){a=a|0;return c[a+12>>2]|0}function kf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[h>>2]|0;f=(b|0)>0;if(f){e=c[a+16>>2]|0;g=0;do{d=c[e+(g<<4)+4>>2]|0;if(d)c[(c[d+4>>2]|0)+4>>2]=c[d>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[(c[f>>2]|0)+(e<<4)+4>>2]|0;if(d){_b[c[8744+152>>2]&31](c[(c[(c[c[d+4>>2]>>2]|0)+204>>2]|0)+40>>2]|0);b=c[h>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function lf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;c[h>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[10936+(e<<3)>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[h>>2]|0;d=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;k=c[g>>2]|0;c[h>>2]=g+4;h=a+24|0;g=c[h>>2]|0;if((d|0)<=0)if(!d){d=g&~c[10940+(e<<3)>>2];c[h>>2]=d}else d=g;else{d=c[10940+(e<<3)>>2]|g;c[h>>2]=d}if((g|0)!=(d|0)?(f=c[a+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[d>>1]=b[d>>1]|8;f=c[f+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[k>>2]=(c[10940+(e<<3)>>2]&c[h>>2]|0)!=0&1;f=0}}else{g=c[h>>2]|0;d=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;e=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;f=c[g>>2]|0;c[h>>2]=g+4;f=Jh(a,d,e,f)|0}while(0);i=l;return f|0}function mf(a){a=a|0;a=a+32|0;C=c[a+4>>2]|0;return c[a>>2]|0}function nf(a){a=a|0;return c[a+80>>2]|0}function of(a){a=a|0;return c[a+84>>2]|0}function pf(a){a=a|0;return Kh(a,0)|0}function qf(a){a=a|0;return Kh(a,1)|0}function rf(a,b,d){a=a|0;b=b|0;d=d|0;c[a+444>>2]=b;c[a+448>>2]=d;c[a+452>>2]=0;c[a+492>>2]=0;return 0}function sf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[a+292>>2]=f?d:0;c[a+300>>2]=f?b:0;c[a+296>>2]=f?e:0;return}function tf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[a+444>>2]=d?74:0;c[a+448>>2]=d?a:0;c[a+452>>2]=0;c[a+492>>2]=d?b:0;return 0}function uf(a){a=a|0;c[a+240>>2]=1;return}function vf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return Kg(a,Mh(a,b,c,d,e,f,g,h,0)|0)|0}function wf(b,d,e,f,g,h,i,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0;do if(k){l=ih(b,12,0)|0;if(!l){_b[k&31](g);f=1;break}m=l;n=m;a[n>>0]=0;a[n+1>>0]=0;a[n+2>>0]=0;a[n+3>>0]=0;m=m+4|0;a[m>>0]=0;a[m+1>>0]=0;a[m+2>>0]=0;a[m+3>>0]=0;c[l+4>>2]=k;c[l+8>>2]=g;f=Mh(b,d,e,f,g,h,i,j,l)|0;if(!(c[l>>2]|0)){_b[k&31](g);ig(b,l)}}else f=Mh(b,d,e,f,g,h,i,j,0)|0;while(0);return Kg(b,f)|0}function xf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;b=Nh(a,b,-1)|0;d=Mh(a,b,c,d,e,f,g,h,0)|0;ig(a,b);return Kg(a,d)|0}function yf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Oh(b,c,e,d,1,0)|0))e=Mh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Kg(b,e)|0}function zf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[f>>2]|0;c[a+176>>2]=b;c[f>>2]=d;return e|0}function Af(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[f>>2]|0;c[a+184>>2]=b;c[f>>2]=d;return e|0}function Bf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[f>>2]|0;c[a+196>>2]=b;c[f>>2]=d;return e|0}function Cf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[f>>2]|0;c[a+212>>2]=b;c[f>>2]=d;return e|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[f>>2]|0;c[a+204>>2]=b;c[f>>2]=d;return e|0}function Ef(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[a+216>>2]=d;c[a+220>>2]=b;return 0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[f>>2]|0;c[a+216>>2]=b;c[f>>2]=d;return e|0}function Gf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;if(g)c[g>>2]=-1;if(h)c[h>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[e>>0]|0)!=0:0){l=Rh(d,e)|0;if((l|0)<0){c[k>>2]=e;qg(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[d+452>>2]=0;e=Sh(d,l,f,g,h)|0;c[d+52>>2]=e;k=c[d+236>>2]|0;if(k){l=k+8|0;if(!(b[l>>1]&9312)){b[l>>1]=1;break}else{rg(k);break}}}while(0);e=Kg(d,e)|0}i=n;return e|0}function Hf(a,b){a=a|0;b=b|0;return Gf(a,b,0,0,0)|0}function If(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;do if(b){d=c[b+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[g>>2]=15248;Zc(21,15256,g);d=11008;break}h=b+65|0;if(!(a[h>>0]|0)){f=b+236|0;d=Og(c[f>>2]|0,2)|0;if(!d){e=c[b+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344;qg(b,e,d,g);d=Og(c[f>>2]|0,2)|0}a[h>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Jf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129704;c[d+4>>2]=10788;Zc(21,13648,d);b=21;break}if(!(a[b+65>>0]|0))b=c[b+56>>2]&c[b+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Kf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129713;c[d+4>>2]=10788;Zc(21,13648,d);b=21;break}if(!(a[b+65>>0]|0))b=c[b+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Lf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[15488+(a<<2)>>2]|0}else a=16344;return a|0}function Mf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[e>>2]|0;if((d|0)>-1){b=c[11088+(b<<2)>>2]|0;c[e>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Nf(a,b){a=a|0;b=b|0;return Th(a,b,6,0)|0}function Of(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Th(a,b,c,d)|0}function Pf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[e>>2]=0;f=Hc()|0;if(!f){h=mg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(g|0));b[h+8>>1]=1;c[h+32>>2]=0;Tg(h,d,-1,2,0)|0}d=Og(h,1)|0;if(d){f=Th(d,e,6,0)|0;if(!f){f=c[e>>2]|0;d=c[(c[f+16>>2]|0)+12>>2]|0;if(!(b[d+78>>1]&1)){a[f+62>>0]=2;a[d+77>>0]=2;f=0}else f=0}}else f=7;Ih(h);f=f&255}return f|0}function Qf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kg(a,Uh(a,b,c&255,d,e,0)|0)|0}function Rf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Kg(a,Uh(a,b,c&255,d,e,f)|0)|0}function Sf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Nh(a,b,-1)|0;if(!b)b=0;else{c=Uh(a,b,c&255,d,e,0)|0;ig(a,b);b=c}return Kg(a,b)|0}function Tf(a,b,d){a=a|0;b=b|0;d=d|0;c[a+224>>2]=d;c[a+228>>2]=0;c[a+232>>2]=b;return 0}function Uf(a,b,d){a=a|0;b=b|0;d=d|0;c[a+224>>2]=0;c[a+228>>2]=d;c[a+232>>2]=b;return 0}function Vf(a){a=a|0;return d[a+63>>0]|0|0}function Wf(){return}function Xf(d,e,f,g,h,k,l,m,n){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();x=z;y=z+8|0;c[y>>2]=0;p=c[d+20>>2]|0;if((p|0)>0){o=c[d+16>>2]|0;r=0;do{q=c[o+(r<<4)+4>>2]|0;if(q)c[(c[q+4>>2]|0)+4>>2]=c[q>>2];r=r+1|0}while((r|0)!=(p|0))}o=Vh(d,y)|0;w=(o|0)!=0;a:do if((!w?(u=Wh(d,f,e)|0,(u|0)!=0):0)?(c[u+12>>2]|0)==0:0){do if(g){t=b[u+38>>1]|0;b:do if(t<<16>>16>0){e=c[u+4>>2]|0;p=t<<16>>16;s=0;while(1){q=e+(s*24|0)|0;r=s+1|0;if(!($c(c[q>>2]|0,g)|0)){r=s;break b}if((r|0)<(p|0))s=r;else break}}else{r=0;q=0}while(0);if((r|0)==(t<<16>>16|0)){if(a[u+44>>0]&32){e=0;t=0;u=0;q=0;s=0;r=0;break a}if(!(Xh(g)|0)){e=0;t=0;u=0;q=0;s=0;r=0;break a}v=b[u+36>>1]|0;p=v<<16>>16;if(v<<16>>16<=-1){e=0;s=0;p=1;v=0;r=11144;break}r=p;q=(c[u+4>>2]|0)+(p*24|0)|0}if(q){if((b[u+36>>1]|0)==(r|0))p=(a[u+44>>0]&8)!=0;else p=0;e=p&1;s=(a[q+20>>0]|0)!=0&1;p=a[q+23>>0]&1;v=c[q+16>>2]|0;r=c[q+12>>2]|0}else{e=0;s=0;p=1;v=0;r=11144}}else{e=0;s=0;p=1;v=0;r=11144}while(0);t=s;q=p;s=(v|0)==0?11152:v}else{e=0;t=0;u=0;q=0;s=0;r=0}while(0);if(h)c[h>>2]=r;if(k)c[k>>2]=s;if(l)c[l>>2]=t;if(m)c[m>>2]=q;if(n)c[n>>2]=e;p=c[y>>2]|0;if(!(w|(u|0)!=0)){ig(d,p);c[x>>2]=f;c[x+4>>2]=g;p=qh(d,11160,x)|0;c[y>>2]=p;o=1}c[x>>2]=p;qg(d,o,(p|0)!=0?10344:0,x);ig(d,c[y>>2]|0);w=Kg(d,o)|0;i=z;return w|0}function Yf(a){a=a|0;var b=0;if((Hc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(nc[c[b+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function Zf(a,b){a=a|0;b=b|0;c[a+56>>2]=(b|0)!=0?-1:255;return 0}function _f(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=Yh(a,b)|0;do if(b){a=c[b+4>>2]|0;c[a+4>>2]=c[b>>2];a=c[(c[a>>2]|0)+60>>2]|0;if((d|0)==7){c[e>>2]=a;b=0;break}b=c[a>>2]|0;if(!b)b=12;else b=Yb[c[b+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function $f(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=i;i=i+32|0;if((i|0)>=(j|0))ba();p=q+24|0;h=q+8|0;g=q;c[h>>2]=f;do switch(e|0){case 8:{o=c[h>>2]|0;n=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;k=c[o>>2]|0;c[h>>2]=o+4;o=mg(512,0)|0;g=(o|0)==0;if(!g){bw(o|0,0,512)|0;c[o>>2]=n}e=((n+7|0)/8|0)+1|0;m=mg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)bw(m|0,0,e|0)|0;l=Pc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[k+(h<<2)>>2]|0;if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;r=c[f>>2]|0;e=r+-1|0;c[p>>2]=e;c[f>>2]=(c[k+(h+3<<2)>>2]|0)+r;f=4}else if(!g)break;else{_c(4,p);e=c[p>>2]|0;f=2}s=k+((h|1)<<2)|0;r=(c[s>>2]|0)+-1|0;c[s>>2]=r;h=((r|0)>0?0:f)+h|0;e=(e&2147483647|0)%(n|0)|0;c[p>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[e>>0]=d[e>>0]&(f^255);_h(o,(c[p>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[e>>0]=d[e>>0]|f;if((g|0)==5)continue;if(Zh(o,(c[p>>2]|0)+1|0)|0){g=-1;break a}}k=$h(o,n+1|0)|0;g=$h(o,0)|0;g=k-n+g+(c[o>>2]|0)|0;c[p>>2]=1;if((n|0)>=1){e=1;do{k=(d[m+(e>>3)>>0]&1<<(e&7)|0)!=0&1;f=e;e=e+1|0;if((k|0)!=($h(o,f)|0)){g=f;break a}c[p>>2]=e}while((f|0)<(n|0))}}else g=-1;while(0);Sc(l);Sc(m);ai(o);break}case 11:{g=c[2514]|0;p=c[h>>2]|0;f=c[p>>2]|0;c[h>>2]=p+4;if(f)c[2514]=f;break}case 12:{c[g>>2]=0;g=c[g>>2]|0;break}case 13:{p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;break}case 22:{g=10;break}case 5:{gw(12672,9064,259)|0;g=0;break}case 6:{gw(9064,12672,259)|0;g=0;break}case 7:{if(!(Hc()|0)){a[9064]=0;g=0}else g=0;break}case 14:{o=c[h>>2]|0;p=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;g=c[o>>2]|0;c[h>>2]=o+4;tg(c[(c[p+16>>2]|0)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{o=c[h>>2]|0;g=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;p=c[o>>2]|0;c[h>>2]=o+4;b[g+60>>1]=p;g=0;break}case 16:{p=c[h>>2]|0;e=c[p>>2]|0;c[h>>2]=p+4;if(!e)g=0;else{g=e;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(bi(e,g)|0)!=27;g=g?124:0;break}case 24:{o=c[h>>2]|0;g=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;p=c[o>>2]|0;c[h>>2]=o+4;c[g+136>>2]=p;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{n=c[h>>2]|0;g=c[n>>2]|0;c[h>>2]=n+4;n=c[h>>2]|0;o=c[n>>2]|0;c[h>>2]=n+4;a[g+144>>0]=Rh(g,o)|0;o=c[h>>2]|0;n=c[o>>2]|0;c[h>>2]=o+4;n=n&255;a[g+147>>0]=n;o=g+145|0;a[o>>0]=n;n=c[h>>2]|0;p=c[n>>2]|0;c[h>>2]=n+4;c[g+140>>2]=p;if((a[o>>0]|0)==0&(p|0)>0){Ag(g);g=0}else g=0;break}case 17:{p=c[h>>2]|0;f=c[p>>2]|0;c[h>>2]=p+4;p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;p=c[h>>2]|0;e=c[p>>2]|0;c[h>>2]=p+4;if(f)c[g>>2]=ci(f)|0;di(e);g=0;break}case 18:{p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;c[2253]=g;g=0;break}case 20:{p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;c[2192]=g;g=0;break}case 9:{p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;c[2252]=g;if(!g)g=0;else g=hc[g&127](0)|0;break}case 10:{o=c[h>>2]|0;p=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;g=c[o>>2]|0;c[h>>2]=o+4;c[3164]=p;c[3166]=g;g=0;break}default:g=0}while(0);i=q;return g|0}function ag(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[d>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[b+e>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=Wv(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[b>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[g>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function bg(a,b,c){a=a|0;b=b|0;c=c|0;a=ag(a,b)|0;b=(c|0)!=0;if(a)b=(ei(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;a=ag(a,b)|0;if(!a){C=e;i=g;return d|0}else{b=(fi(a,f)|0)==0;a=f;C=b?c[a+4>>2]|0:e;i=g;return (b?c[a>>2]|0:d)|0}return 0}function dg(b,d){b=b|0;d=d|0;b=Yh(b,d)|0;if(b){b=c[c[b+4>>2]>>2]|0;if(!(a[b+15>>0]|0))b=c[b+168>>2]|0;else b=10360}else b=0;return b|0}function eg(a,d){a=a|0;d=d|0;a=Yh(a,d)|0;if(!a)a=-1;else a=b[(c[a+4>>2]|0)+22>>1]&1;return a|0}function fg(a,b){a=a|0;b=b|0;if(b){Bk(a,c[b+28>>2]|0);ig(a,c[b>>2]|0);ig(a,c[b+4>>2]|0);Ck(a,c[b+12>>2]|0);Dk(a,c[b+16>>2]|0);ig(a,b)}return}function gg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[a+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[f>>1]|0)+-1<<16>>16,b[f>>1]=e,e<<16>>16!=0):0)break;e=c[d+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[e+20>>2]|0;if(!(h?(c[g>>2]|0)!=0:0))Ek((c[f+24>>2]|0)+24|0,c[f>>2]|0,0)|0;Fk(a,f)}while((e|0)!=0)}e=c[d+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[l>>2]|0)!=0:0)){f=e+16|0;i=c[f>>2]|0;h=e+12|0;g=c[h>>2]|0;if(!i)Ek((c[k>>2]|0)+56|0,c[((g|0)==0?e:g)+8>>2]|0,g)|0;else c[i+12>>2]=g;h=c[h>>2]|0;if(h)c[h+16>>2]=c[f>>2]}Gk(a,c[e+28>>2]|0);Gk(a,c[e+32>>2]|0);f=e;e=c[e+4>>2]|0;ig(a,f)}while((e|0)!=0)}Hk(a,d);ig(a,c[d>>2]|0);ig(a,c[d+20>>2]|0);Ik(a,c[d+12>>2]|0,1);Jk(a,c[d+24>>2]|0);if(!((a|0)!=0?(c[a+520>>2]|0)!=0:0))Kk(0,d)|0;h=d+56|0;e=c[h>>2]|0;if(e){i=d+52|0;f=c[i>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){ig(a,c[(c[h>>2]|0)+(g<<2)>>2]|0);f=c[i>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[h>>2]|0}ig(a,e)}ig(a,d)}while(0);return}function hg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;_g(c[d+60>>2]|0,b[d+68>>1]|0);h=d+16|0;_g(c[h>>2]|0,e[d+84>>1]<<1);f=c[d+192>>2]|0;if(f)do{g=f;f=c[f+24>>2]|0;Lk(a,c[g>>2]|0,c[g+4>>2]|0);ig(a,g)}while((f|0)!=0);f=b[d+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;ig(a,c[(c[g>>2]|0)+(f<<2)>>2]|0)}while((f|0)>0)}Lk(a,c[d+4>>2]|0,c[d+32>>2]|0);ig(a,c[h>>2]|0);ig(a,c[d+168>>2]|0);ig(a,c[d+172>>2]|0);return}function ig(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[a+520>>2]|0){Mk(a,b);break}if((c[a+276>>2]|0)>>>0<=b>>>0?(c[a+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[b>>2]=c[d>>2];c[d>>2]=b;a=a+252|0;c[a>>2]=(c[a>>2]|0)+-1;break}}Sc(b)}while(0);return}function jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[e+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[9328+(d[h>>0]|0)>>0]|0)+f|0)>>>0)%23|0;f=Nk(b,g,h,f)|0;if(!f){c[e+8>>2]=0;f=b+(g<<2)|0;c[e+28>>2]=c[f>>2];c[f>>2]=e}else{f=f+8|0;c[e+8>>2]=c[f>>2];c[f>>2]=e}return}function kg(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[a+12>>2];break}if(b){do{d=b+12|0;b=c[d>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[d>>2]=c[a+12>>2]}}while(0);return}function lg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function mg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=fw(a|0,b|0,-1,-1)|0;d=C;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=hc[c[8744+36>>2]&127](a)|0;break}d=hc[c[8744+52>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0<a>>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=$v(c[e>>2]|0,c[e+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=C;if(0<(f|0)|0==(f|0)&b>>>0<e>>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;mc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=hc[c[8744+36>>2]&127](d)|0;if(b){a=hc[c[8744+48>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function ng(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;do if(a){if((b|0)==0&(d|0)==0){Sc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=hc[c[8744+48>>2]&127](a)|0;g=hc[c[8744+52>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=nc[c[8744+44>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0<b>>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=$v(c[i>>2]|0,c[i+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=C;if(!(0<(j|0)|0==(j|0)&e>>>0<i>>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;mc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=nc[c[8744+44>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;mc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=nc[c[8744+44>>2]&127](a,g)|0}if(e){d=(hc[c[8744+48>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=mg(b,d)|0;while(0);return e|0}function og(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0.0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+96|0;if((i|0)>=(j|0))ba();W=Y+8|0;X=Y;V=Y+16|0;if(!e){l=0;m=0;Q=0}else{l=e&2;if(!l)m=0;else{G=c[g>>2]|0;m=c[G>>2]|0;c[g>>2]=G+4}l=l&255;Q=(e&1|0)!=0}P=l<<24>>24==0;M=l<<24>>24!=0;N=m+4|0;O=m+8|0;L=b+12|0;l=0;a:while(1){e=a[f>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;G=a[e>>0]|0}while(!(G<<24>>24==37|G<<24>>24==0));Ok(b,f,e-f|0);if(!(a[e>>0]|0))break}else break;l=e+1|0;n=a[l>>0]|0;if(!(n<<24>>24)){R=10;break}o=n<<24>>24;s=0;p=0;v=0;n=0;x=0;y=0;b:while(1){switch(o|0){case 45:{w=p;n=1;break}case 32:{w=p;v=1;break}case 35:{s=1;w=p;break}case 33:{w=1;break}case 48:{w=p;y=1;break}case 43:{w=p;x=1;break}default:{z=s;w=p;break b}}p=e+2|0;G=a[p>>0]|0;o=G<<24>>24;if(!(G<<24>>24)){l=p;z=s;break}else{e=l;l=p;p=w}}if((o|0)!=42)if((o+-48|0)>>>0<10){p=0;do{p=o+-48+(p*10|0)|0;l=l+1|0;o=a[l>>0]|0}while((o+-48|0)>>>0<10);K=n;J=p&2147483647}else{K=n;J=0}else{if(P){G=c[g>>2]|0;p=c[G>>2]|0;c[g>>2]=G+4}else p=Pk(m)|0;if((p|0)<0){n=1;p=(p|0)==-2147483648?0:0-p|0}o=l+1|0;l=o;o=a[o>>0]|0;K=n;J=p}do if((o|0)==46){p=l+1|0;n=a[p>>0]|0;if(n<<24>>24!=42){o=n<<24>>24;if((n+-48&255)<10)n=0;else{l=p;D=0;break}while(1){n=o+-48+(n*10|0)|0;l=l+2|0;G=a[l>>0]|0;o=G<<24>>24;if((G+-48&255)<10){G=p;p=l;l=G}else break}D=n&2147483647;break}if(P){G=c[g>>2]|0;p=c[G>>2]|0;c[g>>2]=G+4}else p=Pk(m)|0;l=l+2|0;o=a[l>>0]|0;if((p|0)<0)D=(p|0)==-2147483648?-1:0-p|0;else D=p}else D=-1;while(0);do if((o|0)==108){p=l+1|0;o=a[p>>0]|0;if(o<<24>>24==108){o=l+2|0;l=o;o=a[o>>0]|0;p=1;break}else{l=p;o=o<<24>>24;p=0;break}}else p=0;while(0);s=0;while(1){n=48752+(s*6|0)|0;if((o|0)==(a[n>>0]|0)){o=n;n=s;R=46;break}s=s+1|0;if((s|0)>=23){I=48752;G=0;break}}if((R|0)==46){R=0;if(!(Q|n>>>0<20))break;I=o;G=a[48755+(n*6|0)>>0]|0}c:do switch(G&255|0){case 14:{p=0;R=50;break}case 1:case 16:{R=50;break}case 13:{p=c[g>>2]|0;e=c[p>>2]|0;c[g>>2]=p+4;p=c[g>>2]|0;o=c[p>>2]|0;c[g>>2]=p+4;p=c[e+(o*72|0)+12>>2]|0;if(p){n=p;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;Ok(b,p,n-p&1073741823);Ok(b,28928,1)}n=c[e+(o*72|0)+16>>2]|0;if(!n)e=0;else{e=n;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-n&1073741823}Ok(b,n,e);v=f;o=0;e=0;p=0;break}case 4:case 3:case 2:{do if(!P){p=c[N>>2]|0;if((c[m>>2]|0)>(p|0)){c[N>>2]=p+1;q=+Qg(c[(c[O>>2]|0)+(p<<2)>>2]|0);R=92;break}else{p=(D|0)<0?6:D;q=0.0;R=94;break}}else{R=c[g>>2]|0;c[k>>2]=c[R>>2];c[k+4>>2]=c[R+4>>2];q=+h[k>>3];c[g>>2]=R+8;R=92}while(0);if((R|0)==92){R=0;p=(D|0)<0?6:D;if(q<0.0){q=-q;H=45}else R=94}if((R|0)==94){R=0;if(!(x<<24>>24))H=v<<24>>24==0?0:32;else H=43}D=G<<24>>24==4;n=((D&(p|0)>0)<<31>>31)+p|0;p=n&4095;if(!p)r=.5;else{r=.5;do{p=p+-1|0;r=r*.1}while((p|0)>0)}B=G<<24>>24==2;if(B)q=q+r;h[W>>3]=q;h[X>>3]=+h[W>>3];if(+h[W>>3]!=+h[X>>3]){v=48960;o=3;e=J;p=0}else{if(q>0.0){s=0;t=1.0;while(1){u=t*1.e+100;if(q>=u&(s|0)<351){s=s+100|0;t=u}else break}while(1){u=t*1.e+64;if(q>=u&(s|0)<351){s=s+64|0;t=u}else break}while(1){u=t*1.0e8;if(q>=u&(s|0)<351){s=s+8|0;t=u}else break}while(1){u=t*10.0;if((s|0)<351&q>=u){s=s+1|0;t=u}else break}q=q/t;if(q<1.0e-08)do{q=q*1.0e8;s=s+-8|0}while(q<1.0e-08);if(q<1.0)do{q=q*10.0;s=s+-1|0}while(q<1.0);if((s|0)>350){if(H<<24>>24==43)n=48976;else if(H<<24>>24==45)n=48968;else n=48984;f=n;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;v=n;o=f-n&1073741823;e=J;p=0;break c}}else s=0;if(!B){q=r+q;if(!(q>=10.0))F=s;else{q=q*.1;F=s+1|0}}else F=s;if(D){p=(F|0)<-4|(n|0)<(F|0);D=z<<24>>24==0&1;n=n-(p?0:F)|0;p=p?3:2}else{D=w;p=G}E=p<<24>>24==3;f=E?0:F;s=(f|0)>0;p=fw(n|0,((n|0)<0)<<31>>31|0,J|0,((J|0)<0)<<31>>31|0)|0;s=fw(p|0,C|0,(s?f:0)|0,(s?((f|0)<0)<<31>>31:0)|0)|0;p=C;if((p|0)>0|(p|0)==0&s>>>0>55){s=fw(s|0,p|0,15,0)|0;s=mg(s,C)|0;if(!s){R=124;break a}else{v=s;G=s}}else{v=V;G=0}s=((w&255)*10|0)+16|0;A=(w|z)&255|(n|0)>0;if(!(H<<24>>24))B=v;else{a[v>>0]=H;B=v+1|0}if((f|0)<0){a[B>>0]=48;e=2;p=B+1|0;x=f}else{z=~f;z=(z|0)>-1?z:-1;x=-2-z|0;z=f+z|0;o=B;while(1){if((s|0)<1)e=48;else{p=~~q;e=p+48&255;q=(q-+(p|0))*10.0;s=s+-1|0}a[o>>0]=e;if((f|0)>0){o=o+1|0;f=f+-1|0}else break}e=z+3|0;p=B+(z+2)|0}o=(A|0)==0;if(!o){a[p>>0]=46;p=B+e|0}if((x+1|0)<0){bw(p|0,48,~x|0)|0;p=p+~x|0;n=n+1+x|0}if((n|0)>0){e=p;f=n;while(1){f=f+-1|0;if((s|0)<1)x=48;else{B=~~q;x=B+48&255;q=(q-+(B|0))*10.0;s=s+-1|0}a[e>>0]=x;if((f|0)<=0)break;else e=e+1|0}p=p+n|0}d:do if(!(D<<24>>24==0|o)){o=p;while(1){p=o+-1|0;n=a[p>>0]|0;if(n<<24>>24==46)break;else if(n<<24>>24!=48){p=o;break d}a[p>>0]=0;o=p}if(!(w<<24>>24)){a[p>>0]=0;break}else{a[o>>0]=48;p=o+1|0;break}}while(0);if(E){o=p+1|0;a[p>>0]=a[48912+(d[I+4>>0]|0)>>0]|0;n=p+2|0;if((F|0)<0){a[o>>0]=45;o=0-F|0}else{a[o>>0]=43;o=F}if((o|0)>99){a[n>>0]=((o|0)/100|0)+48;f=4;e=5;n=p+3|0;o=(o|0)%100|0}else{f=3;e=4}a[n>>0]=((o|0)/10|0)+48;a[p+f>>0]=((o|0)%10|0)+48;p=p+e|0}a[p>>0]=0;e=v;o=p-e|0;if(!(K<<24>>24==0&y<<24>>24!=0&(J|0)>(o|0))){e=J;p=G;break c}n=J-o|0;if((o|0)>=0){f=J;while(1){a[v+f>>0]=a[v+(f-n)>>0]|0;if((f|0)>(n|0))f=f+-1|0;else break}}if((J|0)==(o|0)){o=J;e=J;p=G;break c}bw(v+(H<<24>>24!=0&1)|0,48,J+e-p|0)|0;o=J;e=J;p=G}break}case 5:{if(P){o=c[L>>2]|0;e=c[g>>2]|0;v=c[e>>2]|0;c[g>>2]=e+4;c[v>>2]=o;v=f;o=0;e=0;p=0}else{v=f;o=0;e=0;p=0}break}case 8:{a[V>>0]=37;v=V;o=1;e=J;p=0;break}case 9:{if(!P){e=Qk(m)|0;if(!e)p=0;else p=a[e>>0]|0}else{G=c[g>>2]|0;p=c[G>>2]|0;c[g>>2]=G+4}if((D|0)>1){n=D+-1|0;e=J-n|0;if(!((e|0)<2|K<<24>>24!=0)){Rk(b,e+-1|0,32);e=0}f=p&255;Rk(b,n,f)}else{f=p&255;e=J}a[V>>0]=f;v=V;o=1;p=0;break}case 7:case 6:{if(M)n=Qk(m)|0;else{F=c[g>>2]|0;n=c[F>>2]|0;c[g>>2]=F+4}if(!n){f=10360;p=0}else{f=n;p=G<<24>>24!=7|M?0:n}if((D|0)>-1){if((D|0)>0)n=0;else{v=f;o=0;e=J;break c}while(1){o=n+1|0;if(!(a[f+n>>0]|0)){v=f;o=n;e=J;break c}if((o|0)<(D|0))n=o;else{v=f;e=J;break}}}else{if(!f){v=0;o=0;e=J;break c}else n=f;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;v=f;o=n-f&1073741823;e=J;break c}break}case 15:case 11:case 10:{z=G<<24>>24==15?34:39;if(P){F=c[g>>2]|0;p=c[F>>2]|0;c[g>>2]=F+4}else p=Qk(m)|0;v=(p|0)==0;if(v)p=G<<24>>24==11?20304:48992;e:do if(!D){y=0;o=0}else{s=z&255;n=0;e=D;o=0;while(1){f=a[p+n>>0]|0;if(!(f<<24>>24)){y=n;break e}o=((f<<24>>24|0)==(s|0)&1)+o|0;n=n+1|0;e=e+-1|0;if(!e){y=n;break}}}while(0);w=G<<24>>24==11&(v^1);n=((w&1)<<1|1)+y+o|0;if((n|0)>70){o=mg(n,((n|0)<0)<<31>>31)|0;if(!o){R=197;break a}else{v=o;x=o}}else{v=V;x=0}if(w){a[v>>0]=z;n=1}else n=0;if((y|0)>0){s=z&255;e=0;do{o=a[p+e>>0]|0;f=n+1|0;a[v+n>>0]=o;if((o<<24>>24|0)==(s|0)){a[v+f>>0]=o;n=n+2|0}else n=f;e=e+1|0}while((e|0)!=(y|0))}if(w){a[v+n>>0]=z;n=n+1|0}a[v+n>>0]=0;o=n;e=J;p=x;break}case 12:{G=c[g>>2]|0;e=c[G>>2]|0;c[g>>2]=G+4;if((e|0)!=0?(U=c[e+4>>2]|0,(U|0)!=0):0){Ok(b,c[e>>2]|0,U);v=f;o=0;e=0;p=0}else{v=f;o=0;e=0;p=0}break}default:break a}while(0);if((R|0)==50){R=0;do if(!(a[I+2>>0]&1)){if(M){f=Pk(m)|0;s=C;B=0;break}if(!(p<<24>>24)){s=c[g>>2]|0;f=c[s>>2]|0;c[g>>2]=s+4;s=0;B=0;break}else{B=c[g>>2]|0;s=B;f=c[s>>2]|0;s=c[s+4>>2]|0;c[g>>2]=B+8;B=0;break}}else{do if(!M)if(!(p<<24>>24)){o=c[g>>2]|0;p=c[o>>2]|0;c[g>>2]=o+4;o=((p|0)<0)<<31>>31;break}else{F=c[g>>2]|0;o=F;p=c[o>>2]|0;o=c[o+4>>2]|0;c[g>>2]=F+8;break}else{p=Pk(m)|0;o=C}while(0);if((o|0)<0){f=$v(0,0,p|0,o|0)|0;s=C;B=45;break}if(!(x<<24>>24)){f=p;s=o;B=v<<24>>24==0?0:32}else{f=p;s=o;B=43}}while(0);A=(f|0)==0&(s|0)==0;if(!(y<<24>>24))x=D;else{x=J-(B<<24>>24!=0&1)|0;x=(D|0)<(x|0)?x:D}if((x|0)>=60){p=x+10|0;o=mg(p,((p|0)<0)<<31>>31)|0;if(!o){R=69;break}else{e=p;p=o;n=o}}else{e=70;p=0;n=V}y=n+(e+-1)|0;if(G<<24>>24==16){o=qw(f|0,s|0,10,0)|0;if(!(o>>>0<=3?(G=pw(f|0,s|0,10,0)|0,G=qw(G|0,C|0,10,0)|0,!((G|0)==1&(C|0)==0)):0))o=0;G=o<<1;a[n+(e+-2)>>0]=a[48896+(G|1)>>0]|0;o=n+(e+-3)|0;a[o>>0]=a[48896+G>>0]|0}else o=y;e=d[I+4>>0]|0;v=d[I+1>>0]|0;while(1){G=qw(f|0,s|0,v|0,0)|0;n=o+-1|0;a[n>>0]=a[48912+(G+e)>>0]|0;f=pw(f|0,s|0,v|0,0)|0;s=C;if((f|0)==0&(s|0)==0)break;else o=n}f=x-y+n|0;if((f|0)>0){e=o;o=n;while(1){n=e+-2|0;a[n>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=o;o=n}}}if(B<<24>>24){n=o+-2|0;a[n>>0]=B}if((!(A|z<<24>>24==0)?(S=a[I+5>>0]|0,S<<24>>24!=0):0)?(T=48952+(S&255)|0,!(S<<24>>24==3|S<<24>>24==6)):0){f=a[T>>0]|0;o=T;do{n=n+-1|0;a[n>>0]=f;o=o+1|0;f=a[o>>0]|0}while(f<<24>>24!=0)}v=n;o=y-n|0;e=J}n=e-o|0;f=(n|0)<1;if(!(f|K<<24>>24!=0))Rk(b,n,32);Ok(b,v,o);if(!(f|K<<24>>24==0))Rk(b,n,32);if(p)Sc(p);f=l+1|0;l=v}if((R|0)==10)Ok(b,48744,1);else if((R|0)==69){a[b+25>>0]=1;c[b+16>>2]=0}else if((R|0)==124){a[b+25>>0]=1;c[b+16>>2]=0}else if((R|0)==197){a[b+25>>0]=1;c[b+16>>2]=0}i=Y;return}function pg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[f>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[d+(c[h>>2]|0)>>0]=0,e=a[b+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[f>>2]|0)==(c[g>>2]|0)):0){if(e<<24>>24==1){d=(c[h>>2]|0)+1|0;d=ih(c[b>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Pc((c[h>>2]|0)+1|0)|0;c[f>>2]=d;if(!d){a[b+25>>0]=1;c[b+16>>2]=0;break}else{gw(d|0,c[g>>2]|0,(c[h>>2]|0)+1|0)|0;break}}while(0);return c[f>>2]|0}function qg(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=d+52|0;c[h>>2]=e;a:do if(!f){c[h>>2]=e;e=c[d+236>>2]|0;if(e){h=e+8|0;if(!(b[h>>1]&9312)){b[h>>1]=1;break}else{rg(e);break}}}else{l=d+236|0;do if(!(c[l>>2]|0)){h=ih(d,40,0)|0;if(!h){c[l>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(k|0));b[h+8>>1]=1;c[h+32>>2]=d;c[l>>2]=h;break}}while(0);c[m>>2]=g;h=Sk(d,f,m)|0;e=c[l>>2]|0;if(e)Tg(e,h,-1,1,75)|0}while(0);i=n;return}function rg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[e>>1]|0;if(d&8192){Uk(a,c[a>>2]|0)|0;d=b[e>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Vk(c[a>>2]|0);break}if(d&64){a=c[a>>2]|0;d=(c[a>>2]|0)+180|0;c[a+4>>2]=c[d>>2];c[d>>2]=a}}else _b[c[a+36>>2]&31](c[a+16>>2]|0);while(0);b[e>>1]=1;return}function sg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;e=Rh(b,d)|0;do if((e|0)==1){f=ih(a,536,0)|0;if(!f){qg(a,7,15776,g);e=0;break}bw(f|0,0,536)|0;c[f>>2]=b;if(!(Wk(f)|0)){ig(a,c[f+4>>2]|0);yh(f);ig(a,f);h=7;break}else{b=c[f+12>>2]|0;e=f+4|0;c[g>>2]=c[e>>2];qg(a,b,10344,g);ig(a,c[e>>2]|0);yh(f);ig(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[g>>2]=d;qg(a,1,47448,g);e=0;break}else{e=c[(c[b+16>>2]|0)+(e<<4)+4>>2]|0;break}while(0);i=k;return e|0}function tg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[a+4>>2]|0;c[k+4>>2]=c[a>>2];j=k+22|0;if(!(b[j>>1]&2)){if((f|0)<0)f=(c[k+32>>2]|0)-(c[k+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[k+32>>2]=d,h=k+80|0,i=c[h>>2]|0,(i|0)!=0):0){a=i+-4|0;c[h>>2]=a;Xk(a);c[h>>2]=0}h=k+32|0;a=Yk(c[k>>2]|0,h,f)|0;c[k+36>>2]=(c[h>>2]|0)-(f&65535);if(g)b[j>>1]=e[j>>1]|0|2}else a=8;return a|0}function ug(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;Q=i;i=i+16|0;if((i|0)>=(j|0))ba();K=Q;J=Q+12|0;I=Q+8|0;O=c[f+4>>2]|0;F=O+4|0;c[F>>2]=c[f>>2];L=f+8|0;l=a[L>>0]|0;do if(l<<24>>24!=2?(M=(g|0)!=0,l<<24>>24!=1|M):0){N=O+22|0;l=b[N>>1]|0;if(!((l&1)!=0&M)){if(M)if((a[O+20>>0]|0)!=2&(l&64)==0)P=8;else P=7;else if(!(l&64))P=8;else P=7;a:do if((P|0)==7){h=c[O+76>>2]|0;P=12}else if(((P|0)==8?(g|0)>1:0)?(k=c[O+72>>2]|0,(k|0)!=0):0)do{l=c[k>>2]|0;if((l|0)!=(f|0)){h=l;P=12;break a}k=c[k+12>>2]|0}while((k|0)!=0);while(0);if((P|0)==12?(c[h>>2]|0)!=0:0){h=262;break}h=Zk(f,1,1)|0;if(!h){l=e[N>>1]|0;b[N>>1]=l&65527;H=O+44|0;if(!(c[H>>2]|0))b[N>>1]=l|8;B=O+12|0;r=O+32|0;s=O+36|0;t=O+17|0;u=O+18|0;v=O+80|0;w=O+24|0;x=O+26|0;y=O+28|0;z=O+30|0;A=O+21|0;C=O+20|0;D=(g|0)>1;h=0;b:while(1){c:do if(!(c[B>>2]|0)){h=_k(c[O>>2]|0)|0;if(!h){h=$k(O,1,J,0)|0;if(!h){q=c[J>>2]|0;n=c[q+56>>2]|0;l=d[n+29>>0]<<16|d[n+28>>0]<<24|d[n+30>>0]<<8|d[n+31>>0];m=c[O>>2]|0;o=c[m+24>>2]|0;if((l|0)!=0?(Vv(n+24|0,n+92|0,4)|0)==0:0)p=l;else p=o;d:do if((p|0)>0){e:do if(!(Vv(n,44680,16)|0)){if((d[n+18>>0]|0)>2)b[N>>1]=e[N>>1]|1;l=a[n+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[N>>1]&16)break;c[I>>2]=0;h=al(m,I)|0;if(h){P=48;break e}if(c[I>>2]|0)break;if(!q){h=0;continue b}xg(c[q+68>>2]|0);h=0;continue b}while(0);if(Vv(n+21|0,47408,3)|0){h=26;P=48;break}k=d[n+17>>0]<<16|d[n+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;P=48;break}m=d[n+20>>0]|0;l=k-m|0;if((k|0)==(c[r>>2]|0)){if((p|0)>(o|0)?(c[(c[F>>2]|0)+24>>2]&65536|0)==0:0){c[K>>2]=55672;c[K+4>>2]=10788;Zc(11,13600,K);h=11;P=48;break}if(l>>>0<480){h=26;P=48;break}c[r>>2]=k;c[s>>2]=l;a[t>>0]=(d[n+53>>0]<<16|d[n+52>>0]<<24|d[n+54>>0]<<8|d[n+55>>0]|0)!=0&1;a[u>>0]=(d[n+65>>0]<<16|d[n+64>>0]<<24|d[n+66>>0]<<8|d[n+67>>0]|0)!=0&1;break d}if(q)xg(c[q+68>>2]|0);c[s>>2]=l;c[r>>2]=k;l=c[v>>2]|0;if(l){h=l+-4|0;c[v>>2]=h;Xk(h);c[v>>2]=0}h=Yk(c[O>>2]|0,r,m)|0}else{h=26;P=48}}else{h=26;P=48}while(0);if((P|0)==48){P=0;if(q)xg(c[q+68>>2]|0);c[B>>2]=0}if(!h){h=0;continue b}else{P=77;break c}}else l=c[s>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[w>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[x>>1]=m;b[y>>1]=l+65501;b[z>>1]=m;a[A>>0]=(k&65535)>127?127:h&255;c[B>>2]=q;c[H>>2]=p;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&M){if(b[N>>1]&1){h=8;P=77;break c}p=c[O>>2]|0;h=c[p+40>>2]|0;g:do if(!h){a[p+21>>0]=(a[(c[f>>2]|0)+64>>0]|0)==2&1;q=p+16|0;if((a[q>>0]|0)==1){m=p+208|0;l=c[m>>2]|0;do if(!l){h=bl(p,2)|0;h:do if((h|0)==0&D){l=p+176|0;k=p+180|0;while(1){h=bl(p,4)|0;if((h|0)!=5)break h;if(!(hc[c[l>>2]&127](c[k>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[p+4>>0]|0){if(a[l+43>>0]|0)break;h=bl(p,4)|0;if(h)break g;l=c[m>>2]|0;k=l+43|0;if(!(a[k>>0]|0)){h=c[l+4>>2]|0;lc[c[(c[h>>2]|0)+56>>2]&31](h,(b[l+40>>1]|0)+3|0,1,5)|0;l=c[m>>2]|0}a[k>>0]=1}while(0);if(a[l+46>>0]|0){h=8;break g}k=l+43|0;if((a[k>>0]|0)==0?(E=c[l+4>>2]|0,E=lc[c[(c[E>>2]|0)+56>>2]&31](E,0,1,10)|0,(E|0)!=0):0){h=E;break g}h=l+44|0;a[h>>0]=1;if(!(Vv(l+52|0,c[c[l+32>>2]>>2]|0,48)|0))break;if(!(a[k>>0]|0)){k=c[l+4>>2]|0;lc[c[(c[k>>2]|0)+56>>2]&31](k,0,1,9)|0}a[h>>0]=0;h=517;break g}while(0);a[q>>0]=2;h=c[p+24>>2]|0;c[p+36>>2]=h;c[p+32>>2]=h;c[p+28>>2]=h;h=p+72|0;c[h>>2]=0;c[h+4>>2]=0}h=yg(O)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((P|0)==77){P=0;l=(h|0)==0}if((a[C>>0]|0)==0?(G=c[B>>2]|0,(G|0)!=0):0){c[B>>2]=0;xg(c[G+68>>2]|0)}if((h&255|0)!=5){P=86;break}if(a[C>>0]|0){P=86;break}if(!(cl(O)|0)){P=86;break}}if((P|0)==86)if(!l){P=96;break}if((a[L>>0]|0)==0?(E=O+40|0,c[E>>2]=(c[E>>2]|0)+1,(a[f+9>>0]|0)!=0):0){a[f+40>>0]=1;E=O+72|0;c[f+44>>2]=c[E>>2];c[E>>2]=f+32}l=M?2:1;a[L>>0]=l;if((l&255)>(d[C>>0]|0))a[C>>0]=l;if(M){l=c[B>>2]|0;c[O+76>>2]=f;k=e[N>>1]|0;b[N>>1]=D?k|32:k&65503;k=l+56|0;E=c[k>>2]|0;if((c[H>>2]|0)!=(d[E+29>>0]<<16|d[E+28>>0]<<24|d[E+30>>0]<<8|d[E+31>>0]|0)){h=Cg(c[l+68>>2]|0)|0;if(!h){h=c[k>>2]|0;P=c[H>>2]|0;a[h+28>>0]=P>>>24;a[h+29>>0]=P>>>16;a[h+30>>0]=P>>>8;a[h+31>>0]=P;h=0;P=96}}else P=96}}}else h=8}else{h=0;P=96}while(0);if((P|0)==96)if((h|0)==0&(g|0)!=0)h=dl(c[O>>2]|0,c[(c[f>>2]|0)+496>>2]|0)|0;i=Q;return h|0}function vg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();r=v;t=v+8|0;c[t>>2]=0;q=h&1;a:do if(!f){c[r>>2]=46865;c[r+4>>2]=10788;Zc(11,13600,r);k=11}else{a[e+23>>0]=1;h=c[e+40>>2]|0;do if(!h){p=e+204|0;h=c[p>>2]|0;h=Yb[c[8744+132>>2]&63](c[h+40>>2]|0,f,d[h+29>>0]&3)|0;if(!h){m=c[p>>2]|0;if((a[m+29>>0]|0)!=2){l=m+8|0;h=c[l>>2]|0;b:do if(!h)u=11;else{while(1){if((b[h+26>>1]|0)==0?(b[h+24>>1]&4)==0:0)break;h=c[h+36>>2]|0;if(!h){u=11;break b}}c[l>>2]=h;o=h;u=14}while(0);c:do if((u|0)==11?(c[l>>2]=0,n=c[m+4>>2]|0,(n|0)!=0):0){h=n;do{if(!(b[h+26>>1]|0)){o=h;u=14;break c}h=c[h+36>>2]|0}while((h|0)!=0)}while(0);if((u|0)==14?(k=nc[c[m+32>>2]&127](c[m+36>>2]|0,o)|0,!((k|0)==0|(k|0)==5)):0)break;k=Yb[c[8744+132>>2]&63](c[m+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=el(c[p>>2]|0,f,k)|0;c[g>>2]=m;if(!m)k=7;else{h=m+16|0;k=(q|0)!=0;if(!((c[h>>2]|0)==0|k)){k=e+184|0;c[k>>2]=(c[k>>2]|0)+1;k=0;break a}c[h>>2]=e;do if((f|0)>=0?(s=e+152|0,(((c[2514]|0)/(c[s>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[e+15>>0]|0)==0?!((c[e+24>>2]|0)>>>0<f>>>0|k):0)?(c[c[e+60>>2]>>2]|0)!=0:0){k=c[e+208>>2]|0;if(!k)k=0;else{k=gl(k,f,t)|0;if(k)break;k=c[t>>2]|0}s=e+188|0;c[s>>2]=(c[s>>2]|0)+1;k=hl(m,k)|0;if(!k){k=0;break a}else break}if((c[e+156>>2]|0)>>>0<f>>>0)k=13;else{if(k){k=c[3164]|0;if(k)jc[k&3]();if((c[e+28>>2]|0)>>>0>=f>>>0)Zh(c[e+56>>2]|0,f)|0;fl(e,f)|0;k=c[3166]|0;if(k)jc[k&3]()}bw(c[m+4>>2]|0,0,c[s>>2]|0)|0;k=0;break a}}else u=21;while(0);if((u|0)==21){c[r>>2]=46945;c[r+4>>2]=10788;Zc(11,13600,r);k=11}il(m)}}else k=h;while(0);if((c[e+120>>2]|0)==0?(c[(c[e+204>>2]|0)+12>>2]|0)==0:0)jl(e);c[g>>2]=0}while(0);i=v;return k|0}function wg(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();v=w;t=b+4|0;p=c[(c[t>>2]|0)+4>>2]|0;u=c[p>>2]|0;s=b+24|0;o=c[(c[(c[s>>2]|0)+4>>2]|0)+32>>2]|0;p=c[p+32>>2]|0;q=(o|0)<(p|0)?o:p;r=((o|0)<0)<<31>>31;m=ow(o|0,r|0,d|0,0)|0;n=C;if((o|0)==(p|0))b=0;else b=(a[u+15>>0]|0)==0?0:8;a:do if((b|0)==0&(o|0)>0){d=$v(m|0,n|0,o|0,r|0)|0;l=((p|0)<0)<<31>>31;k=(f|0)==0;h=C;b=p;while(1){c[v>>2]=0;f=mw(d|0,h|0,p|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=vg(u,f+1|0,v,0)|0;g=c[v>>2]|0;if(!b){b=Cg(g)|0;if(!b){x=nw(d|0,h|0,o|0,r|0)|0;f=c[g+4>>2]|0;b=nw(d|0,h|0,p|0,l|0)|0;gw(f+b|0,e+x|0,q|0)|0;a[c[g+8>>2]>>0]=0;if((d|0)==0&(h|0)==0&k){x=c[(c[(c[s>>2]|0)+4>>2]|0)+44>>2]|0;a[f+(b+28)>>0]=x>>>24;a[f+(b+29)>>0]=x>>>16;a[f+(b+30)>>0]=x>>>8;a[f+(b+31)>>0]=x;b=0}else b=0}}if(g)xg(g)}else b=0;d=fw(d|0,h|0,p|0,l|0)|0;f=C;if(!((b|0)==0&((f|0)<(n|0)|(f|0)==(n|0)&d>>>0<m>>>0)))break a;h=f;b=c[(c[(c[t>>2]|0)+4>>2]|0)+32>>2]|0}}while(0);i=w;return b|0}function xg(a){a=a|0;var d=0,e=0,f=0;d=c[a+16>>2]|0;if(!(b[a+24>>1]&64)){kl(a);a=c[d+120>>2]|0}else{f=d+120|0;e=(c[f>>2]|0)+-1|0;c[f>>2]=e;f=d+136|0;c[a+12>>2]=c[f>>2];c[f>>2]=a;a=e}if((a|0)==0?(c[(c[d+204>>2]|0)+12>>2]|0)==0:0)jl(d);return}function yg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[i>>2]|0)){j=c[d+12>>2]|0;k=c[j+56>>2]|0;f=Cg(c[j+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[k+16>>0]=(c[f>>2]|0)>>>8;a[k+17>>0]=(c[f>>2]|0)>>>16;a[k+18>>0]=1;a[k+19>>0]=1;a[k+20>>0]=(c[f>>2]|0)-(c[d+36>>2]|0);a[k+21>>0]=64;a[k+22>>0]=32;a[k+23>>0]=32;f=k+24|0;h=f+76|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(h|0));ll(j,13);f=d+22|0;b[f>>1]=e[f>>1]|0|2;f=a[d+17>>0]|0;a[k+52>>0]=0;a[k+53>>0]=0;a[k+54>>0]=0;a[k+55>>0]=f;f=a[d+18>>0]|0;a[k+64>>0]=0;a[k+65>>0]=0;a[k+66>>0]=0;a[k+67>>0]=f;c[i>>2]=1;a[k+31>>0]=1;f=0}}else f=0;return f|0}function zg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[b+4>>2]|0;c[g+4>>2]=c[b>>2];b=c[g+12>>2]|0;f=c[b+56>>2]|0;b=Cg(c[b+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[f+(i+36)>>0]=e>>>24,a[f+(i+37)>>0]=e>>>16,a[f+(i+38)>>0]=e>>>8,h=e&255,a[f+(i+39)>>0]=h,(d|0)==7):0)a[g+18>>0]=h;return b|0}function Ag(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[h>>2]|0;d=(b|0)>0;if(d){e=c[a+16>>2]|0;g=0;do{f=c[e+(g<<4)+4>>2]|0;if(f)c[(c[f+4>>2]|0)+4>>2]=c[f>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[(c[g>>2]|0)+(f<<4)+12>>2]|0;if(d){ml(d);b=c[h>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[b>>2]=c[b>>2]&-3;nl(a);ol(a);return}function Bg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[d+4>>2]|0;k=h+22|0;g=e[k>>1]|0;b[k>>1]=(f|0)==1?g|16:g&65519;g=ug(d,0)|0;do if(!g){h=h+12|0;i=c[(c[h>>2]|0)+56>>2]|0;j=i+18|0;g=a[j>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[i+19>>0]|0)==g<<24>>24:0){g=0;break}g=ug(d,2)|0;if(!g){g=Cg(c[(c[h>>2]|0)+68>>2]|0)|0;if(!g){a[j>>0]=f;a[i+19>>0]=f;g=0}}}while(0);b[k>>1]=e[k>>1]&65519;return g|0}function Cg(a){a=a|0;var b=0;b=c[a+16>>2]|0;if((c[b+148>>2]|0)>>>0>(c[b+152>>2]|0)>>>0)a=pl(a)|0;else a=ql(a)|0;return a|0}function Dg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+32|0;if((i|0)>=(j|0))ba();s=y+16|0;t=y;k=y+12|0;m=y+8|0;g=c[b+40>>2]|0;a:do if(!g){x=b+16|0;if((d[x>>0]|0)>=3){b:do if(!(a[b+15>>0]|0)){if(c[b+208>>2]|0){l=b+204|0;h=rl(c[l>>2]|0)|0;c[m>>2]=0;if(!h){g=vg(b,1,m,0)|0;h=c[m>>2]|0;c[h+12>>2]=0;if(h){k=h;w=9}}else{k=0;w=9}if((w|0)==9){g=sl(b,h,c[b+24>>2]|0,1)|0;if(k)xg(k)}if(g)break a;h=c[l>>2]|0;g=c[h>>2]|0;if(!g)break;while(1){tl(g);g=c[h>>2]|0;if(!g)break b}}l=b+18|0;if((a[l>>0]|0)==0?(c[b+24>>2]|0)!=0:0){g=vg(b,1,k,0)|0;k=c[k>>2]|0;if(!g){g=Cg(k)|0;if(!g){ul(k);a[l>>0]=1;g=0}}if(k)xg(k);if(g)break a}if(((e|0)!=0?(a[b+5>>0]|0)!=4:0)?(v=b+64|0,r=c[v>>2]|0,(c[r>>2]|0)!=0):0){a[b+19>>0]=1;k=a[e>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[e+h>>0]|0}while(k<<24>>24!=0)}q=b+72|0;g=q;k=c[g>>2]|0;g=c[g+4>>2]|0;if(!(a[b+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=fw(k|0,g|0,-1,-1)|0;k=c[b+148>>2]|0;g=mw(g|0,C|0,k|0,0)|0;g=fw(g|0,C|0,1,0)|0;k=ow(g|0,C|0,k|0,0)|0;g=C}m=q;c[m>>2]=k;c[m+4>>2]=g;m=g}g=((c[2514]|0)/(c[b+152>>2]|0)|0)+1|0;a[s>>0]=g>>>24;n=s+1|0;a[n>>0]=g>>>16;o=s+2|0;a[o>>0]=g>>>8;p=s+3|0;a[p>>0]=g;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,s,4,k,m)|0;if(g)break a;g=c[v>>2]|0;m=fw(k|0,m|0,4,0)|0;k=C;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[v>>2]|0;m=fw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=C;a[s>>0]=h>>>24;a[n>>0]=h>>>16;a[o>>0]=h>>>8;a[p>>0]=h;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,s,4,m,k)|0;if(g)break a;r=c[v>>2]|0;g=fw(m|0,k|0,4,0)|0;a[s>>0]=l>>>24;a[n>>0]=l>>>16;a[o>>0]=l>>>8;a[p>>0]=l;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,s,4,g,C)|0;if(g)break a;r=c[v>>2]|0;g=fw(m|0,k|0,8,0)|0;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,14808,8,g,C)|0;if(g)break a;r=h+20|0;g=q;r=fw(c[g>>2]|0,c[g+4>>2]|0,r|0,((r|0)<0)<<31>>31|0)|0;g=q;c[g>>2]=r;c[g+4>>2]=C;g=c[v>>2]|0;g=nc[c[(c[g>>2]|0)+24>>2]&127](g,t)|0;if(g)break a;r=t;p=c[r+4>>2]|0;g=q;h=c[g>>2]|0;g=c[g+4>>2]|0;if((p|0)>(g|0)|((p|0)==(g|0)?(c[r>>2]|0)>>>0>h>>>0:0)?(u=c[v>>2]|0,u=Yb[c[(c[u>>2]|0)+16>>2]&63](u,h,g)|0,(u|0)!=0):0){g=u;break a}}g=vl(b,0)|0;if(g)break a;h=b+204|0;g=wl(b,rl(c[h>>2]|0)|0)|0;if(g)break a;g=c[h>>2]|0;h=c[g>>2]|0;if(h)do{tl(h);h=c[g>>2]|0}while((h|0)!=0);h=c[b+24>>2]|0;if(h>>>0>(c[b+32>>2]|0)>>>0){g=xl(b,h-((h|0)==(((c[2514]|0)/(c[b+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))w=46}else if(!f)w=46;else break;if((w|0)==46)g=Eg(b,e)|0;if(g)break a}else{g=c[b+88>>2]|0;if(g)do{c[g+16>>2]=1;g=c[g+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[b+208>>2]|0)){a[x>>0]=5;g=0}else g=0}else g=0}while(0);i=y;return g|0}function Eg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[g>>2]|0;i=c[h>>2]|0;if(!((i|0)!=0?(f=Yb[c[i+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[b+7>>0]|0)){f=c[g>>2]|0;f=nc[c[(c[f>>2]|0)+20>>2]&127](f,d[b+11>>0]|0)|0}else f=0;return f|0}function Fg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[b+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[b+4>>2]|0;c[k+4>>2]=c[b>>2];if(g<<24>>24==2){h=c[k>>2]|0;i=h+40|0;g=c[i>>2]|0;do if(!g){g=h+16|0;if(((a[g>>0]|0)==2?(a[h+4>>0]|0)!=0:0)?(a[h+5>>0]|0)==1:0){a[g>>0]=1;break}f=h+100|0;c[f>>2]=(c[f>>2]|0)+1;f=yl(h,d[h+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[i>>2]=f;a[g>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[f>>2]=(c[f>>2]|0)+-1;a[k+20>>0]=1;f=k+60|0;ai(c[f>>2]|0);c[f>>2]=0}zl(b);f=0}while(0);return f|0}function Gg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();h=q;a:do if((a[b+8>>0]|0)==2){p=c[b+4>>2]|0;c[p+4>>2]=c[b>>2];do if(a[p+17>>0]|0){o=c[p>>2]|0;f=p+8|0;b=c[f>>2]|0;if(b)do{n=b+72|0;a[n>>0]=d[n>>0]&251;b=c[b+8>>2]|0}while((b|0)!=0);if(!(a[p+18>>0]|0)){n=p+44|0;g=c[n>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[p+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[p+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[p+32>>2]|0)>>>0)|0)+1|0):0){k=p+12|0;l=c[(c[k>>2]|0)+56>>2]|0;l=d[l+37>>0]<<16|d[l+36>>0]<<24|d[l+38>>0]<<8|d[l+39>>0];m=Al(p,g,l)|0;if(m>>>0>g>>>0){c[h>>2]=56396;c[h+4>>2]=10788;Zc(11,13600,h);b=11;break a}b:do if(m>>>0<g>>>0){b=c[f>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Bl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Cl(p,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Cg(c[(c[k>>2]|0)+68>>2]|0)|0;l=(c[(c[k>>2]|0)+56>>2]|0)+32|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;l=(c[(c[k>>2]|0)+56>>2]|0)+36|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;l=c[(c[k>>2]|0)+56>>2]|0;a[l+28>>0]=m>>>24;a[l+29>>0]=m>>>16;a[l+30>>0]=m>>>8;a[l+31>>0]=m;a[p+19>>0]=1;c[n>>2]=m}if(!b)break;Dl(o)|0;break a}c[h>>2]=56391;c[h+4>>2]=10788;Zc(11,13600,h);b=11;break a}}while(0);b=c[p>>2]|0;if(a[p+19>>0]|0)c[b+24>>2]=c[p+44>>2];b=Dg(b,e,0)|0}else b=0;while(0);i=q;return b|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m;l=c[b+4>>2]|0;c[l+4>>2]=c[b>>2];a:do if(!e){e=c[l+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Bl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)El(b,e,g)|0;if((a[b+8>>0]|0)==2){Dl(c[l>>2]|0)|0;if(!($k(l,1,h,0)|0)){e=c[h>>2]|0;g=c[e+56>>2]|0;g=d[g+29>>0]<<16|d[g+28>>0]<<24|d[g+30>>0]<<8|d[g+31>>0];if(!g)g=c[(c[l>>2]|0)+24>>2]|0;c[l+44>>2]=g;if(e)xg(c[e+68>>2]|0)}a[l+20>>0]=1;g=l+60|0;ai(c[g>>2]|0);c[g>>2]=0}zl(b);i=m;return}function Ig(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[j>>2]|0)==1691352191?(Fl(d)|0)==0:0){Gl(d,0);Hl(d);i=d+20|0;k=d+16|0;e=c[k>>2]|0;if((c[i>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[g>>2]|0;if((f|0)!=0?(Il(f),c[g>>2]=0,(h|0)!=1):0)c[e+(h<<4)+12>>2]=0;h=h+1|0;e=c[k>>2]|0}while((h|0)<(c[i>>2]|0))}e=c[e+28>>2]|0;if(e)ml(e);nl(d);ol(d);h=0;do{e=c[d+(h<<2)+336>>2]|0;if(e)do{g=e;e=c[e+28>>2]|0;if(g)do{Jl(d,g);f=g;g=c[g+8>>2]|0;ig(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[d+436>>2]|0;if(e)do{h=c[e+8>>2]|0;g=c[h+16>>2]|0;if(g)_b[g&31](c[h+8>>2]|0);g=c[h+36>>2]|0;if(g)_b[g&31](c[h+28>>2]|0);g=c[h+56>>2]|0;if(g)_b[g&31](c[h+48>>2]|0);ig(d,h);e=c[e>>2]|0}while((e|0)!=0);Kl(f);h=d+308|0;e=c[d+316>>2]|0;if(e)do{g=c[e+8>>2]|0;f=c[g+12>>2]|0;if(f)_b[f&31](c[g+8>>2]|0);ig(d,g);e=c[e>>2]|0}while((e|0)!=0);Kl(h);c[d+52>>2]=0;f=d+236|0;e=c[f>>2]|0;do if(e){g=e+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(e);e=c[f>>2]|0;break}}else e=0;while(0);Ih(e);g=d+168|0;if((c[g>>2]|0)>0){e=d+172|0;f=0;do{h=c[d>>2]|0;fc[c[h+52>>2]&15](h,c[(c[e>>2]|0)+(f<<2)>>2]|0);f=f+1|0}while((f|0)<(c[g>>2]|0))}else e=d+172|0;ig(d,c[e>>2]|0);c[j>>2]=-1254786768;ig(d,c[(c[k>>2]|0)+28>>2]|0);c[j>>2]=-1623446221;if(a[d+251>>0]|0)Sc(c[d+276>>2]|0);Sc(d)}return}function Jg(a){a=a|0;var b=0;b=c[a+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Lg(a)|0;else b=0;Ll(a);return b|0}function Kg(b,d){b=b|0;d=d|0;do if(b)if((a[b+65>>0]|0)!=0|(d|0)==3082){Ml(b);b=7;break}else{b=c[b+56>>2]&d;break}else b=d&255;while(0);return b|0}function Lg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;f=c[a>>2]|0;Nl(a)|0;if((c[a+76>>2]|0)>-1){dh(a)|0;d=a+44|0;ig(f,c[d>>2]|0);c[d>>2]=0;d=a+88|0;e=b[d>>1]|0;if(e&16)b[d>>1]=e|8}else{d=c[a+80>>2]|0;if((d|0)!=0?(b[a+88>>1]&8)!=0:0){h=a+44|0;k=c[h>>2]|0;c[e>>2]=k;qg(f,d,(k|0)!=0?10344:0,e);ig(f,c[h>>2]|0);c[h>>2]=0}}d=a+44|0;ig(c[a>>2]|0,c[d>>2]|0);c[d>>2]=0;c[a+20>>2]=0;d=a+136|0;c[d>>2]=0;c[d+4>>2]=0;c[a+40>>2]=649915045;i=g;return c[f+56>>2]&c[a+80>>2]|0}function Mg(a){a=a|0;var d=0;if(b[a+8>>1]&9312)rg(a);d=a+24|0;if(c[d>>2]|0){ig(c[a+32>>2]|0,c[a+20>>2]|0);c[d>>2]=0}c[a+16>>2]=0;return}function Ng(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[d>>1]&16384){f=a+12|0;g=(c[a>>2]|0)+(c[f>>2]|0)|0;if(!(ah(a,(g|0)<1?1:g,1)|0)){bw((c[a+16>>2]|0)+(c[f>>2]|0)|0,0,c[a>>2]|0)|0;c[f>>2]=(c[f>>2]|0)+(c[a>>2]|0);b[d>>1]=(e[d>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Og(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[d+8>>1]|0;if((f&514)==514?(a[d+10>>0]|0)==e<<24>>24:0){f=c[d+16>>2]|0;break}if(!(f&1))f=Ol(d,e)|0;else f=0}else f=0;while(0);return f|0}function Pg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[e>>1]|0;if(!(f&16))if(!(Og(a,d)|0))e=0;else{f=b[e>>1]|0;g=4}else g=4;if((g|0)==4){e=c[a+12>>2]|0;if(f&16384)e=(c[a>>2]|0)+e|0}return e|0}function Qg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;f=e[b+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0);break}if(!(f&18))d=0.0;else{h[g>>3]=0.0;Pl(c[b+16>>2]|0,g,c[b+12>>2]|0,a[b+10>>0]|0)|0;d=+h[g>>3]}}else d=+h[b>>3];while(0);i=k;return +d}function Rg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;f=e[b+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[f>>2]=0;c[f+4>>2]=0;Ql(c[b+16>>2]|0,g,c[b+12>>2]|0,a[b+10>>0]|0)|0;f=g;b=c[f+4>>2]|0;f=c[f>>2]|0;break}d=+h[b>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+N(d)>=1.0?(d>0.0?~~+$(+M(d/4294967296.0),4294967295.0)>>>0:~~+Z((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[f+4>>2]|0;f=c[f>>2]|0}while(0);C=b;i=k;return f|0}function Sg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Tg(c[b>>2]|0,d,e,f,g)|0)==18){c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0}return}function Tg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:do if(!f){j=d+8|0;if(!(b[j>>1]&9312)){b[j>>1]=1;j=0;break}else{rg(d);j=0;break}}else{o=d+32|0;j=c[o>>2]|0;if(!j)r=1e9;else r=c[j+88>>2]|0;q=h<<24>>24==0;n=q?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((r|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[f+(g|1)>>0]|a[f+g>>0])<<24>>24)){k=g;break b}if((k|0)>(r|0))break;else g=k}}else{k=f;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(r|0)?r+1|0:k}while(0);p=k;m=(n&65535|512)&65535}else{p=g;m=n}do if((i|0)==(-1|0)){if(!(m&512))j=p;else j=p+(h<<24>>24==1?1:2)|0;if((p|0)>(r|0)){j=18;break a}if(bh(d,(j|0)>32?j:32)|0){j=7;break a}gw(c[d+16>>2]|0,f|0,j|0)|0;n=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[l>>1]&9312)==0?(c[d+24>>2]|0)==0:0))Mg(d);c[d+16>>2]=f;if(!g){c[d+36>>2]=i;n=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[d+20>>2]=f;j=c[o>>2]|0;do if(!j)j=hc[c[8744+48>>2]&127](f)|0;else{if((c[j+276>>2]|0)>>>0<=f>>>0?(c[j+280>>2]|0)>>>0>f>>>0:0){j=e[j+248>>1]|0;break}j=hc[c[8744+48>>2]&127](f)|0}while(0);c[d+24>>2]=j;n=l;j=m}while(0);m=d+12|0;c[m>>2]=p;b[n>>1]=j;f=q?1:h;l=d+10|0;a[l>>0]=f;do if(f<<24>>24!=1&(p|0)>1){g=d+16|0;k=c[g>>2]|0;j=a[k>>0]|0;k=a[k+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Rl(d)|0){j=7;break a}f=(c[m>>2]|0)+-2|0;c[m>>2]=f;i=c[g>>2]|0;hw(i|0,i+2|0,f|0)|0;a[(c[g>>2]|0)+(c[m>>2]|0)>>0]=0;a[(c[g>>2]|0)+((c[m>>2]|0)+1)>>0]=0;b[n>>1]=e[n>>1]|512;a[l>>0]=j}while(0);j=(p|0)>(r|0)?18:0}while(0);return j|0}function Ug(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g+8|0;f=g;d=a+8|0;if(!(b[d>>1]&9312))b[d>>1]=1;else rg(a);h[e>>3]=c;h[f>>3]=+h[e>>3];if(!(+h[e>>3]!=+h[f>>3])){h[a>>3]=c;b[d>>1]=8}i=g;return}function Vg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[f>>1]&9312))b[f>>1]=1;else rg(a);c[a>>2]=d;c[a+4>>2]=e;b[f>>1]=4;return}function Wg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[f>>1]&9312)rg(a);c[a+0>>2]=c[d+0>>2];c[a+4>>2]=c[d+4>>2];c[a+8>>2]=c[d+8>>2];c[a+12>>2]=c[d+12>>2];c[a+16>>2]=c[d+16>>2];h=e[f>>1]|0;g=h&64511;b[f>>1]=g;if((h&18|0)!=0?(b[d+8>>1]&2048)==0:0){b[f>>1]=g|4096;f=Rl(a)|0}else f=0;return f|0}function Xg(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[f>>1]&9312)==0?(c[d+24>>2]|0)==0:0))Mg(d);b[f>>1]=16400;c[d+12>>2]=0;c[d>>2]=(e|0)<0?0:e;a[d+10>>0]=1;c[d+16>>2]=0;return}function Yg(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;if(a)if(!(c[a>>2]|0)){Zc(21,47360,b);a=1}else a=0;else{Zc(21,47320,b);a=1}i=d;return a|0}function Zg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((c[a>>2]|0)>1?(d=c[a+72>>2]|0,(d|0)!=0):0)d=nc[d&127](a,b)|0;else{d=nc[c[a+64>>2]&127](a,e)|0;g=+h[e>>3]*864.0e5;a=+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[b>>2]=~~g>>>0;c[b+4>>2]=a}i=f;return d|0}function _g(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[d+32>>2]|0;g=j+65|0;h=a[g>>0]|0;if(c[j+520>>2]|0){e=d;while(1){if(c[e+24>>2]|0)ig(j,c[e+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[e>>1]&9312)){f=d+24|0;if(c[f>>2]|0){ig(j,c[d+20>>2]|0);c[f>>2]=0}}else Mg(d);b[e>>1]=128;d=d+40|0}while(d>>>0<i>>>0);a[g>>0]=h}while(0);return}function $g(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;e=Sk(b,d,g)|0;ig(b,c[a>>2]|0);c[a>>2]=e;i=f;return}function ah(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;l=a+24|0;g=c[l>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[h>>2]|0,j=a+20|0,(i|0)==(c[j>>2]|0)):0){g=Sl(c[a+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[j>>2]=g;c[h>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;ig(c[g>>2]|0,c[d>>2]|0)}else d=a+20|0;g=ih(c[g>>2]|0,k,((k|0)<0)<<31>>31)|0;c[d>>2]=g}if(!g){f=a+8|0;if(!(b[f>>1]&9312))b[f>>1]=1;else rg(a);c[a+16>>2]=0;c[l>>2]=0;f=7;break}d=c[a+32>>2]|0;do if(!d)d=hc[c[8744+48>>2]&127](g)|0;else{if((c[d+276>>2]|0)>>>0<=g>>>0?(c[d+280>>2]|0)>>>0>g>>>0:0){d=e[d+248>>1]|0;break}d=hc[c[8744+48>>2]&127](g)|0}while(0);c[l>>2]=d;o=21}else o=21;while(0);if((o|0)==21){if(((f|0)!=0?(m=c[a+16>>2]|0,(m|0)!=0):0)?(n=c[a+20>>2]|0,(m|0)!=(n|0)):0)gw(n|0,m|0,c[a+12>>2]|0)|0;d=a+8|0;f=b[d>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;_b[c[a+36>>2]&31](c[g>>2]|0);f=b[d>>1]|0}c[g>>2]=c[a+20>>2];b[d>>1]=f&58367;f=0}return f|0}function bh(a,d){a=a|0;d=d|0;if((c[a+24>>2]|0)<(d|0))a=ah(a,d,0)|0;else{c[a+16>>2]=c[a+20>>2];a=a+8|0;b[a>>1]=(e[a>>1]|0)&13;a=0}return a|0}
function iq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0;ea=i;i=i+192|0;if((i|0)>=(j|0))ba();_=ea+48|0;Y=ea+24|0;X=ea+160|0;F=ea+156|0;P=ea+152|0;I=ea+148|0;S=ea+144|0;L=ea+140|0;E=ea+16|0;ca=ea;v=ea+128|0;u=ea+116|0;w=ea+96|0;l=ea+88|0;da=f+8|0;$=c[da>>2]|0;aa=c[f>>2]|0;c[ca+0>>2]=c[9286];c[ca+4>>2]=c[9287];c[ca+8>>2]=c[9288];a:do switch(g|0){case 5:{a[$+450>>0]=0;c[$+440>>2]=0;break}case 7:{a[$+450>>0]=2;c[$+440>>2]=0;break}case 6:{a[$+450>>0]=1;c[$+440>>2]=0;break}case 38:{_=c[f+(aa+-2<<4)+16>>2]|0;c[ca>>2]=_;c[ca+4>>2]=(c[$+504>>2]|0)-_+(c[$+508>>2]|0);break}case 39:{u=f+(aa<<4)+16|0;s=c[$>>2]|0;k=c[$+484>>2]|0;b:do if(k){t=k+38|0;if((b[t>>1]|0)>=(c[s+96>>2]|0)){c[_>>2]=c[k>>2];ph($,36528,_);break}r=Sq(s,u)|0;if(r){p=b[t>>1]|0;h=p<<16>>16;c:do if(p<<16>>16>0){q=a[9328+(d[r>>0]|0)>>0]|0;n=c[k+4>>2]|0;o=r+1|0;l=0;while(1){m=c[n+(l*24|0)>>2]|0;if(q<<24>>24==(a[9328+(d[m>>0]|0)>>0]|0)?($c(o,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break c}c[_>>2]=r;ph($,36552,_);ig(s,r);break b}else n=c[k+4>>2]|0;while(0);o=k+4|0;do if(!(h&7)){n=no(s,n,(h*24|0)+192|0,0)|0;if(!n){ig(s,r);break b}else{c[o>>2]=n;p=b[t>>1]|0;break}}while(0);_=p<<16>>16;Z=n+(_*24|0)|0;c[Z+0>>2]=0;c[Z+4>>2]=0;c[Z+8>>2]=0;c[Z+12>>2]=0;c[Z+16>>2]=0;c[Z+20>>2]=0;c[Z>>2]=r;a[n+(_*24|0)+21>>0]=65;a[n+(_*24|0)+22>>0]=1;b[t>>1]=(b[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=c[Y+4>>2]|0;_=ca;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;c[$+324>>2]=0;break}case 22:{Pq($,0,f+(aa<<4)+16|0);break}case 23:{Pq($,1,f+(aa<<4)+16|0);break}case 8:{v=c[$>>2]|0;z=v+65|0;if(((a[z>>0]|0)==0?(a[$+18>>0]|0)==0:0)?(V=$+64|0,(c[V>>2]|0)==0):0){y=Kq($)|0;if(y){do{}while((Lq(y,61)|0)!=0);sh(y,24,0,0,0)|0;do if(!(a[z>>0]|0)){o=$+332|0;s=c[o>>2]|0;if((s|0)==0?(c[$+316>>2]|0)==0:0)break;p=y+32|0;q=c[p>>2]|0;if(q)c[(c[y+4>>2]|0)+8>>2]=q;c[(c[y+24>>2]|0)+88>>2]=q+-1;t=v+20|0;d:do if((c[t>>2]|0)>0){h=y+96|0;k=$+328|0;l=v+16|0;m=v+145|0;n=y+4|0;r=0;while(1){u=1<<r;if(((u&s|0)!=0?(c[h>>2]=c[h>>2]|u,_=c[(c[(c[l>>2]|0)+(r<<4)+12>>2]|0)+4>>2]|0,th(y,sh(y,4,r,(c[k>>2]&u|0)!=0&1,c[$+(r<<2)+336>>2]|0)|0,_,-14),(a[m>>0]|0)==0):0)?(K=c[n>>2]|0,(K|0)!=0):0)a[K+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=1;r=r+1|0;if((r|0)>=(c[t>>2]|0))break d;s=c[o>>2]|0}}while(0);p=$+452|0;if((c[p>>2]|0)>0){o=$+520|0;n=0;do{q=c[(c[(c[o>>2]|0)+(n<<2)>>2]|0)+60>>2]|0;e:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break e;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);th(y,sh(y,146,0,0,0)|0,q,-10);n=n+1|0}while((n|0)<(c[p>>2]|0))}c[p>>2]=0;p=Kq($)|0;o=$+396|0;if((c[o>>2]|0)>0){n=$+400|0;m=0;do{Y=c[n>>2]|0;_=c[Y+(m<<4)+12>>2]|0;th(p,sh(p,145,c[Y+(m<<4)>>2]|0,c[Y+(m<<4)+4>>2]|0,d[Y+(m<<4)+8>>0]|0)|0,_,-2);m=m+1|0}while((m|0)<(c[o>>2]|0))}k=c[$+8>>2]|0;q=c[$+404>>2]|0;if(q){h=(c[$>>2]|0)+16|0;r=k+32|0;s=k+4|0;do{o=c[q+8>>2]|0;p=c[q+12>>2]|0;Mq($,0,o,c[(c[(c[h>>2]|0)+(o<<4)+12>>2]|0)+72>>2]|0,54);o=p+1|0;sh(k,28,0,p,o)|0;n=c[r>>2]|0;l=p+-1|0;m=c[c[q+4>>2]>>2]|0;th(k,sh(k,97,0,l,0)|0,m,0);m=n+9|0;sh(k,108,0,m,0)|0;sh(k,47,0,0,p)|0;sh(k,78,l,n+7|0,p)|0;l=c[s>>2]|0;if(l)a[l+(((c[r>>2]|0)+-1|0)*20|0)+3>>0]=16;sh(k,103,0,o,0)|0;sh(k,47,0,1,p)|0;sh(k,16,0,m,0)|0;sh(k,9,0,n+2|0,0)|0;sh(k,25,0,p,0)|0;sh(k,61,0,0,0)|0;q=c[q>>2]|0}while((q|0)!=0)}p=c[$+316>>2]|0;if((p|0)!=0?(a[$+23>>0]=0,(c[p>>2]|0)>0):0){o=p+4|0;n=0;do{_=c[o>>2]|0;Nq($,c[_+(n*20|0)>>2]|0,c[_+(n*20|0)+16>>2]|0);n=n+1|0}while((n|0)<(c[p>>2]|0))}sh(y,16,0,1,0)|0}while(0);if((c[V>>2]|0)==0?(a[z>>0]|0)==0:0){if((c[$+404>>2]|0)!=0?(W=$+68|0,(c[W>>2]|0)==0):0)c[W>>2]=1;wh(y,$);c[$+12>>2]=101;a[$+16>>0]=0}else Z=48}else Z=48;if((Z|0)==48)c[$+12>>2]=1;c[$+68>>2]=0;c[$+72>>2]=0;c[$+76>>2]=0;c[$+440>>2]=0;c[$+332>>2]=0}break}case 58:{c[v>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[v+4>>2]=c[f+(aa+-1<<4)+16>>2];c[v+8>>2]=c[f+(aa<<4)+24>>2];Uq($,v);break}case 59:{_=f+(aa<<4)+16|0;c[u>>2]=Vq($,97,0,0,_)|0;_=c[_>>2]|0;c[u+4>>2]=_;c[u+8>>2]=_+(c[f+(aa<<4)+20>>2]|0);Uq($,u);break}case 61:{k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(s=b[l+38>>1]|0,s<<16>>16>=1):0)a[(c[l+4>>2]|0)+(((s<<16>>16)+-1|0)*24|0)+20>>0]=k;break}case 70:{c[ca>>2]=0;break}case 62:{Wq($,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0);break}case 63:{Xq($,0,0,0,0,c[f+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 64:{Yq($,c[f+(aa+-1<<4)+16>>2]|0);break}case 9:{l=c[f+(aa+-1<<4)+16>>2]|0;k=c[$>>2]|0;if((Oq($,22,37104,0,0)|0)==0?(B=Kq($)|0,(B|0)!=0):0){if((l|0)!=7?(D=k+20|0,(c[D>>2]|0)>0):0){l=(l|0)==9?2:1;k=B+96|0;n=0;do{sh(B,4,n,l,0)|0;c[k>>2]=c[k>>2]|1<<n;n=n+1|0}while((n|0)<(c[D>>2]|0))}sh(B,3,0,0,0)|0}break}case 24:{Pq($,2,f+(aa<<4)+16|0);break}case 26:{Qq($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,0,0,c[f+(aa+-2<<4)+16>>2]|0);break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[ca>>2]=0;break}case 27:{a[(c[$>>2]|0)+250>>0]=0;Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[ca>>2]=1;break}case 32:{Rq($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,a[f+(aa<<4)+16>>0]|0,0);break}case 33:{_=f+(aa<<4)+16|0;Rq($,0,0,0,c[_>>2]|0);Ik(c[$>>2]|0,c[_>>2]|0,1);break}case 34:{a[ca>>0]=0;break}case 35:{l=c[f+(aa<<4)+20>>2]|0;k=c[f+(aa<<4)+16>>2]|0;if((l|0)==5?(Bc(k,20456,5)|0)==0:0){a[ca>>0]=32;break a}a[ca>>0]=0;c[_>>2]=l;c[_+4>>2]=k;ph($,20464,_);break}case 44:{l=f+(aa<<4)+16|0;k=c[$+484>>2]|0;if((k|0)!=0?(G=b[k+38>>1]|0,G<<16>>16>=1):0){_=(G<<16>>16)+-1|0;Z=c[k+4>>2]|0;$=Sq(c[$>>2]|0,l)|0;c[Z+(_*24|0)+12>>2]=$;a[Z+(_*24|0)+21>>0]=Tq($,Z+(_*24|0)+22|0)|0}break}case 65:{Zq($,0,f+(aa+-2<<4)+16|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 66:{k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(r=c[l+16>>2]|0,(r|0)!=0):0)a[r+24>>0]=k;break}case 67:{n=c[$+484>>2]|0;if((n|0)!=0?(A=(b[n+38>>1]|0)+-1|0,o=c[$>>2]|0,m=Sq(o,f+(aa<<4)+16|0)|0,(m|0)!=0):0){if(!(_q($,m)|0)){ig(o,m);break a}p=n+4|0;ig(o,c[(c[p>>2]|0)+(A*24|0)+16>>2]|0);c[(c[p>>2]|0)+(A*24|0)+16>>2]=m;l=c[n+8>>2]|0;if(l)do{if((b[c[l+4>>2]>>1]|0)==(A|0))c[c[l+32>>2]>>2]=c[(c[p>>2]|0)+(A*24|0)+16>>2];l=c[l+20>>2]|0}while((l|0)!=0)}break}case 47:{$=c[f+(aa+-5<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 49:{$=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 92:case 54:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=$+320|0;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 57:case 55:{Uq($,f+(aa<<4)+16|0);break}case 56:{Uq($,f+(aa+-1<<4)+16|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 46:{$=c[f+(aa+-3<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 224:{h=Vq($,119,0,0,0)|0;c[ca>>2]=h;if(!h)Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];_=c[ca>>2]|0;Z=_+4|0;c[Z>>2]=c[Z>>2]|2099200;ur($,_)}c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 226:{l=aa+-1|0;k=f+(l<<4)+16|0;o=f+(aa<<4)+16|0;n=lr(c[$>>2]|0,0,k,o)|0;p=aa+-3|0;m=Vq($,75,c[f+(p<<4)+16>>2]|0,0,0)|0;c[ca>>2]=m;if(!m){zo(c[$>>2]|0,n);n=0}else{c[m+20>>2]=gr($,0,n,0,0,0,0,0,0,0)|0;n=c[ca>>2]|0;_=n+4|0;c[_>>2]=c[_>>2]|2099200;ur($,n)}if(c[f+(aa+-2<<4)+16>>2]|0)c[ca>>2]=Vq($,19,n,0,0)|0;c[ca+4>>2]=c[f+(p<<4)+20>>2];h=c[o>>2]|0;if(!h)h=(c[k>>2]|0)+(c[f+(l<<4)+20>>2]|0)|0;else h=h+(c[f+(aa<<4)+20>>2]|0)|0;c[ca+8>>2]=h;break}case 225:{l=aa+-4|0;h=Vq($,75,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);h=0}else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];h=c[ca>>2]|0;_=h+4|0;c[_>>2]=c[_>>2]|2099200;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 227:{h=Vq($,20,0,0,0)|0;c[ca>>2]=h;if(!h)Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];_=h+4|0;c[_>>2]=c[_>>2]|2099200;ur($,h)}c[ca+4>>2]=c[f+(aa+-3<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 228:{k=Vq($,136,c[f+(aa+-3<<4)+16>>2]|0,0,0)|0;c[ca>>2]=k;if(!k){Jk(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0);Ck(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)}else{l=c[f+(aa+-1<<4)+16>>2]|0;h=c[f+(aa+-2<<4)+16>>2]|0;if(l)h=hr($,h,l)|0;c[k+20>>2]=h;ur($,c[ca>>2]|0)}c[ca+4>>2]=c[f+(aa+-4<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 291:case 240:{c[ca>>2]=2;break}case 241:{c[ca>>2]=0;break}case 239:{Xq($,f+(aa+-7<<4)+16|0,f+(aa+-6<<4)+16|0,lr(c[$>>2]|0,0,f+(aa+-4<<4)+16|0,0)|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-10<<4)+16>>2]|0,f+(aa+-11<<4)+16|0,c[f+(aa<<4)+16>>2]|0,0,c[f+(aa+-8<<4)+16>>2]|0)|0;break}case 229:{c[ca>>2]=hr($,hr($,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 230:{c[ca>>2]=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 237:{c[ca>>2]=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 238:{c[ca>>2]=hr($,0,c[f+(aa<<4)+16>>2]|0)|0;break}case 245:{h=hr($,0,rr($,0,f+(aa+-1<<4)+16|0,1)|0)|0;c[ca>>2]=h;ir($,h,f+(aa+-2<<4)+16|0,1);if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20632;ph($,34544,_)}a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2]}break}case 244:{h=rr($,0,f+(aa+-1<<4)+16|0,1)|0;h=hr($,c[f+(aa+-4<<4)+16>>2]|0,h)|0;c[ca>>2]=h;ir($,h,f+(aa+-2<<4)+16|0,1);if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20632;ph($,34544,_)}a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2]}break}case 248:{s=c[f+(aa<<4)+16>>2]|0;p=c[f+(aa+-1<<4)+16>>2]|0;r=c[$>>2]|0;do if((a[r+65>>0]|0)==0?(Cn($)|0)==0:0){o=s+12|0;k=Zp(r,c[s+16>>2]|0,c[o>>2]|0)|0;if(!k){if(!p){c[_>>2]=s;c[_+4>>2]=0;ph($,33056,_)}else vr($,c[o>>2]|0);a[$+17>>0]=1;break}if(a[k+51>>0]&3){c[_>>2]=0;ph($,33080,_);break}p=c[k+24>>2]|0;f:do if(p){o=c[r+20>>2]|0;if((o|0)>0){n=c[r+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0)){m=q;break f}if((m|0)<(o|0))q=m;else break}}else m=0}else m=-1e6;while(0);p=c[k+12>>2]|0;o=r+16|0;n=c[(c[o>>2]|0)+(m<<4)>>2]|0;l=(m|0)==1?13184:13208;if(((Oq($,9,l,0,n)|0)==0?(Oq($,(m|0)==0?10:12,c[k>>2]|0,c[p>>2]|0,n)|0)==0:0)?(H=Kq($)|0,(H|0)!=0):0){Z=c[$+408>>2]|0;Z=(Z|0)==0?$:Z;wr($,m);Y=Z+328|0;c[Y>>2]=c[Y>>2]|1<<m;Z=Z+20|0;a[Z>>0]=d[Z>>0]|1;Z=c[k>>2]|0;c[_>>2]=c[(c[o>>2]|0)+(m<<4)>>2];c[_+4>>2]=l;c[_+8>>2]=Z;xr($,33160,_);yr($,m,28536,c[k>>2]|0);zr($,m);Ar($,c[k+40>>2]|0,m);$=c[k>>2]|0;th(H,sh(H,125,m,0,0)|0,$,0)}}while(0);zo(r,s);break}case 246:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 250:case 249:{h=Kq($)|0;if(h){sh(h,13,0,0,0)|0;$=h+96|0;c[$>>2]=c[$>>2]|1}break}case 251:{Br($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0,0,0);break}case 252:{Br($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa<<4)+16|0,0);break}case 253:{Br($,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,f+(aa+-1<<4)+16|0,0);break}case 254:{Br($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa<<4)+16|0,1);break}case 255:{Br($,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,f+(aa+-1<<4)+16|0,1);break}case 264:{h=c[f+(aa+-3<<4)+16>>2]|0;l=(c[f+(aa<<4)+16>>2]|0)-h+(c[f+(aa<<4)+20>>2]|0)|0;k=c[f+(aa+-1<<4)+16>>2]|0;Z=$+488|0;w=c[Z>>2]|0;x=c[$>>2]|0;c[Z>>2]=0;g:do if((c[$+64>>2]|0)==0&(w|0)!=0){v=c[w>>2]|0;m=w+20|0;s=c[m>>2]|0;h:do if(s){r=c[x+20>>2]|0;if((r|0)>0){p=c[x+16>>2]|0;n=0;while(1){o=n+1|0;if((c[p+(n<<4)+12>>2]|0)==(s|0))break h;if((o|0)<(r|0))n=o;else{n=o;break}}}else n=0}else n=-1e6;while(0);c[w+28>>2]=k;u=(k|0)==0;if(!u){p=k;do{c[p+4>>2]=w;p=c[p+32>>2]|0}while((p|0)!=0)}c[X>>2]=v;if(!v)p=0;else{p=v;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;p=p-v&1073741823}c[X+4>>2]=p;c[Y>>2]=$;t=x+16|0;s=c[t>>2]|0;c[Y+12>>2]=c[s+(n<<4)>>2];c[Y+4>>2]=c[s+(n<<4)+12>>2];c[Y+16>>2]=10720;c[Y+20>>2]=X;s=(n|0)==1;c[Y+8>>2]=s&1;if(!u)do{if(br(Y,c[k+8>>2]|0)|0){k=0;l=w;break g}if(Cr(Y,c[k+20>>2]|0)|0){k=0;l=w;break g}if(Dr(Y,c[k+24>>2]|0)|0){k=0;l=w;break g}k=c[k+32>>2]|0}while((k|0)!=0);if(!(Cr(Y,c[w+12>>2]|0)|0)){p=x+145|0;if(!(a[p>>0]|0)){o=Kq($)|0;if(!o){k=0;l=w;break}Z=c[$+408>>2]|0;wr($,n);Z=((Z|0)==0?$:Z)+328|0;c[Z>>2]=c[Z>>2]|1<<n;if((h|0)!=0?(q=fw(l|0,0,1,0)|0,q=ih(x,q,C)|0,(q|0)!=0):0){gw(q|0,h|0,l|0)|0;a[q+l>>0]=0}else q=0;Z=c[w+4>>2]|0;c[_>>2]=c[(c[t>>2]|0)+(n<<4)>>2];c[_+4>>2]=s?13184:13208;c[_+8>>2]=v;c[_+12>>2]=Z;c[_+16>>2]=q;xr($,30008,_);ig(x,q);zr($,n);c[_>>2]=v;Er(o,n,qh(x,30072,_)|0);if(!(a[p>>0]|0)){k=0;l=w;break}}l=Ek((c[(c[t>>2]|0)+(n<<4)+12>>2]|0)+40|0,v,w)|0;if(l){a[x+65>>0]=1;k=0;break}k=c[m>>2]|0;if((k|0)==(c[w+24>>2]|0)){k=Zm(k+8|0,c[w+4>>2]|0,_)|0;if(!k)k=0;else k=c[k+8>>2]|0;k=k+64|0;c[w+32>>2]=c[k>>2];c[k>>2]=w;k=0}else k=0}else{k=0;l=w}}else l=w;while(0);fg(x,l);Bk(x,k);break}case 265:{A=f+(aa+-7<<4)+16|0;z=aa+-6|0;B=f+(z<<4)+16|0;o=c[f+(aa+-5<<4)+16>>2]|0;D=aa+-4|0;y=c[f+(D<<4)+16>>2]|0;D=c[f+(D<<4)+20>>2]|0;E=c[f+(aa+-2<<4)+16>>2]|0;F=c[f+(aa<<4)+16>>2]|0;k=c[f+(aa+-8<<4)+16>>2]|0;G=c[$>>2]|0;w=(c[f+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(c[f+(z<<4)+20>>2]|0)){c[Y>>2]=A;if(!E){p=0;q=0;break}else{s=1;Z=483;break}}else{ph($,29664,_);p=0;q=0;break}else{s=ar($,A,B,Y)|0;if((s|0)>-1&(E|0)!=0)Z=483;else{p=0;q=0}}while(0);do if((Z|0)==483){h=G+65|0;if(!(a[h>>0]|0)){u=G+145|0;if((a[u>>0]|0)!=0&(s|0)!=1){Z=E+12|0;ig(G,c[Z>>2]|0);c[Z>>2]=0}t=Fr($,E)|0;if((a[u>>0]|0)==0?((t|0)!=0?(c[f+(z<<4)+20>>2]|0)==0:0):0)s=(c[t+68>>2]|0)==(c[(c[G+16>>2]|0)+28>>2]|0)?1:s;if((a[h>>0]|0)==0?(O=c[Y>>2]|0,Z=c[$>>2]|0,c[X>>2]=$,Z=c[Z+16>>2]|0,c[X+12>>2]=c[Z+(s<<4)>>2],c[X+4>>2]=c[Z+(s<<4)+12>>2],c[X+16>>2]=10720,c[X+20>>2]=O,c[X+8>>2]=(s|0)==1&1,(Gr(X,E)|0)==0):0){u=Fr($,E)|0;if(!u){if((a[G+144>>0]|0)!=1){p=0;q=0;break}a[G+146>>0]=1;p=0;q=0;break}if(a[u+44>>0]&16){ph($,29712,_);p=0;q=0;break}q=Sq(G,O)|0;if(q)if(!(Hr($,q)|0)){x=G+16|0;Z=Zm((c[(c[x>>2]|0)+(s<<4)+12>>2]|0)+40|0,q,P)|0;if((Z|0)!=0?(c[Z+8>>2]|0)!=0:0)if(!k){c[_>>2]=O;ph($,29760,_);p=0;break}else{wr($,s);p=0;break}v=c[u>>2]|0;if(!(Bc(v,25568,7)|0)){ph($,29792,_);p=$+64|0;c[p>>2]=(c[p>>2]|0)+1;p=0;break}r=c[u+12>>2]|0;if((r|0)!=0&(o|0)!=49){c[_>>2]=(o|0)==35?29872:29880;c[_+4>>2]=E;c[_+8>>2]=0;ph($,29832,_);p=0;break}n=(o|0)==49;if((r|0)==0&n){c[_>>2]=E;c[_+4>>2]=0;ph($,29888,_);p=0;break}m=u+68|0;u=c[m>>2]|0;i:do if(u){t=c[G+20>>2]|0;if((t|0)>0){k=c[x>>2]|0;l=0;while(1){h=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(u|0)){h=l;break i}if((h|0)<(t|0))l=h;else break}}else h=0}else h=-1e6;while(0);u=c[x>>2]|0;k=c[u+(h<<4)>>2]|0;if(w)t=c[u+16>>2]|0;else t=k;u=(h|0)==1;if((Oq($,u|w?5:7,q,v,t)|0)==0?(Oq($,18,u?13184:13208,0,k)|0)==0:0){p=ih(G,36,0)|0;if(!p){p=0;break}v=p+0|0;k=v+36|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));c[p>>2]=q;c[p+4>>2]=gh(G,c[E+16>>2]|0)|0;c[p+20>>2]=c[(c[x>>2]|0)+(s<<4)+12>>2];c[p+24>>2]=c[m>>2];a[p+8>>0]=y;a[p+9>>0]=n|(o|0)==35?1:2;c[p+12>>2]=Ir(G,F,1,0)|0;c[p+16>>2]=Jr(G,D)|0;c[$+488>>2]=p;q=0}else p=0}else p=0;else{p=0;q=0}}else{p=0;q=0}}else{p=0;q=0}}while(0);ig(G,q);zo(G,E);Dk(G,D);Ck(G,F);if(!(c[$+488>>2]|0))fg(G,p);if(!(c[f+(z<<4)+20>>2]|0)){Z=A;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break a}else{Z=B;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break a}}case 269:case 266:{c[ca>>2]=35;break}case 267:{c[ca>>2]=31;break}case 268:{c[ca>>2]=49;break}case 284:{l=c[$>>2]|0;k=c[f+(aa+-1<<4)+16>>2]|0;h=c[f+(aa<<4)+16>>2]|0;m=a[f+(aa+-5<<4)+16>>0]|0;n=Kr(l,110,f+(aa+-4<<4)+16|0)|0;if(n){c[n+24>>2]=Lr(l,k,1)|0;c[n+20>>2]=Ir(l,h,1,0)|0;a[n+1>>0]=m}Jk(l,k);Ck(l,h);c[ca>>2]=n;break}case 271:case 270:{c[ca>>2]=d[f+(aa<<4)+14>>0];c[ca+4>>2]=0;break}case 272:{c[ca>>2]=110;c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 296:case 275:{c[ca>>2]=0;break}case 297:case 276:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 277:{_=f+(aa+-1<<4)+16|0;$=f+(aa+-2<<4)+16|0;c[(c[(c[$>>2]|0)+36>>2]|0)+32>>2]=c[_>>2];c[(c[$>>2]|0)+36>>2]=c[_>>2];c[ca>>2]=c[$>>2];break}case 278:{$=f+(aa+-1<<4)+16|0;_=c[$>>2]|0;c[_+36>>2]=_;c[ca>>2]=c[$>>2];break}case 282:{ph($,20736,_);break}case 280:{X=f+(aa<<4)+16|0;Y=c[X+4>>2]|0;Z=ca;c[Z>>2]=c[X>>2];c[Z+4>>2]=Y;ph($,20640,_);break}case 283:{ph($,20824,_);break}case 286:{h=c[$>>2]|0;k=c[f+(aa<<4)+16>>2]|0;l=Kr(h,109,f+(aa+-2<<4)+16|0)|0;if(l){c[l+20>>2]=Ir(h,k,1,0)|0;a[l+1>>0]=10}Ck(h,k);c[ca>>2]=l;break}case 287:{l=c[$>>2]|0;n=c[f+(aa<<4)+16>>2]|0;h=ih(l,40,0)|0;if(!h){Ik(l,n,1);h=0}else{v=h+0|0;k=v+40|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));a[h>>0]=119;c[h+8>>2]=n;a[h+1>>0]=10}c[ca>>2]=h;break}case 285:{n=c[$>>2]|0;m=c[f+(aa+-1<<4)+16>>2]|0;l=c[f+(aa<<4)+16>>2]|0;k=a[f+(aa+-4<<4)+16>>0]|0;h=Kr(n,108,f+(aa+-2<<4)+16|0)|0;if(!h)Dk(n,m);else{c[h+8>>2]=cr(n,l,1)|0;c[h+28>>2]=m;a[h+1>>0]=k}Ik(n,l,1);c[ca>>2]=h;break}case 288:{h=Vq($,57,0,0,0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=4;c[ca+4>>2]=c[f+(aa+-3<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 289:{h=Vq($,57,0,0,f+(aa+-1<<4)+16|0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=c[f+(aa+-3<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 290:{c[ca>>2]=1;break}case 292:{c[ca>>2]=3;break}case 293:{k=c[f+(aa<<4)+16>>2]|0;h=c[f+(aa+-1<<4)+16>>2]|0;t=c[$>>2]|0;do if((a[t+65>>0]|0)==0?(Cn($)|0)==0:0){u=c[k+12>>2]|0;s=c[k+16>>2]|0;r=t+20|0;if((c[r>>2]|0)>0){n=(u|0)==0;m=t+16|0;l=0;p=0;do{o=(l|0)<2^l;q=c[m>>2]|0;if(!(!n?($c(c[q+(o<<4)>>2]|0,u)|0)!=0:0)){q=Zm((c[q+(o<<4)+12>>2]|0)+40|0,s,I)|0;if(q){p=c[q+8>>2]|0;if(p)break}else p=0}l=l+1|0}while((l|0)<(c[r>>2]|0));if(p){Mr($,p);break}}if(!h){c[_>>2]=k;c[_+4>>2]=0;ph($,29600,_)}else vr($,u);a[$+17>>0]=1}while(0);zo(t,k);break}case 294:{_=c[f+(aa+-3<<4)+16>>2]|0;Nr($,24,29360,_,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 303:{Pr($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 304:{w=c[f+(aa+-3<<4)+16>>2]|0;u=f+(aa<<4)+16|0;v=c[$>>2]|0;k=v+24|0;l=c[k>>2]|0;do if((a[v+65>>0]|0)==0?(U=Qr($,0,w+8|0)|0,(U|0)!=0):0){q=c[$>>2]|0;x=U+68|0;s=c[x>>2]|0;j:do if(s){r=c[q+20>>2]|0;if((r|0)>0){q=c[q+16>>2]|0;o=0;while(1){p=o+1|0;if((c[q+(o<<4)+12>>2]|0)==(s|0)){p=o;break j}if((p|0)<(r|0))o=p;else break}}else p=0}else p=-1e6;while(0);h=c[(c[v+16>>2]|0)+(p<<4)>>2]|0;c[k>>2]=c[k>>2]|2097152;n=Sq(v,u)|0;if(n){if((Wh(v,n,h)|0)==0?(Zp(v,n,h)|0)==0:0){if(Rr($,c[U>>2]|0)|0)break;if(Hr($,n)|0)break;q=c[U>>2]|0;if(c[U+12>>2]|0){c[_>>2]=q;ph($,26088,_);break}if(Oq($,26,h,q,0)|0)break;if(dr($,U)|0)break;if(!(a[U+44>>0]&16))m=0;else{q=c[U+60>>2]|0;k:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break k;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);m=(c[(c[c[q+8>>2]>>2]|0)+76>>2]|0)==0?0:q}q=Kq($)|0;if(!q)break;Z=(m|0)!=0;o=$+408|0;Y=c[o>>2]|0;Y=(Y|0)==0?$:Y;wr($,p);X=Y+328|0;c[X>>2]=c[X>>2]|1<<p;Y=Y+20|0;a[Y>>0]=d[Y>>0]|Z&1;zr($,p);if(Z){Y=$+72|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;th(q,sh(q,97,0,Z,0)|0,n,0);th(q,sh(q,152,Z,0,0)|0,m,-10);Z=c[o>>2]|0;a[((Z|0)==0?$:Z)+21>>0]=1}u=c[U>>2]|0;t=Jn(u,-1)|0;do if((c[k>>2]&524288|0)!=0?(Q=Zm((c[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){q=c[Q+8>>2]|0;if(!q)break;o=q;q=0;do{q=Sr(c[$>>2]|0,q,c[c[o>>2]>>2]|0)|0;o=c[o+12>>2]|0}while((o|0)!=0);if(!q)break;c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=u;c[_+12>>2]=n;c[_+16>>2]=q;xr($,26120,_);ig(v,q)}while(0);c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=n;c[_+12>>2]=n;c[_+16>>2]=n;c[_+20>>2]=n;c[_+24>>2]=n;c[_+28>>2]=t;c[_+32>>2]=u;xr($,26192,_);if(Wh(v,26576,h)|0){Z=c[U>>2]|0;c[_>>2]=h;c[_+4>>2]=n;c[_+8>>2]=Z;xr($,26592,_)}p=Tr($,U)|0;if(p){c[_>>2]=n;c[_+4>>2]=n;c[_+8>>2]=p;xr($,26656,_);ig(v,p)}do if(c[k>>2]&524288){p=Zm((c[x>>2]|0)+56|0,c[U>>2]|0,_)|0;if(!p)break;p=c[p+8>>2]|0;if(!p)break;do{o=c[p>>2]|0;if((o|0)!=(U|0))Ur($,o,c[o>>2]|0);p=c[p+12>>2]|0}while((p|0)!=0)}while(0);Ur($,U,n);break}c[_>>2]=n;ph($,26024,_)}else n=0}else n=0;while(0);zo(v,w);ig(v,n);c[k>>2]=l;break}case 295:{_=c[f+(aa<<4)+16>>2]|0;Nr($,25,29176,_,0,0,_);break}case 300:{Or($,0,0);break}case 302:{Pr($,0,0);break}case 301:{Or($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 305:{v=c[$>>2]|0;if((c[$+64>>2]|0)==0?(J=v+65|0,(a[J>>0]|0)==0):0){l=c[$+484>>2]|0;q=c[l+68>>2]|0;l:do if(q){p=c[v+20>>2]|0;if((p|0)>0){o=c[v+16>>2]|0;m=0;while(1){n=m+1|0;if((c[o+(m<<4)+12>>2]|0)==(q|0)){x=m;break l}if((n|0)<(p|0))m=n;else{x=n;break}}}else x=0}else x=-1e6;while(0);h=c[(c[v+16>>2]|0)+(x<<4)>>2]|0;k=(c[l>>2]|0)+16|0;r=(b[l+38>>1]|0)+-1|0;p=c[l+4>>2]|0;q=c[p+(r*24|0)+4>>2]|0;w=Wh(v,k,h)|0;if(!(Oq($,26,h,c[w>>2]|0,0)|0)){if(!q)s=0;else s=(a[q>>0]|0)==101?0:q;if(a[p+(r*24|0)+23>>0]&1){ph($,25608,_);break a}if(c[l+8>>2]|0){ph($,25640,_);break a}u=v+24|0;if((c[u>>2]&524288|0)!=0?(c[l+16>>2]|0)!=0&(s|0)!=0:0){ph($,25672,_);break a}t=(s|0)!=0;if(!((a[p+(r*24|0)+20>>0]|0)==0|t)){ph($,25736,_);break a}do if(t){c[L>>2]=0;if(Vr(v,s,1,65,L)|0){a[J>>0]=1;break a}q=c[L>>2]|0;if(!q){ph($,25792,_);break a}else{Ih(q);break}}while(0);q=c[f+(aa<<4)+16>>2]|0;p=f+(aa<<4)+20|0;o=c[p>>2]|0;if((q|0)!=0?(R=fw(o|0,0,1,0)|0,R=ih(v,R,C)|0,(R|0)!=0):0){gw(R|0,q|0,o|0)|0;a[R+o>>0]=0;q=(c[p>>2]|0)+-1|0;p=c[u>>2]|0;m:do if((q|0)>0){q=R+q|0;do{Y=a[q>>0]|0;if(Y<<24>>24!=59?(a[10368+(Y&255)>>0]&1)==0:0)break m;a[q>>0]=0;q=q+-1|0}while(q>>>0>R>>>0)}while(0);c[u>>2]=c[u>>2]|2097152;Y=c[l+48>>2]|0;c[_>>2]=h;c[_+4>>2]=(x|0)==1?13184:13208;c[_+8>>2]=Y;c[_+12>>2]=R;c[_+16>>2]=Y+1;c[_+20>>2]=k;xr($,25840,_);ig(v,R);c[u>>2]=p}q=t?3:2;s=Kq($)|0;if(s){p=$+19|0;n=a[p>>0]|0;do if(n<<24>>24){_=n+-1<<24>>24;a[p>>0]=_;o=c[$+((_&255)<<2)+24>>2]|0;if(!(_<<24>>24)){p=c[$+72>>2]|0;Z=663;break}else{k=n+-2<<24>>24;a[p>>0]=k;k=c[$+((k&255)<<2)+24>>2]|0;break}}else{o=$+72|0;p=(c[o>>2]|0)+1|0;c[o>>2]=p;o=p;Z=663}while(0);if((Z|0)==663){k=p+1|0;c[$+72>>2]=k}sh(s,51,x,o,2)|0;m=s+96|0;c[m>>2]=c[m>>2]|1<<x;sh(s,25,q,k,0)|0;m=sh(s,83,k,0,o)|0;l=s+4|0;n=c[l>>2]|0;p=s+32|0;if(n)a[n+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=-112;sh(s,52,x,2,k)|0;p=c[p>>2]|0;if(p>>>0>m>>>0)c[(c[l>>2]|0)+(m*20|0)+8>>2]=p;c[(c[s+24>>2]|0)+88>>2]=p+-1;Wr($,o);Wr($,k)}Ur($,w,c[w>>2]|0)}}break}case 306:{t=c[$>>2]|0;a[t+250>>0]=0;h=c[f+(aa<<4)+16>>2]|0;u=t+65|0;do if((a[u>>0]|0)==0?(N=Qr($,0,h+8|0)|0,(N|0)!=0):0){if(a[N+44>>0]&16){ph($,25400,_);break}if(c[N+12>>2]|0){ph($,25440,_);break}if(!(Rr($,c[N>>2]|0)|0)){p=c[N+68>>2]|0;n:do if(p){o=c[t+20>>2]|0;if((o|0)>0){n=c[t+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0)){m=q;break n}if((m|0)<(o|0))q=m;else break}}else m=0}else m=-1e6;while(0);s=ih(t,76,0)|0;if(s){v=s+0|0;k=v+76|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));c[$+484>>2]=s;o=s+40|0;b[o>>1]=1;q=b[N+38>>1]|0;n=s+38|0;b[n>>1]=q;q=((((q<<16>>16)+-1|0)/8|0)*192|0)+192|0;p=ih(t,q,0)|0;if(p)bw(p|0,0,q|0)|0;q=s+4|0;c[q>>2]=p;c[_>>2]=c[N>>2];_=qh(t,25472,_)|0;c[s>>2]=_;p=c[q>>2]|0;if((p|0)==0|(_|0)==0){a[u>>0]=1;break}gw(p|0,c[N+4>>2]|0,(b[n>>1]|0)*24|0)|0;if((b[n>>1]|0)>0){p=0;do{_=c[q>>2]|0;Z=_+(p*24|0)|0;c[Z>>2]=gh(t,c[Z>>2]|0)|0;_=_+(p*24|0)+4|0;p=p+1|0;c[_+0>>2]=0;c[_+4>>2]=0;c[_+8>>2]=0;c[_+12>>2]=0}while((p|0)<(b[n>>1]|0))}c[s+68>>2]=c[(c[t+16>>2]|0)+(m<<4)+12>>2];c[s+48>>2]=c[N+48>>2];b[o>>1]=1;_=c[$+408>>2]|0;wr($,m);_=((_|0)==0?$:_)+328|0;c[_>>2]=c[_>>2]|1<<m;if(Kq($)|0)zr($,m)}}}while(0);zo(t,h);break}case 309:{Xr($,0);break}case 310:{Xr($,f+(aa<<4)+16|0);break}case 311:{k=f+(aa<<4)+16|0;Qq($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,0,0,1,c[f+(aa+-4<<4)+16>>2]|0);q=c[$+484>>2]|0;if(q){h=c[$>>2]|0;p=c[q+68>>2]|0;o:do if(p){o=c[h+20>>2]|0;if((o|0)>0){m=c[h+16>>2]|0;l=0;while(1){n=l+1|0;if((c[m+(l<<4)+12>>2]|0)==(p|0)){n=l;break o}if((n|0)<(o|0))l=n;else break}}else n=0}else n=-1e6;while(0);l=q+44|0;a[l>>0]=d[l>>0]|16;c[q+52>>2]=0;Yr(h,q,Sq(h,k)|0);Yr(h,q,0);Yr(h,q,gh(h,c[q>>2]|0)|0);c[$+500>>2]=(c[k>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-(c[$+496>>2]|0);l=c[q+56>>2]|0;if(l)Oq($,29,c[q>>2]|0,c[l>>2]|0,c[(c[(c[$>>2]|0)+16>>2]|0)+(n<<4)>>2]|0)|0}break}case 322:{c[ca>>2]=0;break}case 324:case 323:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 325:{c[ca>>2]=_r($,0,f+(aa+-5<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;break}case 326:{c[ca>>2]=_r($,c[f+(aa+-7<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;break}case 314:{Zr($);c[$+512>>2]=0;c[$+516>>2]=0;break}case 318:case 317:case 316:{l=$+512|0;k=c[l>>2]|0;h=c[f+(aa<<4)+16>>2]|0;if(!k){c[l>>2]=h;h=c[f+(aa<<4)+20>>2]|0}else h=h+(c[f+(aa<<4)+20>>2]|0)-k|0;c[$+516>>2]=h;break}case 13:{c[ca>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[ca>>2]=d[f+(aa<<4)+14>>0];break}case 18:case 17:{if((Oq($,22,37136,0,0)|0)==0?(y=Kq($)|0,(y|0)!=0):0)sh(y,3,1,0,0)|0;break}case 19:{if((Oq($,22,37120,0,0)|0)==0?(x=Kq($)|0,(x|0)!=0):0)sh(x,3,1,1,0)|0;break}case 74:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=255;break}case 76:{c[ca>>2]=7;break}case 75:{c[ca>>2]=c[f+(aa<<4)+16>>2]<<8;c[ca+4>>2]=65280;break}case 77:{c[ca>>2]=8;break}case 78:{c[ca>>2]=9;break}case 79:{c[ca>>2]=6;break}case 80:{c[ca>>2]=0;break}case 103:case 100:case 98:case 82:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 86:{c[ca+4>>2]=0;c[ca>>2]=0;break}case 71:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2]&~c[f+(aa<<4)+20>>2]|c[f+(aa<<4)+16>>2];break}case 73:case 72:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 93:{Wq($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,0);break}case 94:{Xq($,0,0,0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 95:{Yq($,c[f+(aa+-2<<4)+16>>2]|0);break}case 87:{Z=f+(aa+-1<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 90:{c[$+324>>2]=0;break}case 104:{c[ca>>2]=4;break}case 105:{c[ca>>2]=5;break}case 106:{$q($,c[f+(aa<<4)+16>>2]|0,0,c[f+(aa+-1<<4)+16>>2]|0);break}case 109:{h=aa+-7|0;o=f+(aa+-3<<4)+16|0;n=f+(aa+-2<<4)+16|0;u=c[f+(aa<<4)+16>>2]|0;q=c[f+(aa+-6<<4)+16>>2]|0;p=c[f+(aa+-4<<4)+16>>2]|0;c[F>>2]=0;t=c[$>>2]|0;if((c[$+440>>2]|0)>0){ph($,35440,_);Ik(t,u,1);break a}Qq($,o,n,q,1,0,p);l=c[$+484>>2]|0;if((l|0)!=0?(c[$+64>>2]|0)==0:0){ar($,o,n,F)|0;q=c[l+68>>2]|0;p:do if(q){o=c[t+20>>2]|0;if((o|0)>0){n=c[t+16>>2]|0;m=0;while(1){p=m+1|0;if((c[n+(m<<4)+12>>2]|0)==(q|0)){p=m;break p}if((p|0)<(o|0))m=p;else break}}else p=0}else p=-1e6;while(0);_=c[F>>2]|0;Z=c[$>>2]|0;c[X>>2]=$;Z=c[Z+16>>2]|0;c[X+12>>2]=c[Z+(p<<4)>>2];c[X+4>>2]=c[Z+(p<<4)+12>>2];c[X+16>>2]=35480;c[X+20>>2]=_;c[X+8>>2]=(p|0)==1&1;if(br(X,u)|0){Ik(t,u,1);break a}c[l+12>>2]=cr(t,u,1)|0;Ik(t,u,1);if(a[t+65>>0]|0)break a;if(!(a[t+145>>0]|0))dr($,l)|0;n=$+504|0;m=c[n>>2]|0;n=c[n+4>>2]|0;_=Y;c[_>>2]=m;c[_+4>>2]=n;_=a[m>>0]|0;if(!(_<<24>>24==59|_<<24>>24==0)){m=m+n|0;c[Y>>2]=m}o=Y+4|0;c[o>>2]=0;p=c[f+(h<<4)+16>>2]|0;n=m-p|0;do{_=n;n=n+-1|0;l=p+n|0;if((_|0)<=0)break}while((a[10368+(d[l>>0]|0)>>0]&1)!=0);c[Y>>2]=l;c[o>>2]=1;Rq($,0,Y,0,0);break a}Ik(t,u,1);break}case 96:{Zq($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-3<<4)+16|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0);k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(n=c[l+16>>2]|0,(n|0)!=0):0)a[n+24>>0]=k;break}case 99:{c[ca>>2]=10;break}case 101:{a[ca>>0]=10;break}case 102:{a[ca>>0]=c[f+(aa<<4)+16>>2];break}case 110:{$q($,c[f+(aa<<4)+16>>2]|0,1,c[f+(aa+-1<<4)+16>>2]|0);break}case 111:{c[w+0>>2]=c[5124];c[w+4>>2]=c[5125];c[w+8>>2]=c[5126];c[w+12>>2]=c[5127];c[w+16>>2]=c[5128];_=f+(aa<<4)+16|0;er($,c[_>>2]|0,w)|0;Ik(c[$>>2]|0,c[_>>2]|0,1);break}case 112:{q=c[f+(aa<<4)+16>>2]|0;do if(q){c[q+68>>2]=c[f+(aa+-1<<4)+16>>2];l=c[q+52>>2]|0;if(l){m=128;n=1;o=q;p=0;while(1){c[o+56>>2]=p;Y=o+6|0;Z=e[Y>>1]|64;b[Y>>1]=Z;m=Z&m;if(!l)break;Z=l;l=c[l+52>>2]|0;n=n+1|0;p=o;o=Z}if(m){$=q+6|0;b[$>>1]=e[$>>1]|256;break}Z=c[(c[$>>2]|0)+104>>2]|0;if((Z|0)>0&(n|0)>(Z|0))ph($,20520,_)}}else Mn(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0);while(0);c[ca>>2]=q;break}case 120:{c[ca>>2]=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 118:{c[ca>>2]=gr($,c[f+(aa+-6<<4)+16>>2]|0,c[f+(aa+-5<<4)+16>>2]|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,b[f+(aa+-7<<4)+16>>1]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa<<4)+20>>2]|0)|0;break}case 119:case 113:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 114:{h=c[f+(aa<<4)+16>>2]|0;do if(h){if(c[h+52>>2]|0){c[l+4>>2]=0;h=gr($,0,fr($,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){Z=192;break}}_=c[f+(aa+-1<<4)+16>>2]|0;a[h+4>>0]=_;c[h+52>>2]=c[f+(aa+-2<<4)+16>>2];if((_|0)!=116)a[$+22>>0]=1}else Z=192;while(0);if((Z|0)==192){Ik(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,1);h=0}c[ca>>2]=h;break}case 160:case 158:{c[ca>>2]=0;break}case 159:{c[ca>>2]=1;break}case 165:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 172:{l=c[f+(aa+-7<<4)+16>>2]|0;if(l){Z=$+532|0;c[l+4>>2]=c[Z>>2];c[Z>>2]=l;a[$+449>>0]=1}m=f+(aa+-4<<4)+16|0;kr($,c[m>>2]|0,f+(aa+-3<<4)+16|0);n=f+(aa+-1<<4)+16|0;l=c[n>>2]|0;if(l){if((c[l>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20560;ph($,34544,_);l=c[n>>2]|0}}else l=0;or($,c[m>>2]|0,l,c[f+(aa<<4)+16>>2]|0,d[f+(aa+-5<<4)+16>>0]|0);break}case 176:{h=c[f+(aa+-6<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}pr($,c[f+(aa+-3<<4)+16>>2]|0,0,c[f+(aa+-2<<4)+16>>2]|0,d[f+(aa+-5<<4)+16>>0]|0);break}case 173:{_=hr($,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;ir($,_,f+(aa+-2<<4)+16|0,1);break}case 174:{_=hr($,0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;ir($,_,f+(aa+-2<<4)+16|0,1);break}case 175:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}pr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,d[f+(aa+-4<<4)+16>>0]|0);break}case 181:{c[ca>>2]=qr(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,f+(aa<<4)+16|0)|0;break}case 182:{c[ca>>2]=qr(c[$>>2]|0,0,f+(aa<<4)+16|0)|0;break}case 183:{$=f+(aa<<4)+16|0;c[ca+0>>2]=c[$+0>>2];c[ca+4>>2]=c[$+4>>2];c[ca+8>>2]=c[$+8>>2];break}case 177:{a[ca>>0]=a[f+(aa<<4)+16>>0]|0;break}case 178:{a[ca>>0]=5;break}case 184:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 191:case 190:case 185:{_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,0,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 187:case 186:{_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,27,0,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 188:{Z=f+(aa+-2<<4)+16|0;_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,122,Vq($,27,0,0,Z)|0,Vq($,27,0,0,_)|0,0)|0;c[ca+4>>2]=c[Z>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 189:{Z=f+(aa+-4<<4)+16|0;_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,122,Vq($,27,0,0,Z)|0,Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,Vq($,27,0,0,_)|0,0)|0,0)|0;c[ca+4>>2]=c[Z>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 192:{u=f+(aa<<4)+16|0;t=f+(aa<<4)+20|0;do if(((c[t>>2]|0)>>>0>1?(z=c[u>>2]|0,(a[z>>0]|0)==35):0)?((d[z+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[$+18>>0]|0)){c[_>>2]=u;ph($,20432,_);c[ca>>2]=0;break}o=Vq($,159,0,0,u)|0;c[ca>>2]=o;if(o)zn((c[u>>2]|0)+1|0,o+28|0)|0}else Z=298;while(0);q:do if((Z|0)==298?(M=Vq($,135,0,0,u)|0,c[ca>>2]=M,T=c[u>>2]|0,c[ca+4>>2]=T,c[ca+8>>2]=T+(c[t>>2]|0),T=c[$>>2]|0,(M|0)!=0):0){w=c[M+8>>2]|0;o=w+1|0;do if(a[o>>0]|0){v=(w|0)==0;if(v)x=0;else{q=w;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;x=q-w&1073741823}r:do if((a[w>>0]|0)==63){Y=Ql(o,E,x+-1|0,1)|0;m=E;n=c[m>>2]|0;m=c[m+4>>2]|0;q=n&65535;b[M+32>>1]=q;o=c[T+124>>2]|0;Z=((o|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&n>>>0<1|(Y|0)!=0|((m|0)>(Z|0)|(m|0)==(Z|0)&n>>>0>o>>>0)){c[_>>2]=o;ph($,33296,_);q=0}o=$+440|0;Z=c[o>>2]|0;Y=((Z|0)<0)<<31>>31;if((m|0)>(Y|0)|(m|0)==(Y|0)&n>>>0>Z>>>0)c[o>>2]=n}else{o=c[$+444>>2]|0;s:do if((o|0)>0){n=c[$+472>>2]|0;q=0;l=0;while(1){m=c[n+(q<<2)>>2]|0;if((m|0)!=0?(Wv(m,w)|0)==0:0)break;l=l+1<<16>>16;q=l<<16>>16;if((q|0)>=(o|0)){Z=315;break s}}q=q+1&65535;o=M+32|0;b[o>>1]=q;if(q<<16>>16)break r}else Z=315;while(0);if((Z|0)==315)o=M+32|0;Z=$+440|0;q=(c[Z>>2]|0)+1|0;c[Z>>2]=q;q=q&65535;b[o>>1]=q}while(0);m=q<<16>>16;if(q<<16>>16>0){q=$+444|0;if((m|0)>(c[q>>2]|0)){o=$+472|0;n=no(T,c[o>>2]|0,m<<2,0)|0;if(!n)break q;c[o>>2]=n;Z=c[q>>2]|0;bw(n+(Z<<2)|0,0,m-Z<<2|0)|0;c[q>>2]=m}if((a[w>>0]|0)==63){o=m+-1|0;if(!(c[(c[$+472>>2]|0)+(o<<2)>>2]|0))q=0;else break}else{q=m+-1|0;o=q;q=c[(c[$+472>>2]|0)+(q<<2)>>2]|0}n=$+472|0;ig(T,q);if(!v?(p=fw(x|0,0,1,0)|0,p=ih(T,p,C)|0,(p|0)!=0):0){gw(p|0,w|0,x|0)|0;a[p+x>>0]=0}else p=0;c[(c[n>>2]|0)+(o<<2)>>2]=p}}else{Y=$+440|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;b[M+32>>1]=Z}while(0);if((c[$+64>>2]|0)==0?(c[$+440>>2]|0)>(c[T+124>>2]|0):0)ph($,33344,_)}while(0);$=c[u>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[t>>2]|0);break}case 196:{_=f+(aa+-3<<4)+16|0;c[ca>>2]=sr($,0,_)|0;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 197:{_=f+(aa<<4)+16|0;c[ca>>2]=sr($,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 193:{Z=aa+-2|0;_=f+(aa<<4)+16|0;c[ca>>2]=rr($,c[f+(Z<<4)+16>>2]|0,_,1)|0;c[ca+4>>2]=c[f+(Z<<4)+20>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 194:{c[ca>>2]=Vq($,38,c[f+(aa+-3<<4)+16>>2]|0,0,f+(aa+-1<<4)+16|0)|0;c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 195:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+112>>2]|0)){c[_>>2]=f+(aa+-4<<4)+16;ph($,20576,_);h=c[l>>2]|0}}else h=0;_=f+(aa+-4<<4)+16|0;h=sr($,h,_)|0;c[ca>>2]=h;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);if(!((h|0)==0?1:(b[f+(aa+-2<<4)+16>>1]|0)==0)){$=h+4|0;c[$>>2]=c[$>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;c[ca>>2]=Vq($,d[f+(aa+-1<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 206:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=0;break}case 207:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=1;break}case 208:{l=aa+-2|0;_=aa+-1|0;h=sr($,hr($,hr($,0,c[f+(aa<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 210:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 209:{l=aa+-4|0;_=aa+-3|0;h=sr($,hr($,hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 223:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;do if(h){if((c[h>>2]|0)==1){_=c[h+4>>2]|0;h=c[_>>2]|0;c[_>>2]=0;Jk(c[$>>2]|0,c[l>>2]|0);if(h){_=h+4|0;c[_>>2]=c[_>>2]&-769|512}c[ca>>2]=Vq($,(c[f+(aa+-3<<4)+16>>2]|0)!=0?78:79,c[f+(aa+-4<<4)+16>>2]|0,h,0)|0;break}h=Vq($,75,c[f+(aa+-4<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Jk(c[$>>2]|0,c[l>>2]|0);h=0}else{c[h+20>>2]=c[l>>2];h=c[ca>>2]|0;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0}else{c[ca>>2]=Vq($,132,0,0,20616+(c[f+(aa+-3<<4)+16>>2]<<3)|0)|0;Ck(c[$>>2]|0,c[f+(aa+-4<<4)+16>>2]|0)}while(0);c[ca+4>>2]=c[f+(aa+-4<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;c[ca>>2]=Vq($,77,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=f+(aa<<4)+16|0;_=Vq($,73,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=f+(aa<<4)+16|0;_=Vq($,148,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(_<<4)+14>>0]|0,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 216:{c[ca>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 217:{c[ca>>2]=Vq($,158,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 220:{k=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;l=aa+-4|0;h=Vq($,74,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h)Jk(c[$>>2]|0,k);else c[h+20>>2]=k;if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,c[ca>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 116:{c[ca>>2]=116;break}case 121:{h=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}else{a[h+4>>0]=116;c[h+52>>2]=c[f+(aa+-4<<4)+16>>2];c[ca>>2]=h;break a}}case 122:{b[ca>>1]=1;break}case 124:case 123:{b[ca>>1]=0;break}case 243:case 125:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{c[ca>>2]=0;break}case 127:{l=aa+-1|0;n=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(l<<4)+16>>2]|0)|0;c[ca>>2]=n;if(c[f+(aa<<4)+20>>2]|0)ir($,n,f+(aa<<4)+16|0,1);p=c[$>>2]|0;if(n){o=(c[n+4>>2]|0)+(((c[n>>2]|0)+-1|0)*20|0)+8|0;ig(p,c[o>>2]|0);m=c[f+(l<<4)+20>>2]|0;n=(c[f+(l<<4)+24>>2]|0)-m|0;if((m|0)!=0?(h=fw(n|0,((n|0)<0)<<31>>31|0,1,0)|0,h=ih(p,h,C)|0,(h|0)!=0):0){gw(h|0,m|0,n|0)|0;a[h+n>>0]=0}else h=0;c[o>>2]=h}break}case 133:{l=ih(c[$>>2]|0,80,0)|0;if(l){v=l+0|0;k=v+80|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0))}c[ca>>2]=l;break}case 134:{n=c[f+(aa<<4)+16>>2]|0;c[ca>>2]=n;if(n){l=c[n>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[n+(k*72|0)+44>>0]=a[n+((l+-2|0)*72|0)+44>>0]|0;l=k+-1|0;if((l|0)>0){$=k;k=l;l=$}else break}a[n+44>>0]=0}break}case 128:{Z=c[$>>2]|0;c[_>>2]=0;c[_+4>>2]=0;_=jr(Z,116,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-1<<4)+16>>2]|0,_)|0;break}case 132:{c[ca+4>>2]=0;break}case 129:{_=Vq($,116,0,0,f+(aa<<4)+16|0)|0;_=Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-3<<4)+16>>2]|0,_)|0;break}case 136:{c[ca>>2]=0;break}case 137:{_=fr($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;kr($,_,f+(aa+-2<<4)+16|0);break}case 135:{h=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=h;if((h|0)!=0?(t=c[h>>2]|0,(t|0)>0):0)a[h+((t+-1|0)*72|0)+44>>0]=c[f+(aa<<4)+16>>2];break}case 138:{c[ca>>2]=fr($,c[f+(aa+-6<<4)+16>>2]|0,0,0,f+(aa+-2<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 139:{l=f+(aa+-6<<4)+16|0;n=c[l>>2]|0;if((((n|0)==0?(c[f+(aa+-2<<4)+20>>2]|0)==0:0)?(c[f+(aa+-1<<4)+16>>2]|0)==0:0)?(c[f+(aa<<4)+16>>2]|0)==0:0){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}p=f+(aa+-4<<4)+16|0;k=c[p>>2]|0;o=c[k>>2]|0;if((o|0)==1){l=fr($,n,0,0,f+(aa+-2<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=l;if(l){X=(c[l>>2]|0)+-1|0;_=c[p>>2]|0;Z=_+16|0;c[l+(X*72|0)+16>>2]=c[Z>>2];Y=_+12|0;c[l+(X*72|0)+12>>2]=c[Y>>2];_=_+28|0;c[l+(X*72|0)+28>>2]=c[_>>2];c[Y>>2]=0;c[Z>>2]=0;c[_>>2]=0}zo(c[$>>2]|0,c[p>>2]|0);break a}if(k){m=o+-1|0;if((m|0)>0){n=o;while(1){a[k+(m*72|0)+44>>0]=a[k+((n+-2|0)*72|0)+44>>0]|0;n=m+-1|0;if((n|0)>0){_=m;m=n;n=_}else break}}a[k+44>>0]=0}_=gr($,0,k,0,0,0,0,512,0,0)|0;c[ca>>2]=fr($,c[l>>2]|0,0,0,f+(aa+-2<<4)+16|0,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 149:case 140:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 144:{c[ca>>2]=mr($,f+(aa+-1<<4)+16|0,0,0)|0;break}case 145:{c[ca>>2]=mr($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,0)|0;break}case 146:{c[ca>>2]=mr($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[ca>>2]=0;break}case 151:{c[ca>>2]=0;c[ca+4>>2]=1;break}case 143:{c[ca>>2]=1;break}case 142:{c[ca>>2]=lr(c[$>>2]|0,0,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0)|0;break}case 156:{h=hr($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if(h)a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2];break}case 157:{h=hr($,0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if((h|0)!=0?(k=c[h+4>>2]|0,(k|0)!=0):0)a[k+12>>0]=c[f+(aa<<4)+16>>2];break}case 179:case 153:{c[ca>>2]=0;break}case 180:case 152:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 166:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=0;break}case 167:{c[ca>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 168:{c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 169:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}_=f+(aa+-2<<4)+16|0;kr($,c[_>>2]|0,f+(aa+-1<<4)+16|0);nr($,c[_>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 235:case 162:case 155:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}default:{}}while(0);h=a[20912+(g<<1)>>0]|0;o=h&255;n=a[20913+(g<<1)>>0]|0;m=n&255;p=(c[f>>2]|0)-m|0;c[f>>2]=p;l=b[22184+((b[21568+(e[f+(aa-m<<4)+12>>1]<<1)>>1]|0)+o<<1)>>1]|0;k=l&65535;do if((l&65535)<642)if(!(n<<24>>24)){gq(f,k,o,ca);break}else{c[f>>2]=p+1;aa=1-m+aa|0;b[f+(aa<<4)+12>>1]=l;a[f+(aa<<4)+14>>0]=h;aa=f+(aa<<4)+16|0;c[aa+0>>2]=c[ca+0>>2];c[aa+4>>2]=c[ca+4>>2];c[aa+8>>2]=c[ca+8>>2];break}else{h=c[da>>2]|0;if((p|0)>-1)do Ln(f);while((c[f>>2]|0)>-1);c[da>>2]=h}while(0);i=ea;return}function jq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0;aa=i;i=i+64|0;if((i|0)>=(j|0))ba();$=aa+8|0;W=aa;n=aa+24|0;h=aa+16|0;l=tq(e,0,h)|0;do if(!l){if(c[h>>2]|0){l=$r(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){_=e+43|0;k=(a[_>>0]|0)==0;do if(!(a[e+46>>0]&2)){if(k?(m=e+4|0,Z=c[m>>2]|0,Yb[c[(c[Z>>2]|0)+40>>2]&63](Z,24,0)|0,m=c[m>>2]|0,m=lc[c[(c[m>>2]|0)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}Z=e+44|0;a[Z>>0]=1;k=tq(e,0,h)|0;if(!k){h=$r(e,f)|0;if(!h){h=0;g=0}else{Y=d[e+45>>0]|0;X=Y+1|0;Y=7-Y|0;if(!((a[_>>0]|0)==0?(g=c[e+4>>2]|0,g=lc[c[(c[g>>2]|0)+56>>2]&31](g,X,Y,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(k|0));Q=e+8|0;g=c[Q>>2]|0;g=nc[c[(c[g>>2]|0)+24>>2]&127](g,W)|0;a:do if(!g){R=W;P=c[R+4>>2]|0;b:do if((P|0)>0|(P|0)==0&(c[R>>2]|0)>>>0>32){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,n,32,0,0)|0;if(g)break a;m=d[n+3>>0]|0;k=d[n+9>>0]<<16|d[n+8>>0]<<24;g=d[n+10>>0]<<8;l=k|g|d[n+11>>0];if(((d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(R=m&1,S=e+65|0,a[S>>0]=R,T=e+36|0,c[T>>2]=l,c[e+104>>2]=d[n+13>>0]<<16|d[n+12>>0]<<24|d[n+14>>0]<<8|d[n+15>>0],U=e+84|0,P=n+16|0,N=P,N=d[N>>0]|d[N+1>>0]<<8|d[N+2>>0]<<16|d[N+3>>0]<<24,P=P+4|0,P=d[P>>0]|d[P+1>>0]<<8|d[P+2>>0]<<16|d[P+3>>0]<<24,V=U,O=V,a[O>>0]=N,a[O+1>>0]=N>>8,a[O+2>>0]=N>>16,a[O+3>>0]=N>>24,V=V+4|0,a[V>>0]=P,a[V+1>>0]=P>>8,a[V+2>>0]=P>>16,a[V+3>>0]=P>>24,V=e+76|0,uq(R^1,n,24,0,V),(c[V>>2]|0)==(d[n+25>>0]<<16|d[n+24>>0]<<24|d[n+26>>0]<<8|d[n+27>>0]|0)):0){P=e+80|0;if((c[P>>2]|0)!=(d[n+29>>0]<<16|d[n+28>>0]<<24|d[n+30>>0]<<8|d[n+31>>0]|0)){l=0;g=0;break}if((d[n+5>>0]<<16|d[n+4>>0]<<24|d[n+6>>0]<<8|d[n+7>>0]|0)!=3007e3){c[$>>2]=49983;c[$+4>>2]=10788;Zc(14,14848,$);g=14;break a}t=l+24|0;R=Pc(t)|0;if(!R){g=7;break a}u=R+24|0;v=((t|0)<0)<<31>>31;n=fw(t|0,v|0,32,0)|0;m=C;O=W;N=c[O+4>>2]|0;c:do if(!((m|0)>(N|0)|((m|0)==(N|0)?n>>>0>(c[O>>2]|0)>>>0:0))){w=R+8|0;x=R+1|0;y=R+2|0;z=R+3|0;A=R+16|0;B=R+17|0;D=R+18|0;E=R+19|0;F=R+20|0;G=R+21|0;H=R+22|0;I=R+23|0;J=R+4|0;K=R+5|0;L=R+6|0;M=R+7|0;N=e+68|0;O=e+72|0;r=(k>>>16|g)&65535;s=e+66|0;o=32;k=0;l=0;p=0;q=1;while(1){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,R,t,o,k)|0;if(g){k=36;break}if(Vv(U,w,8)|0){g=p;k=37;break}k=d[x>>0]<<16|d[R>>0]<<24|d[y>>0]<<8|d[z>>0];if(!k){g=p;k=37;break}o=(a[S>>0]|0)==0&1;uq(o,R,8,V,V);uq(o,u,c[T>>2]|0,V,V);if((c[V>>2]|0)!=(d[B>>0]<<16|d[A>>0]<<24|d[D>>0]<<8|d[E>>0]|0)){g=p;k=37;break}if((c[P>>2]|0)!=(d[G>>0]<<16|d[F>>0]<<24|d[H>>0]<<8|d[I>>0]|0)){g=p;break c}o=d[K>>0]<<16|d[J>>0]<<24|d[L>>0]<<8|d[M>>0];g=Wo(e,q,k)|0;if(g){k=36;break}if(!o)g=p;else{c[N>>2]=q;c[O>>2]=o;b[s>>1]=r;l=c[V>>2]|0;g=c[P>>2]|0}k=fw(n|0,m|0,t|0,v|0)|0;o=C;p=W;ca=c[p+4>>2]|0;if((o|0)>(ca|0)|((o|0)==(ca|0)?k>>>0>(c[p>>2]|0)>>>0:0))break c;else{da=m;ca=n;n=k;m=o;p=g;q=q+1|0;k=da;o=ca}}if((k|0)==36){Sc(R);break a}else if((k|0)==37){Sc(R);break b}}else{l=0;g=0}while(0);Sc(R)}else{l=0;g=0}}else{l=0;g=0}while(0);c[e+76>>2]=l;c[e+80>>2]=g;Xo(e);k=c[c[e+32>>2]>>2]|0;c[k+96>>2]=0;c[k+100>>2]=0;g=k+104|0;c[g>>2]=-1;c[k+108>>2]=-1;c[k+112>>2]=-1;c[k+116>>2]=-1;k=e+68|0;l=c[k>>2]|0;if(l)c[g>>2]=l;if(!(c[e+72>>2]|0))g=0;else{g=c[e+100>>2]|0;c[$>>2]=c[k>>2];c[$+4>>2]=g;Zc(283,14888,$);g=0}}while(0);if(!(a[_>>0]|0)){W=c[e+4>>2]|0;lc[c[(c[W>>2]|0)+56>>2]&31](W,X,Y,9)|0}}c[f>>2]=1}}else{h=l;g=k}a[Z>>0]=0;if(!(a[_>>0]|0)){_=c[e+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}}else if(k){h=e+4|0;g=c[h>>2]|0;g=lc[c[(c[g>>2]|0)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[_>>0]|0)){h=c[h>>2]|0;lc[c[(c[h>>2]|0)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[e+52>>2]|0)!=3007e3){c[$>>2]=50909;c[$+4>>2]=10788;Zc(14,14848,$);g=14}}else g=l;while(0);i=aa;return g|0}function kq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;p=c[h>>2]|0;q=c[g>>2]|0;k=(p|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;o=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(r=q+(m<<1)|0,(c[a+((e[j>>1]|0)<<2)>>2]|0)>>>0>=(c[a+((e[r>>1]|0)<<2)>>2]|0)>>>0):0){k=r;s=7;break}l=l+1|0;k=j}else{k=q+(m<<1)|0;s=7}while(0);if((s|0)==7){s=0;m=m+1|0}n=b[k>>1]|0;k=c[a+((n&65535)<<2)>>2]|0;j=o+1|0;b[i+(o<<1)>>1]=n;if((l|0)<(f|0))l=((c[a+((e[d+(l<<1)>>1]|0)<<2)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(p|0);n=(l|0)<(f|0);if(!(k|n))break;else o=j}}else j=0;c[g>>2]=d;c[h>>2]=j;gw(d|0,i|0,j<<1|0)|0;return}function lq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+4>>2]|0;c[e+4>>2]=c[a>>2];a=c[(c[e>>2]|0)+204>>2]|0;c[a+16>>2]=b;e=c[2217]|0;d=c[a+40>>2]|0;if((b|0)>-1)a=b;else{b=ow(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[a+24>>2]|0)+(c[a+20>>2]|0)|0;a=mw(b|0,C|0,a|0,((a|0)<0)<<31>>31|0)|0}fc[e&15](d,a);return}function mq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[b+12>>2]|0)+136|0;e=g;f=c[e>>2]|0;e=c[e+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(Zg(c[c[(c[b>>2]|0)+32>>2]>>2]|0,g)|0)){e=g;f=c[e>>2]|0;e=c[e+4>>2]|0;h=5;break}else{e=g;c[e>>2]=0;c[e+4>>2]=0;e=d;c[e>>2]=0;c[e+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[g>>2]=f;c[g+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[d+42>>0]=1;e=0}else e=1}return e|0}function nq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p;c[n>>2]=d;d=b;b=0;a:while(1){h=c[n>>2]|0;g=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;k=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;l=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;m=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;e=c[h>>2]|0;c[n>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[f>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){o=9;break}if((m|0)!=(a[f>>0]|0))break;c[e>>2]=d;d=f+1|0;b=b+1|0}if((o|0)==9){c[e>>2]=d;b=b+1|0}i=p;return b|0}function oq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,n=0.0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+64|0;if((i|0)>=(j|0))ba();s=u;q=u+56|0;r=u+52|0;f=u+48|0;o=u+44|0;p=u+40|0;c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=24;c[s+12>>2]=58;c[s+16>>2]=f;c[s+20>>2]=2;c[s+24>>2]=0;c[s+28>>2]=59;c[s+32>>2]=0;c[s+36>>2]=o;do if((nq(b,s)|0)==2){m=b+5|0;if((a[m>>0]|0)==58){c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=59;c[s+12>>2]=0;c[s+16>>2]=p;if((nq(b+6|0,s)|0)!=1){f=1;break}m=b+8|0;if((a[m>>0]|0)==46?(g=b+9|0,k=a[g>>0]|0,((k&255)+-48|0)>>>0<10):0){n=0.0;l=1.0;do{n=n*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[g>>0]|0}while(((k&255)+-48|0)>>>0<10);l=n/l}else{g=m;l=0.0}}else{c[p>>2]=0;g=m;l=0.0}a[e+42>>0]=0;a[e+41>>0]=1;c[e+20>>2]=c[f>>2];c[e+24>>2]=c[o>>2];h[e+32>>3]=l+ +(c[p>>2]|0);while(1){f=g+1|0;if(!(a[10368+(d[g>>0]|0)>>0]&1)){m=g;break}else g=f}b=e+28|0;c[b>>2]=0;g=a[m>>0]|0;if(g<<24>>24==43){k=1;t=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;t=16}else f=0;else{k=-1;t=14}if((t|0)==14){c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=14;c[s+12>>2]=58;c[s+16>>2]=q;c[s+20>>2]=2;c[s+24>>2]=0;c[s+28>>2]=59;c[s+32>>2]=0;c[s+36>>2]=r;if((nq(f,s)|0)!=2){f=1;break}k=_(((c[q>>2]|0)*60|0)+(c[r>>2]|0)|0,k)|0;c[b>>2]=k;f=m+6|0;t=16}if((t|0)==16)while(1){g=a[f>>0]|0;if(!(a[10368+(g&255)>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[e+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=u;return f|0}function pq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,n=0,o=0.0,p=0;n=i;i=i+112|0;if((i|0)>=(j|0))ba();k=n+48|0;m=n;l=n+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[f>>2]=c[b>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));ko(k);lo(k);g=k+8|0;if(((c[g>>2]|0)+-1971|0)>>>0>66){c[g>>2]=2e3;c[k+12>>2]=1;c[k+16>>2]=1;c[k+20>>2]=0;c[k+24>>2]=0;h[k+32>>3]=0.0}else{f=k+32|0;h[f>>3]=+(~~(+h[f>>3]+.5)|0)}c[k+28>>2]=0;a[k+42>>0]=0;jo(k);b=k;f=c[b>>2]|0;b=c[b+4>>2]|0;g=mw(f|0,b|0,1e3,0)|0;g=fw(g|0,C|0,-413362496,0)|0;c[l>>2]=g;g=Rb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20056,-1,1,-1)|0;c[e>>2]=1;f=0;g=0}else{k=c[g+4>>2]|0;l=c[g+8>>2]|0;d=c[g+12>>2]|0;p=(c[g+16>>2]|0)+1|0;o=+(c[g>>2]|0);c[m+8>>2]=(c[g+20>>2]|0)+1900;c[m+12>>2]=p;c[m+16>>2]=d;c[m+20>>2]=l;c[m+24>>2]=k;h[m+32>>3]=o;a[m+40>>0]=1;a[m+41>>0]=1;a[m+42>>0]=0;a[m+43>>0]=0;jo(m);c[e>>2]=0;g=m;g=$v(c[g>>2]|0,c[g+4>>2]|0,f|0,b|0)|0;f=C}C=f;i=n;return g|0}function qq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p+12|0;l=p;n=p+8|0;k=p+16|0;a[d>>0]=0;f=nc[c[(c[b>>2]|0)+24>>2]&127](b,l)|0;h=l;g=c[h>>2]|0;h=c[h+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=fw(g|0,h|0,-16,-1)|0;f=as(b,f,C,o)|0;if(!f){m=c[o>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-12,-1)|0;f=as(b,f,C,n)|0;if(!f){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-8,-1)|0;f=pc[c[(c[b>>2]|0)+8>>2]&31](b,k,8,f,C)|0;if(!f)if(!(Vv(k,14808,8)|0)){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-16,-1)|0;f=$v(f|0,C|0,m|0,0)|0;f=pc[c[(c[b>>2]|0)+8>>2]&31](b,d,m,f,C)|0;if(!f){g=c[n>>2]|0;h=0;while(1){e=a[d+h>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[n>>2]=f;if((g|0)==(e|0))f=m;else{c[o>>2]=0;f=0}a[d+f>>0]=0;f=0}}else f=0}}else f=0}}i=p;return f|0}function rq(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();l=s+8|0;q=s+4|0;o=s;r=a+72|0;h=r;k=c[h>>2]|0;h=c[h+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[a+148>>2]|0}else{m=fw(k|0,h|0,-1,-1)|0;k=c[a+148>>2]|0;m=mw(m|0,C|0,k|0,0)|0;m=fw(m|0,C|0,1,0)|0;m=ow(m|0,C|0,k|0,0)|0;n=C}p=r;c[p>>2]=m;c[p+4>>2]=n;p=a+148|0;k=fw(k|0,0,m|0,n|0)|0;h=C;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[b>>2]|0)?(n|0)==(c[b+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[k>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Vv(l,14808,8)|0))d=k;else{e=101;break}}l=c[d>>2]|0;e=fw(m|0,n|0,8,0)|0;e=as(l,e,C,f)|0;if(!e){f=c[d>>2]|0;e=fw(m|0,n|0,12,0)|0;e=as(f,e,C,a+48|0)|0;if(!e){f=c[d>>2]|0;e=fw(m|0,n|0,16,0)|0;e=as(f,e,C,g)|0;if(!e){h=r;k=c[h>>2]|0;h=c[h+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[d>>2]|0;e=fw(m|0,n|0,20,0)|0;e=as(g,e,C,o)|0;if(e)break;g=c[d>>2]|0;e=fw(m|0,n|0,24,0)|0;e=as(g,e,C,q)|0;if(e)break;d=c[q>>2]|0;if(!d){h=c[a+152>>2]|0;c[q>>2]=h}else h=d;d=c[o>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=Yk(a,q,-1)|0;c[p>>2]=d;h=r;k=c[h>>2]|0;h=c[h+4>>2]|0}else{d=c[p>>2]|0;e=0}m=fw(k|0,h|0,d|0,0)|0;n=r;c[n>>2]=m;c[n+4>>2]=C}}}}else e=101;while(0);i=s;return e|0}function sq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;A=i;i=i+16|0;if((i|0)>=(j|0))ba();v=A+8|0;o=A+4|0;r=A;y=c[f+200>>2]|0;z=(k|0)!=0;n=c[(z?f+64|0:f+68|0)>>2]|0;q=g;q=as(n,c[q>>2]|0,c[q+4>>2]|0,o)|0;do if(!q){x=f+152|0;u=c[x>>2]|0;q=g;q=fw(c[q>>2]|0,c[q+4>>2]|0,4,0)|0;q=pc[c[(c[n>>2]|0)+8>>2]&31](n,y,u,q,C)|0;if(!q){B=c[x>>2]|0;p=(k<<2)+4+B|0;q=g;q=fw(p|0,((p|0)<0)<<31>>31|0,c[q>>2]|0,c[q+4>>2]|0)|0;p=C;u=g;c[u>>2]=q;c[u+4>>2]=p;u=c[o>>2]|0;if((u|0)!=0?(u|0)!=(((c[2514]|0)/(B|0)|0)+1|0):0)if(u>>>0<=(c[f+24>>2]|0)>>>0?($h(h,u)|0)==0:0){if(z){q=fw(q|0,p|0,-4,-1)|0;q=as(n,q,C,r)|0;if(q){m=q;break}if(!l){q=c[f+48>>2]|0;p=(c[x>>2]|0)+-200|0;if((p|0)>0)do{q=(d[y+p>>0]|0)+q|0;p=p+-200|0}while((p|0)>0);if((q|0)!=(c[r>>2]|0)){m=101;break}}}if((h|0)!=0?(m=Zh(h,u)|0,(m|0)!=0):0)break;r=(u|0)==1;if(r?(s=f+142|0,t=a[y+20>>0]|0,(b[s>>1]|0)!=(t&255|0)):0)b[s>>1]=t&255;if(!(c[f+208>>2]|0)){t=f+204|0;q=Yb[c[8744+132>>2]&63](c[(c[t>>2]|0)+40>>2]|0,u,0)|0;q=el(c[t>>2]|0,u,q)|0}else q=0;c[v>>2]=q;if(z)if(!(a[f+7>>0]|0)){t=g;h=c[t+4>>2]|0;p=f+80|0;s=c[p+4>>2]|0;p=(h|0)<(s|0)|((h|0)==(s|0)?(c[t>>2]|0)>>>0<=(c[p>>2]|0)>>>0:0)}else p=1;else if(!q)p=1;else p=(b[q+24>>1]&4)==0;o=c[f+60>>2]|0;n=c[o>>2]|0;do if(n){m=a[f+16>>0]|0;if((m&255)>3){if(!p){w=33;break}}else if(!(m<<24>>24==0&p)){w=33;break}p=c[x>>2]|0;m=ow(p|0,((p|0)<0)<<31>>31|0,u+-1|0,0)|0;m=pc[c[n+12>>2]&31](o,y,p,m,C)|0;p=f+32|0;if(u>>>0>(c[p>>2]|0)>>>0)c[p>>2]=u;p=c[f+88>>2]|0;if(p)Yo(p,u,y)}else w=33;while(0);if((w|0)==33)if((k|0)==0&(q|0)==0){t=f+20|0;a[t>>0]=d[t>>0]|2;m=vg(f,u,v,1)|0;a[t>>0]=d[t>>0]&253;if(m)break;q=c[v>>2]|0;m=q+24|0;b[m>>1]=e[m>>1]&65527;Po(q);m=0}else m=0;if(q){o=c[q+4>>2]|0;gw(o|0,y|0,c[x>>2]|0)|0;_b[c[f+196>>2]&31](q);do if(z){if((l|0)!=0?(t=g,h=c[t+4>>2]|0,u=f+80|0,s=c[u+4>>2]|0,(h|0)>(s|0)|((h|0)==(s|0)?(c[t>>2]|0)>>>0>(c[u>>2]|0)>>>0:0)):0)break;tl(q)}while(0);if(r){p=f+104|0;n=o+24|0;o=p+16|0;do{a[p>>0]=a[n>>0]|0;p=p+1|0;n=n+1|0}while((p|0)<(o|0))}kl(q)}}else m=0;else m=101}else m=q}else m=q;while(0);i=A;return m|0}function tq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[g>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Tc(c[j>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[g>>2]|0;bw(h+(k<<2)|0,0,i-k<<2|0)|0;c[j>>2]=h;c[g>>2]=i;k=5}}else{h=c[b+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[h>>2]|0)){if((a[b+43>>0]|0)!=2){g=c[b+4>>2]|0;g=pc[c[(c[g>>2]|0)+52>>2]&31](g,e,32768,d[b+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[g>>0]=d[g>>0]|2;g=0;break}g=mg(32768,0)|0;if(g)bw(g|0,0,32768)|0;c[(c[j>>2]|0)+(e<<2)>>2]=g;g=(c[(c[j>>2]|0)+(e<<2)>>2]|0)==0?7:0}else g=0;while(0);h=c[(c[j>>2]|0)+(e<<2)>>2]|0}c[f>>2]=h;return g|0}function uq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=b+d|0;if(!e){g=0;d=0}else{g=c[e>>2]|0;d=c[e+4>>2]|0}if(!a)do{g=g+d+(jw(c[b>>2]|0)|0)|0;d=g+d+(jw(c[b+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0<h>>>0);else do{g=g+d+(c[b>>2]|0)|0;d=g+d+(c[b+4>>2]|0)|0;b=b+8|0}while(b>>>0<h>>>0);c[f>>2]=g;c[f+4>>2]=d;return}function vq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=a+8|0;g=c[h>>2]|0;h=c[h+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=fw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=C,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0<g>>>0)):0){i=$v(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[h>>2]|0;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=fw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=C;g=c[h>>2]|0;g=nc[c[(c[g>>2]|0)+20>>2]&127](g,c[a+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[a+4>>2]|0;g=pc[c[(c[f>>2]|0)+12>>2]&31](f,h,d,e,g)|0}return g|0}function wq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l+8|0;k=l+4|0;g=l;c[h>>2]=0;c[k>>2]=0;c[g>>2]=0;f=a+68|0;d=c[f>>2]|0;if(d){Lo(a,(d+33|0)>>>12,h,k,g)|0;g=(c[f>>2]|0)-(c[g>>2]|0)|0;a=c[h>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[d>>1]|0|0)>(g|0))b[d>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[k>>2]|0)+(g+1<<2)|0;bw(d|0,0,a-d|0)|0}i=l;return}function xq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;h=a+204|0;f=Yb[c[8744+132>>2]&63](c[(c[h>>2]|0)+40>>2]|0,d,0)|0;f=el(c[h>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[f+26>>1]|0)==1){il(f);e=0;break}c[e>>2]=0;d=gl(c[a+208>>2]|0,c[f+20>>2]|0,e)|0;if(!d){d=hl(f,c[e>>2]|0)|0;if(!d){_b[c[a+196>>2]&31](f);d=0}}xg(f);e=d}while(0);d=c[a+88>>2]|0;if(d)do{c[d+16>>2]=1;d=c[d+44>>2]|0}while((d|0)!=0);i=g;return e|0}function yq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();C=D;z=c[f+52>>2]|0;q=(c[z+36>>2]|0)+-4|0;v=g&65535;A=h&65535;u=A+v|0;B=c[f+56>>2]|0;if(b[z+22>>1]&4)bw(B+v|0,0,A|0)|0;y=d[f+6>>0]|0;z=y+1|0;n=z&65535;x=z&65535;if((a[B+(x+1)>>0]|0)==0?(a[B+x>>0]|0)==0:0){s=h&255;q=(h&65535)>>>8&255;r=u;p=0;o=0;x=23}else{s=n;x=6}a:do if((x|0)==6){while(1){x=0;m=s&65535;o=a[B+(m+1)>>0]|0;l=o&255;r=d[B+m>>0]<<8|l;n=s;s=r&65535;if(!(r>>>0<v>>>0&(r|0)!=0)){p=o;t=r;break}if(r>>>0<(m+4|0)>>>0){x=8;break}else x=6}if((x|0)==8){c[C>>2]=54420;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}if(t>>>0>q>>>0){c[C>>2]=54423;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}k=h&255;q=(h&65535)>>>8&255;o=(s&65535)>>>8&255;do if((t+-1|0)>>>0<(u+3|0)>>>0)if(u>>>0>t>>>0){c[C>>2]=54434;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{r=(d[B+(t+2)>>0]<<8|d[B+(t+3)>>0])+t|0;q=r-v|0;s=q&255;q=(q&65535)>>>8&255;p=a[B+(t+1)>>0]|0;o=a[B+t>>0]|0;k=l-u&255;break}else{s=k;r=u;k=0}while(0);do if(m>>>0>z>>>0?(w=(d[B+(m+2)>>0]<<8|d[B+(m+3)>>0])+m|0,(w+3|0)>=(v|0)):0)if((v|0)<(w|0)){c[C>>2]=54447;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{q=r-m|0;g=n;s=q&255;q=(q&65535)>>>8&255;k=(k&255)+v-w&255;break}while(0);m=B+(y+7)|0;l=a[m>>0]|0;if((l&255)<(k&255)){c[C>>2]=54453;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}else{a[m>>0]=(l&255)-(k&255);x=23;break}}while(0);b:do if((x|0)==23){k=g&65535;l=B+(y+5)|0;m=B+(y+6)|0;do if((k|0)==(d[l>>0]<<8|d[m>>0]|0))if((n&65535|0)==(z|0)){a[B+z>>0]=o;a[B+(y+2)>>0]=p;a[l>>0]=r>>>8;a[m>>0]=r;break}else{c[C>>2]=54460;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break b}else{C=n&65535;a[B+C>>0]=(g&65535)>>>8;a[B+(C+1)>>0]=g;a[B+k>>0]=o;a[B+(k+1)>>0]=p;a[B+(k+2)>>0]=q;a[B+(k+3)>>0]=s}while(0);k=f+16|0;b[k>>1]=(e[k>>1]|0)+A;k=0}while(0);i=D;return k|0}function zq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;q=d[b+6>>0]|0;t=c[b+56>>2]|0;p=c[(c[b+52>>2]|0)+36>>2]|0;l=p+-4|0;b=q+1|0;while(1){m=t+b|0;n=(d[m>>0]|0)<<8|(d[t+(b+1)>>0]|0);if(!n){b=0;break}if((n|0)>(l|0)|(n|0)<(b+4|0)){s=4;break}h=t+(n+2)|0;k=t+(n+3)|0;b=(d[h>>0]|0)<<8|(d[k>>0]|0);if((b|0)<(e|0))b=n;else{o=h;l=n;s=6;break}}a:do if((s|0)==4){c[r>>2]=54252;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0}else if((s|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(p|0)){c[r>>2]=54275;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0;break a}else{a[o>>0]=h>>>8;a[k>>0]=h;break}else{b=t+(q+7)|0;if((d[b>>0]|0)<=59){q=t+l|0;q=d[q>>0]|d[q+1>>0]<<8;a[m>>0]=q;a[m+1>>0]=q>>8;a[b>>0]=(d[b>>0]|0)+h;break}if(!g){b=0;break a}c[g>>2]=1;b=0;break a}while(0);b=t+(h+l)|0}while(0);i=u;return b|0}function Aq(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();B=D;y=c[f+56>>2]|0;A=d[f+6>>0]|0;u=e[f+14>>1]|0;v=b[f+18>>1]|0;q=v&65535;r=f+52|0;s=c[(c[r>>2]|0)+36>>2]|0;z=(q<<1)+u|0;t=s+-4|0;w=y+(A+5)|0;x=y+(A+6)|0;a:do if(v<<16>>16){p=s;v=0;h=y;k=0;while(1){m=(v<<1)+u|0;l=y+m|0;m=y+(m+1)|0;n=(d[l>>0]|0)<<8|(d[m>>0]|0);if((n|0)<(z|0)|(n|0)>(t|0)){C=3;break}o=(Hp(f,h+n|0)|0)&65535;g=p-o|0;if((g|0)<(z|0)|(o+n|0)>(s|0)){C=5;break}a[l>>0]=g>>>8;a[m>>0]=g;if(!k)if((g|0)==(n|0))k=0;else{k=c[(c[c[r>>2]>>2]|0)+200>>2]|0;h=(d[w>>0]|0)<<8|(d[x>>0]|0);gw(k+h|0,y+h|0,p-h|0)|0;h=k;C=9}else C=9;if((C|0)==9){C=0;gw(y+g|0,h+n|0,o|0)|0}v=v+1|0;if((v|0)>=(q|0)){C=11;break a}else p=g}if((C|0)==3){c[B>>2]=54184;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}else if((C|0)==5){c[B>>2]=54196;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}}else{g=s;C=11}while(0);if((C|0)==11){a[w>>0]=g>>>8;a[x>>0]=g;a[y+(A+1)>>0]=0;a[y+(A+2)>>0]=0;a[y+(A+7)>>0]=0;C=g-z|0;bw(y+z|0,0,C|0)|0;if((C|0)==(e[f+16>>1]|0|0))g=0;else{c[B>>2]=54221;c[B+4>>2]=10788;Zc(11,13600,B);g=11}}i=D;return g|0}function Bq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))ba();h=k;if((c[f>>2]|0)==0?(np(a,e,h),g=b[h+18>>1]|0,g<<16>>16!=0):0){g=g&65535;vp(c[a+52>>2]|0,(d[e+(g+1)>>0]|0)<<16|(d[e+g>>0]|0)<<24|(d[e+(g+2)>>0]|0)<<8|(d[e+(g+3)>>0]|0),3,c[a+72>>2]|0,f)}i=k;return}function Cq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[g>>2]|0)){h=c[b+52>>2]|0;j=c[b+56>>2]|0;l=c[f+56>>2]|0;i=d[b+6>>0]|0;k=(c[f+72>>2]|0)==1?100:0;m=d[j+(i+5)>>0]<<8|d[j+(i+6)>>0];gw(l+m|0,j+m|0,(c[h+36>>2]|0)-m|0)|0;gw(l+k|0,j+i|0,(e[b+18>>1]<<1)+(e[b+14>>1]|0)|0)|0;a[f>>0]=0;b=Xp(f)|0;if(b){c[g>>2]=b;break}if(a[h+17>>0]|0)c[g>>2]=Wp(f)|0}while(0);return}function Dq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;q=d[f+6>>0]|0;t=c[f+56>>2]|0;m=c[f+52>>2]|0;o=c[m+36>>2]|0;n=t+o|0;j=c[f+64>>2]|0;m=c[(c[m>>2]|0)+200>>2]|0;p=t+(q+5)|0;r=t+(q+6)|0;s=(d[p>>0]|0)<<8|(d[r>>0]|0);gw(m+s|0,t+s|0,o-s|0)|0;s=t;if((g|0)>0){o=0;l=j;j=n;while(1){k=c[h+(o<<2)>>2]|0;if(k>>>0>t>>>0&k>>>0<n>>>0)k=m+(k-s)|0;u=e[i+(o<<1)>>1]|0;j=j+(0-u)|0;gw(j|0,k|0,u|0)|0;k=j-s|0;a[l>>0]=k>>>8;a[l+1>>0]=k;o=o+1|0;if((o|0)==(g|0))break;else l=l+2|0}}else j=n;i=f+18|0;b[i>>1]=g;a[f+1>>0]=0;a[t+(q+1)>>0]=0;a[t+(q+2)>>0]=0;a[t+(q+3)>>0]=(e[i>>1]|0)>>>8;a[t+(q+4)>>0]=b[i>>1];i=j-s|0;a[p>>0]=i>>>8;a[r>>0]=i;a[t+(q+7)>>0]=0;return}function Eq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=c[a+56>>2]|0;p=r+(c[(c[a+52>>2]|0)+36>>2]|0)|0;n=r+((d[a+6>>0]|0)+8+(d[a+7>>0]|0))|0;a:do if((b|0)>0){o=r;q=0;h=0;l=0;m=0;while(1){j=c[f+(q<<2)>>2]|0;if(j>>>0>=n>>>0&j>>>0<p>>>0){i=e[g+(q<<1)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)yq(a,l-o&65535,m&65535)|0;if(k>>>0>p>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}q=q+1|0;if((q|0)>=(b|0))break;else{l=j;m=i}}if(j)yq(a,j-r&65535,i&65535)|0}else h=0;while(0);return h|0}function Fq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();t=v;n=c[b+56>>2]|0;m=c[f>>2]|0;if(!(a[n+1>>0]|0))s=(a[n+2>>0]|0)!=0;else s=1;a:do if((h|0)>0){q=0;while(1){p=e[l+(q<<1)>>1]|0;if(s?(r=zq(b,p,t,0)|0,(r|0)!=0):0)o=r;else{o=m+(0-p)|0;if(o>>>0<d>>>0){m=1;break a}else m=o}gw(o|0,c[k+(q<<2)>>2]|0,p|0)|0;p=o-n|0;a[g>>0]=p>>>8;a[g+1>>0]=p;q=q+1|0;if((q|0)>=(h|0)){u=9;break}else g=g+2|0}}else u=9;while(0);if((u|0)==9){c[f>>2]=m;m=0}i=v;return m|0}function Gq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;e=c[a+44>>2]|0;h=a;f=c[h>>2]|0;h=c[h+4>>2]|0;a:do if(!e){m=a+40|0;e=c[m>>2]|0;g=((e|0)<0)<<31>>31;l=nw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=$v(c[k>>2]|0,c[k+4>>2]|0,f|0,h|0)|0;p=C;q=c[a+24>>2]|0;e=pc[c[(c[q>>2]|0)+8>>2]&31](q,c[a+36>>2]|0,(p|0)>(g|0)|(p|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[m>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[d>>2]=(c[a+36>>2]|0)+l;e=a;b=fw(c[e>>2]|0,c[e+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=b;c[e+4>>2]=C;e=0;break}e=a+16|0;f=c[e>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=ng(c[g>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[e>>2]=h;c[g>>2]=f}else f=c[a+28>>2]|0;h=a+28|0;gw(f|0,(c[a+36>>2]|0)+l|0,k|0)|0;l=a;l=fw(c[l>>2]|0,c[l+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=l;c[e+4>>2]=C;e=b-k|0;if((e|0)>0){g=e;do{f=c[m>>2]|0;f=(g|0)>(f|0)?f:g;e=Gq(a,f,n)|0;if(e)break a;gw((c[h>>2]|0)+(b-g)|0,c[n>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[d>>2]=c[h>>2];e=0}else{c[d>>2]=e+f;b=fw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=b;c[e+4>>2]=C;e=0}while(0);i=o;return e|0}function Hq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+64|0;if((i|0)>=(j|0))ba();w=z+44|0;y=z;x=z+40|0;u=a+8|0;t=c[u>>2]|0;u=c[u+4>>2]|0;v=a+4|0;p=c[v>>2]|0;Lp(c[a+48>>2]|0,y,c[(c[(c[a>>2]|0)+8>>2]|0)+12>>2]|0,t,u);o=p+8|0;p=p+12|0;q=y+24|0;r=y+16|0;s=a+16|0;while(1){f=c[(c[o>>2]|0)+4>>2]|0;g=c[p>>2]|0;h=c[g+(f*56|0)+20>>2]|0;if(!(c[g+(f*56|0)+24>>2]|0)){d=1;b=0;break}l=q;k=c[l>>2]|0;l=c[l+4>>2]|0;m=c[r>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=iw(b|0,e|0,7)|0;e=C}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=fw(k|0,l|0,h|0,n|0)|0;k=fw(k|0,C|0,m|0,((m|0)<0)<<31>>31|0)|0;d=fw(k|0,C|0,d|0,((d|0)<0)<<31>>31|0)|0;k=C;b=c[s>>2]|0;b=fw(b|0,((b|0)<0)<<31>>31|0,t|0,u|0)|0;e=C;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Mp(y,w,lm(w,h,n)|0);Mp(y,c[g+(f*56|0)+32>>2]|0,h);b=Sm(c[v>>2]|0,x)|0;if(b){d=0;break}}y=Np(y,a+56|0)|0;i=z;return (d?y:b)|0}function Iq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();f=d;c[f>>2]=e;e=Sk(a,13592,f)|0;ig(a,b);i=d;return e|0}function Jq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=a[d>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[d>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[f+(l<<1)>>1]=bs(k,h)|0;d=(a[d>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[d>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[l>>0]=a[l>>0]&-69;a:do if(a[d>>0]|0){f=g+44|0;b:while(1){do if(!(Ch(13448,d,10352,0)|0)){if(Ch(13464,d,10352,0)|0){c[m>>2]=0;zn(d+3|0,m)|0;h=c[m>>2]|0;b[f>>1]=bs(h,((h|0)<0)<<31>>31)|0;break}if(Ch(13480,d,10352,0)|0)a[l>>0]=a[l>>0]|64}else a[l>>0]=a[l>>0]|4;while(0);while(1){h=a[d>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[k>>0]|0;d=k}}}while(0);i=n;return}function Kq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[f>>2]|0;if(!e){e=rh(d)|0;c[f>>2]=e;if(e)sh(e,155,0,0,0)|0;if((c[d+408>>2]|0)==0?(b[(c[d>>2]|0)+60>>1]&8)==0:0)a[d+23>>0]=1}return e|0}function Lq(b,d){b=b|0;d=d|0;var e=0;e=(c[b+32>>2]|0)+-1|0;if((e|0)>(c[(c[b+24>>2]|0)+88>>2]|0)?(a[(c[b+4>>2]|0)+(e*20|0)>>0]|0)==d<<24>>24:0){vh(b,e);e=1}else e=0;return e|0}function Mq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Kq(d)|0;i=g+32|0;cs(d,f,c[i>>2]|0,(h|0)==55&1,c[g>>2]|0);if(!(a[g+44>>0]&32)){g=b[g+38>>1]|0;th(j,sh(j,h,e,c[i>>2]|0,f)|0,g,-14)}else{i=c[g+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[i+51>>0]&3)==2)break a;i=c[i+20>>2]|0;if(!i){i=0;break}}while(0);sh(j,h,e,c[i+40>>2]|0,f)|0;g=c[d+8>>2]|0;th(g,-1,ds(d,i)|0,-6)}return}function Nq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[d>>0]|0)==-97:0)sh(c[b+8>>2]|0,33,c[d+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=es(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[b+8>>2]|0,(f|0)!=0):0)sh(f,34,g,e,0)|0;return}function Oq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;h=c[b>>2]|0;do if(((a[h+145>>0]|0)==0?(a[b+451>>0]|0)==0:0)?(k=c[h+284>>2]|0,(k|0)!=0):0){h=gc[k&7](c[h+288>>2]|0,d,e,f,g,c[b+492>>2]|0)|0;if((h|0)==0|(h|0)==2)break;else if((h|0)==1){ph(b,25216,l);c[b+12>>2]=23;h=1;break}else{ph(b,25232,l);c[b+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Pq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Sq(c[a>>2]|0,d)|0;do if(d){e=Kq(a)|0;if((e|0)!=0?(Oq(a,32,c[37088+(b<<2)>>2]|0,d,0)|0)==0:0){th(e,sh(e,2,b,0,0)|0,d,-1);break}ig(c[a>>2]|0,d)}while(0);return}function Qq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();r=v;p=v+4|0;u=c[e>>2]|0;f=ar(e,f,g,p)|0;a:do if((f|0)>=0){q=(h|0)!=0;if(q?(c[g+4>>2]|0)!=0&(f|0)!=1:0){ph(e,36976,r);break}t=q?1:f;g=c[p>>2]|0;q=g;f=c[q+4>>2]|0;p=e+496|0;c[p>>2]=c[q>>2];c[p+4>>2]=f;p=Sq(u,g)|0;if(p){b:do if((Hr(e,p)|0)==0?(o=(a[u+144>>0]|0)==1?1:h,s=u+16|0,n=c[(c[s>>2]|0)+(t<<4)>>2]|0,(Oq(e,18,(o|0)==1?13184:13208,0,n)|0)==0):0){h=(o|0)!=0;if(!k)f=h?4:2;else f=h?6:8;q=(l|0)!=0;if(!q?(Oq(e,f,p,0,n)|0)!=0:0)break;do if(!(a[e+451>>0]|0)){h=c[(c[s>>2]|0)+(t<<4)>>2]|0;if(Cn(e)|0)break b;if(!(Wh(u,p,h)|0)){if(!(Zp(u,p,h)|0))break;c[r>>2]=p;ph(e,37048,r);break b}if(!m){c[r>>2]=g;ph(e,37024,r);break b}else{wr(e,t);break b}}while(0);o=ih(u,76,0)|0;if(!o){a[u+65>>0]=1;c[e+12>>2]=7;s=e+64|0;c[s>>2]=(c[s>>2]|0)+1;break}n=o+0|0;h=n+76|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(h|0));c[o>>2]=p;b[o+36>>1]=-1;n=c[(c[s>>2]|0)+(t<<4)+12>>2]|0;c[o+68>>2]=n;b[o+40>>1]=1;b[o+28>>1]=200;c[e+484>>2]=o;if((a[e+18>>0]|0)==0?(Wv(p,26576)|0)==0:0)c[n+72>>2]=o;if(a[u+145>>0]|0)break a;g=Kq(e)|0;if(!g)break a;s=c[e+408>>2]|0;wr(e,t);n=1<<t;s=((s|0)==0?e:s)+328|0;c[s>>2]=c[s>>2]|n;if(q)sh(g,146,0,0,0)|0;o=e+72|0;f=c[o>>2]|0;p=f+1|0;c[e+384>>2]=p;q=f+2|0;c[e+388>>2]=q;f=f+3|0;c[o>>2]=f;sh(g,51,t,f,2)|0;o=g+96|0;c[o>>2]=c[o>>2]|n;o=sh(g,45,f,0,0)|0;sh(g,25,(c[u+24>>2]&32768|0)!=0?1:4,f,0)|0;sh(g,52,t,2,f)|0;sh(g,25,d[u+62>>0]|0,f,0)|0;sh(g,52,t,5,f)|0;h=g+32|0;n=c[h>>2]|0;if(n>>>0>o>>>0)c[(c[g+4>>2]|0)+(o*20|0)+8>>2]=n;c[(c[g+24>>2]|0)+88>>2]=n+-1;if(!(l|k))c[e+416>>2]=sh(g,121,t,q,0)|0;else sh(g,25,0,q,0)|0;fs(e,t);sh(g,74,0,p,0)|0;sh(g,28,0,f,0)|0;sh(g,75,0,f,p)|0;n=c[g+4>>2]|0;if(n)a[n+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(g,61,0,0,0)|0;break a}while(0);ig(u,p)}}while(0);i=v;return}function Rq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;O=i;i=i+176|0;if((i|0)>=(j|0))ba();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=c[f>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(L=K+65|0,(a[L>>0]|0)==0):0)?(M=f+484|0,N=c[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(a[I>>0]|0)c[N+32>>2]=c[K+140>>2];b:do if(k&32){p=N+44|0;o=d[p>>0]|0;if(o&8){ph(f,36584,J);break a}if(!(o&4)){c[J>>2]=c[N>>2];ph(f,36640,J);break}a[p>>0]=o|32;q=c[f+8>>2]|0;p=c[f+416>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))p=(c[q+4>>2]|0)+(p*20|0)|0;else p=29120;a[p>>0]=120}p=c[f+420>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))o=(c[q+4>>2]|0)+(p*20|0)|0;else o=29120;a[o>>0]=16}o=N+36|0;if((b[o>>1]|0)>-1){p=hr(f,0,0)|0;if(!p)break;z=gh(c[f>>2]|0,c[(c[N+4>>2]|0)+((b[o>>1]|0)*24|0)>>2]|0)|0;A=c[p+4>>2]|0;c[A+4>>2]=z;a[A+12>>0]=a[f+448>>0]|0;p=Xq(f,0,0,0,p,d[N+45>>0]|0,0,0,0,0)|0;if(!p)break;u=p+51|0;a[u>>0]=a[u>>0]&-4|2;b[o>>1]=-1;u=b[p+46>>1]|0}else{p=c[N+8>>2]|0;c:do if(!p)p=0;else while(1){if((a[p+51>>0]&3)==2)break c;p=c[p+20>>2]|0;if(!p){p=0;break}}while(0);v=p+46|0;q=b[v>>1]|0;if((q&65535)>1){t=c[p+4>>2]|0;s=p+48|0;u=1;o=1;do{m=b[t+(u<<1)>>1]|0;r=o;n=t;while(1){if((r|0)<=0){C=36;break}if((b[n>>1]|0)==m<<16>>16){C=35;break}else{r=r+-1|0;n=n+2|0}}if((C|0)==35){C=0;b[s>>1]=(b[s>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;b[t+(o<<1)>>1]=m;q=b[v>>1]|0;o=o+1|0}u=u+1|0}while((u|0)<(q&65535|0))}else o=1;u=o&65535;b[v>>1]=u}r=p+51|0;q=a[r>>0]|32;a[r>>0]=q;A=u&65535;if(!(a[K+147>>0]|0)){if(u<<16>>16){q=c[p+4>>2]|0;o=c[N+4>>2]|0;n=0;do{a[o+((b[q+(n<<1)>>1]|0)*24|0)+20>>0]=1;n=n+1|0}while((n|0)<(A|0));q=a[r>>0]|0}a[r>>0]=q|8}c[p+40>>2]=c[N+32>>2];r=c[N+8>>2]|0;if(r){x=u<<16>>16==0;y=p+4|0;z=p+32|0;do{d:do if((a[r+51>>0]&3)!=2){do if(x)q=b[r+46>>1]|0;else{s=c[r+4>>2]|0;q=b[r+46>>1]|0;n=q&65535;m=c[y>>2]|0;w=0;o=0;do{t=b[m+(w<<1)>>1]|0;v=n;u=s;while(1){if((v|0)<=0){u=1;break}if((b[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}o=u+o|0;w=w+1|0}while((w|0)<(A|0));n=r+46|0;if(!o)break;if(gs(K,r,(q&65535)+o|0)|0)break b;if(x)break d;t=b[n>>1]|0;w=r+4|0;m=r+32|0;v=t;u=0;t=t&65535;while(1){q=c[w>>2]|0;o=b[(c[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;s=q;while(1){if((v|0)<=0){C=63;break}if((b[s>>1]|0)==o<<16>>16)break;else{v=v+-1|0;s=s+2|0}}if((C|0)==63){C=0;b[q+(t<<1)>>1]=o;c[(c[m>>2]|0)+(t<<2)>>2]=c[(c[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=b[n>>1]|0}}while(0);b[r+48>>1]=q}while(0);r=c[r+20>>2]|0}while((r|0)!=0)}v=N+38|0;q=b[v>>1]|0;o=q<<16>>16;if((A|0)>=(o|0)){b[p+48>>1]=q;break}if((gs(K,p,o)|0)==0?(B=b[v>>1]|0,B<<16>>16>0):0){s=p+4|0;u=p+32|0;q=B;t=0;p=A;do{n=c[s>>2]|0;r=p;o=n;while(1){if((r|0)<=0){C=74;break}if((b[o>>1]|0)==(t|0))break;else{r=r+-1|0;o=o+2|0}}if((C|0)==74){C=0;b[n+(p<<1)>>1]=t;c[(c[u>>2]|0)+(p<<2)>>2]=11152;q=b[v>>1]|0;p=p+1|0}t=t+1|0}while((t|0)<(q<<16>>16|0))}}while(0);C=N+68|0;p=c[C>>2]|0;e:do if(p){o=c[K+20>>2]|0;if((o|0)>0){n=c[K+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0))break e;if((m|0)<(o|0))q=m;else{q=m;break}}}else q=0}else q=-1e6;while(0);n=c[N+24>>2]|0;f:do if(n){c[E+0>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[E+12>>2]=0;c[E+16>>2]=0;c[E+20>>2]=0;c[E+24>>2]=0;c[E+28>>2]=0;p=D+0|0;o=p+80|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(o|0));c[D>>2]=1;c[D+16>>2]=c[N>>2];c[D+24>>2]=N;c[D+48>>2]=-1;c[E>>2]=f;c[E+4>>2]=D;b[E+28>>1]=4;p=n+4|0;if((c[n>>2]|0)>0){o=0;do{if(hs(E,c[(c[p>>2]|0)+(o*20|0)>>2]|0)|0)break f;o=o+1|0}while((o|0)<(c[n>>2]|0))}}while(0);A=N+38|0;m=b[A>>1]|0;if(m<<16>>16>0){p=m<<16>>16;o=c[N+4>>2]|0;n=0;while(1){n=(d[o+22>>0]|0)+n|0;p=p+-1|0;if((p|0)<=0)break;else o=o+24|0}}else n=0;b[N+42>>1]=bs(((e[N+36>>1]|0)>>>15&65535)+n<<2,0)|0;n=c[N+8>>2]|0;if(n)do{is(n);n=c[n+20>>2]|0}while((n|0)!=0);if(!(a[I>>0]|0)){B=Kq(f)|0;if(!B)break;sh(B,61,0,0,0)|0;y=(c[N+12>>2]|0)==0;o=y?36672:36680;y=y?31232:35480;do if(!l){n=k<<24>>24==0?h:f+504|0;l=c[n>>2]|0;p=c[f+496>>2]|0;m=l-p|0;if((a[l>>0]|0)!=59)m=(c[n+4>>2]|0)+m|0;c[J>>2]=o;c[J+4>>2]=m;c[J+8>>2]=p;p=f+388|0;m=N;o=qh(K,36688,J)|0}else{p=f+388|0;sh(B,55,1,c[p>>2]|0,q)|0;o=c[B+4>>2]|0;if(o)a[o+(((c[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;c[f+68>>2]=2;a[F>>0]=14;c[F+4>>2]=1;a[F+1>>0]=0;c[F+8>>2]=0;c[F+12>>2]=0;er(f,l,F)|0;sh(B,61,1,0,0)|0;if(!(c[f+64>>2]|0)){m=js(f,l)|0;if(!m)break a;F=m+38|0;b[A>>1]=b[F>>1]|0;l=m+4|0;c[N+4>>2]=c[l>>2];b[F>>1]=0;c[l>>2]=0;gg(K,m)}z=N+4|0;w=b[A>>1]|0;if(w<<16>>16>0){s=w<<16>>16;t=0;o=0;u=c[z>>2]|0;while(1){m=c[u>>2]|0;n=0;while(1){r=a[m>>0]|0;if(!(r<<24>>24))break;else if(r<<24>>24==34)n=n+1|0;m=m+1|0;n=n+1|0}o=o+7+n|0;t=t+1|0;if((t|0)==(s|0))break;else u=u+24|0}r=o+2|0}else r=2;m=c[N>>2]|0;o=0;while(1){n=a[m>>0]|0;if(n<<24>>24==34)o=o+1|0;else if(!(n<<24>>24))break;m=m+1|0;o=o+1|0}u=o+r|0;x=(u|0)<50;r=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;o=mg(u,((u|0)<0)<<31>>31)|0;if(!o){a[L>>0]=1;m=N;o=0;break}Yc(u,o,36904,J)|0;n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;c[G>>2]=n-o&1073741823;ks(o,G,c[N>>2]|0);m=c[G>>2]|0;s=m+1|0;c[G>>2]=s;a[o+m>>0]=40;m=u-s|0;n=o+s|0;if((b[A>>1]|0)>0){w=0;t=c[z>>2]|0;while(1){Yc(m,n,r,J)|0;n=o+s|0;if(!n)n=0;else{r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;n=r-n&1073741823}c[G>>2]=n+s;ks(o,G,c[t>>2]|0);n=c[36920+((a[t+21>>0]|0)+-65<<2)>>2]|0;r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;s=r-n&1073741823;r=c[G>>2]|0;gw(o+r|0,n|0,s|0)|0;s=r+s|0;c[G>>2]=s;r=w+1|0;m=u-s|0;n=o+s|0;if((r|0)<(b[A>>1]|0)){w=r;t=t+24|0;r=v}else break}}c[J>>2]=x;Yc(m,n,10344,J)|0;m=N}while(0);n=K+16|0;k=c[m>>2]|0;F=c[p>>2]|0;l=c[f+384>>2]|0;c[J>>2]=c[(c[n>>2]|0)+(q<<4)>>2];c[J+4>>2]=(q|0)==1?13184:13208;c[J+8>>2]=y;c[J+12>>2]=k;c[J+16>>2]=k;c[J+20>>2]=F;c[J+24>>2]=o;c[J+28>>2]=l;xr(f,36704,J);ig(K,o);zr(f,q);if((a[N+44>>0]&8)!=0?(H=c[n>>2]|0,(c[(c[H+(q<<4)+12>>2]|0)+72>>2]|0)==0):0){c[J>>2]=c[H+(q<<4)>>2];xr(f,36792,J)}c[J>>2]=c[m>>2];Er(B,q,qh(K,36840,J)|0);if(!(a[I>>0]|0))break}else m=N;if(Ek((c[C>>2]|0)+8|0,c[m>>2]|0,N)|0){a[L>>0]=1;break}c[M>>2]=0;l=K+24|0;c[l>>2]=c[l>>2]|2;if(!(c[N+12>>2]|0)){l=c[f+496>>2]|0;c[N+48>>2]=(Jn(l,(c[((c[g>>2]|0)==0?h:g)>>2]|0)-l|0)|0)+13}}while(0);i=O;return}function Sq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[d>>2]|0;d=c[d+4>>2]|0;if((f|0)!=0?(e=fw(d|0,0,1,0)|0,e=ih(b,e,C)|0,(e|0)!=0):0){gw(e|0,f|0,d|0)|0;a[e+d>>0]=0}else e=0;ho(e)}return e|0}function Tq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;a:do if(b){g=a[b>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[9328+(k&255)>>0]|0|h<<8;b=b+1|0;if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1667785074){f=66;h=1667785074;g=b;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){o=a[b>>0]|0;k=o;f=65;h=1651273570;g=o<<24>>24==40?b:g}else l=14;else if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h&16777215|0)==6909556){f=68;break b}else l=5;if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[b>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[e>>0]=1,f<<24>>24<67):0){if(!g){a[e>>0]=5;break}b=a[g>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[g>>0]|0;if(!(b<<24>>24))break a}c[m>>2]=0;zn(g,m)|0;g=((c[m>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[m>>2]=g;a[e>>0]=g}}}else f=67;while(0);i=n;return f|0}function Uq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();m=o;n=c[e>>2]|0;k=c[e+484>>2]|0;do if(k){h=(b[k+38>>1]|0)+-1|0;l=c[k+4>>2]|0;p=c[f>>2]|0;q=(d[n+145>>0]|0)+4|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;k=m+20|0;a[k>>0]=q;c[m>>2]=78;c[m+4>>2]=79;c[m+24>>2]=0;ns(m,p)|0;if(!(a[k>>0]|0)){c[m>>2]=c[l+(h*24|0)>>2];ph(e,36480,m);break}k=l+(h*24|0)+4|0;Ck(n,c[k>>2]|0);c[k>>2]=Ir(n,c[f>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;ig(n,c[l>>2]|0);h=c[f+4>>2]|0;k=(c[f+8>>2]|0)-h|0;if((h|0)!=0?(g=fw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=ih(n,g,C)|0,(g|0)!=0):0){gw(g|0,h|0,k|0)|0;a[g+k>>0]=0}else g=0;c[l>>2]=g}while(0);Ck(n,c[f>>2]|0);i=o;return}function Vq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[a+64>>2]|0)==0:0)b=os(c[a>>2]|0,d,e)|0;else{b=jr(c[a>>2]|0,b,f,1)|0;ps(c[a>>2]|0,b,d,e)}if((b|0)!=0?(g=c[(c[a>>2]|0)+100>>2]|0,(g|0)<(c[b+24>>2]|0)):0){c[h>>2]=g;ph(a,27152,h)}i=k;return b|0}function Wq(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))ba();z=A;x=c[e+484>>2]|0;do if((x|0)!=0?(a[e+451>>0]|0)==0:0){y=x+44|0;m=d[y>>0]|0;if(m&4){c[z>>2]=c[x>>2];ph(e,36376,z);break}v=m|4;a[y>>0]=v;w=(f|0)==0;if(w){m=(b[x+38>>1]|0)+-1|0;t=c[x+4>>2]|0;l=t+(m*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=m;n=1;m=c[t+(m*24|0)+12>>2]|0}else{u=c[f>>2]|0;if((u|0)>0){r=f+4|0;s=x+4|0;q=b[x+38>>1]|0;t=0;m=0;do{a:do if(q<<16>>16>0){o=c[(c[r>>2]|0)+(t*20|0)+4>>2]|0;p=c[s>>2]|0;n=0;while(1){l=n+1|0;if(!($c(o,c[p+(n*24|0)>>2]|0)|0))break;if((l|0)<(q<<16>>16|0))n=l;else break a}l=p+(n*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=n;m=c[p+(n*24|0)+12>>2]|0}else l=0;while(0);t=t+1|0}while((t|0)!=(u|0))}else{l=-1;m=0}n=(u|0)==1}if(n&(m|0)!=0?($c(m,11144)|0|k|0)==0:0){b[x+36>>1]=l;a[x+45>>0]=g;a[y>>0]=v|h<<3;if(w){f=0;break}a[e+448>>0]=a[(c[f+4>>2]|0)+12>>0]|0;break}if(h){ph(e,36424,z);break}m=c[e+8>>2]|0;l=(m|0)!=0;if(l)c[e+420>>2]=sh(m,156,0,0,0)|0;f=Xq(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(t=f+51|0,a[t>>0]=a[t>>0]&-4|2,l):0){f=c[e+420>>2]|0;l=c[m+32>>2]|0;if(l>>>0>f>>>0)c[(c[m+4>>2]|0)+(f*20|0)+8>>2]=l;c[(c[m+24>>2]|0)+88>>2]=l+-1;f=0}else f=0}while(0);Jk(c[e>>2]|0,f);i=A;return}function Xq(f,g,h,k,l,m,n,o,p,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;V=i;i=i+144|0;if((i|0)>=(j|0))ba();S=V;B=V+112|0;u=V+88|0;Q=V+84|0;K=V+80|0;U=c[f>>2]|0;c[Q>>2]=0;c[K>>2]=0;P=U+65|0;a:do if(((a[P>>0]|0)==0?(a[f+451>>0]|0)==0:0)?(Cn(f)|0)==0:0){R=(k|0)!=0;b:do if(R){g=ar(f,g,h,Q)|0;if((g|0)<0){r=0;h=0;break a}if((a[U+145>>0]|0)==0?(r=Fr(f,k)|0,(c[h+4>>2]|0)==0&(r|0)!=0):0)g=(c[r+68>>2]|0)==(c[(c[U+16>>2]|0)+28>>2]|0)?1:g;h=c[Q>>2]|0;r=c[f>>2]|0;c[u>>2]=f;r=c[r+16>>2]|0;c[u+12>>2]=c[r+(g<<4)>>2];c[u+4>>2]=c[r+(g<<4)+12>>2];c[u+16>>2]=20632;c[u+20>>2]=h;r=(g|0)==1;c[u+8>>2]=r&1;Gr(u,k)|0;t=Qr(f,0,k+8|0)|0;if(!t){r=0;h=0;break a}if(r?(c[(c[U+16>>2]|0)+28>>2]|0)!=(c[t+68>>2]|0):0){c[S>>2]=c[t>>2];ph(f,35920,S);r=0;h=0;break a}if((a[t+44>>0]&32)!=0?(s=c[t+8>>2]|0,(s|0)!=0):0){r=s;while(1){if((a[r+51>>0]&3)==2){s=g;J=r;u=t;break b}r=c[r+20>>2]|0;if(!r){s=g;J=0;u=t;break}}}else{s=g;J=0;u=t}}else{u=c[f+484>>2]|0;if(!u){r=0;h=0;break a}g=c[u+68>>2]|0;if(g){r=c[U+20>>2]|0;if((r|0)>0){h=c[U+16>>2]|0;t=0;while(1){s=t+1|0;if((c[h+(t<<4)+12>>2]|0)==(g|0)){h=0;s=t;J=0;break b}if((s|0)<(r|0))t=s;else{h=0;J=0;break}}}else{h=0;s=0;J=0}}else{h=0;s=-1e6;J=0}}while(0);O=U+16|0;C=c[O>>2]|0;g=C+(s<<4)|0;x=c[u>>2]|0;if(((Bc(x,25568,7)|0)==0?(a[U+145>>0]|0)==0:0)?(Bc(x+7|0,35976,9)|0)!=0:0){c[S>>2]=x;ph(f,35992,S);r=0;h=0;break}if(c[u+12>>2]|0){ph(f,36024,S);r=0;h=0;break}N=u+44|0;if(a[N>>0]&16){ph(f,36056,S);r=0;h=0;break}D=(h|0)==0;if(!D){h=Sq(U,h)|0;if(!h){r=0;h=0;break}if(Hr(f,h)|0){r=0;break}if((a[U+145>>0]|0)==0?(Wh(U,h,0)|0)!=0:0){c[S>>2]=h;ph(f,36096,S);r=0;break}if(Zp(U,h,c[g>>2]|0)|0)if(!q){c[S>>2]=h;ph(f,36136,S);r=0;break}else{wr(f,s);r=0;break}else t=h}else{r=c[u+8>>2]|0;if(!r)t=1;else{t=1;do{t=t+1|0;r=c[r+20>>2]|0}while((r|0)!=0)}c[S>>2]=x;c[S+4>>2]=t;t=qh(U,36160,S)|0;if(!t){r=0;h=0;break}}g=c[g>>2]|0;r=(s|0)==1;L=r?13184:13208;if((Oq(f,18,L,0,g)|0)==0?(Oq(f,r?3:1,t,c[u>>2]|0,g)|0)==0:0){if(!l){l=hr(f,0,0)|0;if(!l){l=0;r=0;h=t;break}F=gh(c[f>>2]|0,c[(c[u+4>>2]|0)+(((b[u+38>>1]|0)+-1|0)*24|0)>>2]|0)|0;G=c[l+4>>2]|0;c[G+4>>2]=F;a[G+12>>0]=p}A=c[l>>2]|0;if((A|0)>0){x=c[l+4>>2]|0;v=0;g=0;do{r=c[x+(v*20|0)>>2]|0;if(r){h=c[r+8>>2]|0;if(!h)r=1;else{r=h;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;r=(r-h&1073741823)+1|0}g=r+g|0}v=v+1|0}while((v|0)<(A|0));h=g}else h=0;if(!t)r=0;else{g=t;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;r=g-t&1073741823}F=(J|0)!=0;if(F)g=e[J+46>>1]|0;else g=1;M=qs(U,A+g&65535,h+1+r|0,K)|0;c:do if(!(a[P>>0]|0)){E=c[K>>2]|0;c[M>>2]=E;I=r+1|0;z=E+I|0;c[K>>2]=z;gw(E|0,t|0,I|0)|0;c[M+12>>2]=u;I=M+50|0;a[I>>0]=m;E=M+51|0;a[E>>0]=a[E>>0]&-12|((m|0)!=0&1)<<3&255|D&1;H=M+24|0;c[H>>2]=c[(c[O>>2]|0)+(s<<4)+12>>2];g=c[l>>2]|0;G=M+46|0;b[G>>1]=g;if(o){c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B+24>>2]=0;c[B+28>>2]=0;x=S+0|0;h=x+80|0;do{c[x>>2]=0;x=x+4|0}while((x|0)<(h|0));c[S>>2]=1;c[S+16>>2]=c[u>>2];c[S+24>>2]=u;c[S+48>>2]=-1;c[B>>2]=f;c[B+4>>2]=S;b[B+28>>1]=16;hs(B,o)|0;c[M+36>>2]=o;g=c[l>>2]|0}w=(d[(c[C+(s<<4)+12>>2]|0)+76>>0]|0)>3;d:do if((g|0)>0){D=u+4|0;C=u+38|0;B=M+4|0;o=U+145|0;g=M+32|0;v=M+28|0;h=0;p=c[l+4>>2]|0;while(1){r=c[p+4>>2]|0;x=b[C>>1]|0;e:do if(x<<16>>16>0){A=0;y=c[D>>2]|0;while(1){if(!($c(r,c[y>>2]|0)|0)){q=A;break e}A=A+1|0;if((A|0)<(x<<16>>16|0))y=y+24|0;else{q=A;break}}}else q=0;while(0);if((q|0)>=(x<<16>>16|0))break;b[(c[B>>2]|0)+(h<<1)>>1]=q;A=c[p>>2]|0;if(!A){A=c[(c[D>>2]|0)+(q*24|0)+16>>2]|0;A=(A|0)!=0?A:11152}else{y=c[A+8>>2]|0;if(!y)A=1;else{A=y;while(1)if(!(a[A>>0]|0))break;else A=A+1|0;A=(A-y&1073741823)+1|0}gw(z|0,y|0,A|0)|0;y=c[K>>2]|0;z=y+A|0;c[K>>2]=z;A=y}if((a[o>>0]|0)==0?(_q(f,A)|0)==0:0){h=0;r=0;T=134;break c}c[(c[g>>2]|0)+(h<<2)>>2]=A;a[(c[v>>2]|0)+h>>0]=w?a[p+12>>0]|0:0;if(!(a[(c[D>>2]|0)+(q*24|0)+20>>0]|0))a[E>>0]=a[E>>0]&-9;h=h+1|0;if((h|0)<(c[l>>2]|0))p=p+20|0;else break d}c[S>>2]=c[u>>2];c[S+4>>2]=r;ph(f,36184,S);a[f+17>>0]=1;h=0;r=0;T=134;break c}else h=0;while(0);do if(F){w=J+46|0;x=b[w>>1]|0;if(!(x<<16>>16))break;B=J+4|0;C=M+4|0;D=M+48|0;p=J+32|0;q=M+32|0;g=J+28|0;v=M+28|0;o=0;do{y=b[(c[B>>2]|0)+(o<<1)>>1]|0;r=c[C>>2]|0;A=e[G>>1]|0;z=r;while(1){if((A|0)<=0){T=92;break}if((b[z>>1]|0)==y<<16>>16){T=91;break}else{A=A+-1|0;z=z+2|0}}if((T|0)==91){T=0;b[D>>1]=(b[D>>1]|0)+-1<<16>>16}else if((T|0)==92){T=0;b[r+(h<<1)>>1]=y;c[(c[q>>2]|0)+(h<<2)>>2]=c[(c[p>>2]|0)+(o<<2)>>2];a[(c[v>>2]|0)+h>>0]=a[(c[g>>2]|0)+o>>0]|0;x=b[w>>1]|0;h=h+1|0}o=o+1|0}while((o|0)<(x&65535|0))}else{b[(c[M+4>>2]|0)+(h<<1)>>1]=-1;c[(c[M+32>>2]|0)+(h<<2)>>2]=11152}while(0);_p(M);o=f+484|0;g=c[o>>2]|0;if(!g){is(M);g=c[o>>2]|0}f:do if((u|0)==(g|0)){r=c[u+8>>2]|0;if(!r)break;y=b[G>>1]|0;z=M+4|0;A=M+32|0;while(1){if((b[r+46>>1]|0)==y<<16>>16){g:do if(!(y<<16>>16)){o=0;g=0}else{v=c[r+4>>2]|0;w=c[z>>2]|0;x=r+32|0;g=0;while(1){if((b[v+(g<<1)>>1]|0)!=(b[w+(g<<1)>>1]|0)){o=y;break g}o=c[(c[x>>2]|0)+(g<<2)>>2]|0;h=c[(c[A>>2]|0)+(g<<2)>>2]|0;if((o|0)!=(h|0)?($c(o,h)|0)!=0:0){o=y;break g}g=g+1|0;if((g|0)>=(y&65535|0)){o=y;break}}}while(0);if((g|0)==(o&65535|0))break}r=c[r+20>>2]|0;if(!r)break f}g=r+50|0;h=a[g>>0]|0;o=a[I>>0]|0;if(h<<24>>24==o<<24>>24){h=0;break c}if(!(h<<24>>24==10|o<<24>>24==10)){c[S>>2]=0;ph(f,36216,S);h=a[g>>0]|0}if(h<<24>>24!=10){h=0;T=134;break c}a[g>>0]=a[I>>0]|0;h=0;break c}while(0);h=U+145|0;do if(!(a[h>>0]|0)){if(c[f+64>>2]|0){T=126;break}if(!((a[N>>0]&32)==0|R)){T=126;break}r=f+72|0;o=(c[r>>2]|0)+1|0;c[r>>2]=o;r=Kq(f)|0;if(!r){h=0;r=0;T=134;break c}G=c[f+408>>2]|0;G=(G|0)==0?f:G;wr(f,s);F=G+328|0;c[F>>2]=c[F>>2]|1<<s;G=G+20|0;a[G>>0]=d[G>>0]|1;sh(r,120,s,o,0)|0;if(!n)g=0;else{g=c[c[Q>>2]>>2]|0;G=(c[f+504>>2]|0)-g+(c[f+508>>2]|0)|0;F=G+-1|0;G=(a[g+F>>0]|0)==59?F:G;c[S>>2]=(m|0)==0?10360:36288;c[S+4>>2]=G;c[S+8>>2]=g;g=qh(U,36264,S)|0}F=c[M>>2]|0;G=c[u>>2]|0;c[S>>2]=c[(c[O>>2]|0)+(s<<4)>>2];c[S+4>>2]=L;c[S+8>>2]=F;c[S+12>>2]=G;c[S+16>>2]=o;c[S+20>>2]=g;xr(f,36296,S);ig(U,g);if(!R)break;rs(f,M,o);zr(f,s);c[S>>2]=c[M>>2];Er(r,s,qh(U,36344,S)|0);sh(r,144,0,0,0)|0;T=126}else{if(Ek((c[H>>2]|0)+24|0,c[M>>2]|0,M)|0){a[P>>0]=1;h=0;r=0;T=134;break c}G=U+24|0;c[G>>2]=c[G>>2]|2;if(!R)break;c[M+40>>2]=c[U+140>>2];T=126}while(0);if((T|0)==126?!((a[h>>0]|0)!=0|(k|0)==0):0){h=0;r=0;T=134;break}h=c[u+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[h+50>>0]|0)==5)break;do{r=h+20|0;h=c[r>>2]|0;if(!h){h=0;break}}while((a[h+50>>0]|0)!=5);c[M+20>>2]=h;c[r>>2]=M;o=0;r=M;h=t;break a}while(0);c[M+20>>2]=h;c[u+8>>2]=M;o=0;r=M;h=t;break a}else{h=o;r=0;T=134}while(0);if((T|0)==134)if(!M){o=h;h=t;break}Fk(U,M);o=h;h=t}else{r=0;h=t}}else{r=0;h=0}while(0);Ck(U,o);Jk(U,l);zo(U,k);ig(U,h);i=V;return r|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[e+484>>2]|0;h=c[e>>2]|0;if(((g|0)!=0?(a[e+451>>0]|0)==0:0)?(b[(c[(c[(c[h+16>>2]|0)+(d[h+144>>0]<<4)+4>>2]|0)+4>>2]|0)+22>>1]&1)==0:0){h=g+24|0;g=hr(e,c[h>>2]|0,f)|0;c[h>>2]=g;if(c[e+324>>2]|0)ir(e,g,e+320|0,1)}else Ck(h,f);return}function Zq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))ba();z=C;B=c[d>>2]|0;A=c[d+484>>2]|0;a:do if((A|0)!=0?(a[d+451>>0]|0)==0:0){w=(e|0)==0;do if(w){y=b[A+38>>1]|0;l=(y<<16>>16)+-1|0;if(y<<16>>16<1){k=0;break a}if(g)if((c[g>>2]|0)==1){l=1;k=13}else{c[z>>2]=c[(c[A+4>>2]|0)+(l*24|0)>>2];c[z+4>>2]=f;ph(d,35712,z);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[e>>2]|0;k=12;break}l=c[g>>2]|0;if((l|0)==(c[e>>2]|0))k=13;else{ph(d,35776,z);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;p=m;t=0;m=(l<<3)+37+(c[m>>2]|0)|0;y=l}else if((k|0)==13){p=f+4|0;m=(l<<3)+37+(c[p>>2]|0)|0;q=c[g>>2]|0;if((q|0)>0){r=c[g+4>>2]|0;s=0;do{o=c[r+(s*20|0)+4>>2]|0;if(!o)k=1;else{n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;k=(n-o&1073741823)+1|0}m=k+m|0;s=s+1|0}while((s|0)<(q|0));t=1;y=l}else{t=1;y=l}}k=ih(B,m,((m|0)<0)<<31>>31)|0;if(k){bw(k|0,0,m|0)|0;c[k>>2]=A;x=A+16|0;c[k+4>>2]=c[x>>2];u=k+36|0;n=u+(y<<3)|0;v=k+8|0;c[v>>2]=n;gw(n|0,c[f>>2]|0,c[p>>2]|0)|0;a[n+(c[p>>2]|0)>>0]=0;ho(n);n=n+((c[p>>2]|0)+1)|0;c[k+20>>2]=y;b:do if(!w){if((y|0)>0){m=A+4|0;f=e+4|0;o=b[A+38>>1]|0;l=0;while(1){c:do if(o<<16>>16>0){s=c[m>>2]|0;r=c[(c[f>>2]|0)+(l*20|0)+4>>2]|0;q=0;while(1){p=q+1|0;if(!($c(c[s+(q*24|0)>>2]|0,r)|0)){p=q;break}if((p|0)<(o<<16>>16|0))q=p;else break c}c[u+(l<<3)>>2]=p}else p=0;while(0);if((p|0)>=(o<<16>>16|0))break;l=l+1|0;if((l|0)>=(y|0))break b}c[z>>2]=c[(c[f>>2]|0)+(l*20|0)+4>>2];ph(d,35872,z);break a}}else c[u>>2]=(b[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){o=g+4|0;p=0;while(1){m=c[(c[o>>2]|0)+(p*20|0)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[u+(p<<3)+4>>2]=n;gw(n|0,m|0,l|0)|0;a[n+l>>0]=0;p=p+1|0;if((p|0)==(y|0))break;else n=n+(l+1)|0}}a[k+24>>0]=0;a[k+25>>0]=h;a[k+26>>0]=h>>>8;l=Ek((c[A+68>>2]|0)+56|0,c[v>>2]|0,k)|0;if((l|0)==(k|0)){a[B+65>>0]=1;break}if(l){c[k+12>>2]=l;c[l+16>>2]=k}c[x>>2]=k;k=0}else k=0}else k=0;while(0);ig(B,k);Jk(B,e);Jk(B,g);i=C;return}function _q(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[b>>2]|0;f=a[e+62>>0]|0;g=a[e+145>>0]|0;e=Un(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[e+12>>2]|0)!=0:0)break;e=ss(b,f,e,d)|0}while(0);return e|0}function $q(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y;s=y+12|0;x=c[e>>2]|0;do if(!(a[x+65>>0]|0)){h=(h|0)!=0;if(h){r=x+68|0;a[r>>0]=(a[r>>0]|0)+1<<24>>24;v=Qr(e,g,f+8|0)|0;a[r>>0]=(a[r>>0]|0)+-1<<24>>24}else v=Qr(e,g,f+8|0)|0;if(!v){if(!h)break;vr(e,c[f+12>>2]|0);break}p=v+68|0;l=c[p>>2]|0;a:do if(l){h=c[x+20>>2]|0;if((h|0)>0){k=c[x+16>>2]|0;n=0;while(1){m=n+1|0;if((c[k+(n<<4)+12>>2]|0)==(l|0)){m=n;break a}if((m|0)<(h|0))n=m;else break}}else m=0}else m=-1e6;while(0);t=v+44|0;if((a[t>>0]&16)!=0?(dr(e,v)|0)!=0:0)break;n=(m|0)==1;u=n?13184:13208;h=c[(c[x+16>>2]|0)+(m<<4)>>2]|0;if(!(Oq(e,9,u,0,h)|0)){k=(g|0)!=0;do if(k){l=n?15:17;n=0}else{if(!(a[t>>0]&16)){l=n?13:11;n=0;break}n=v+60|0;while(1){n=c[n>>2]|0;if((c[n>>2]|0)==(x|0))break;else n=n+24|0}l=30;n=c[(c[n+4>>2]|0)+4>>2]|0}while(0);if((Oq(e,l,c[v>>2]|0,n,h)|0)==0?(Oq(e,9,c[v>>2]|0,0,h)|0)==0:0){n=c[v>>2]|0;if((Bc(n,25568,7)|0)==0?(Bc(n,35488,11)|0)!=0:0){c[w>>2]=n;ph(e,35504,w);break}h=v+12|0;l=(c[h>>2]|0)==0;if(k){if(l){c[w>>2]=n;ph(e,35536,w);break}}else if(!l){c[w>>2]=n;ph(e,35576,w);break}if(Kq(e)|0){q=e+408|0;l=c[q>>2]|0;l=(l|0)==0?e:l;wr(e,m);r=1<<m;k=l+328|0;c[k>>2]=c[k>>2]|r;l=l+20|0;a[l>>0]=d[l>>0]|1;yr(e,m,28544,c[v>>2]|0);l=c[e>>2]|0;k=l+24|0;b:do if(((c[k>>2]&524288|0)!=0?(a[t>>0]&16)==0:0)?(c[h>>2]|0)==0:0){o=Kq(e)|0;s=Zm((c[p>>2]|0)+56|0,c[v>>2]|0,s)|0;if((s|0)!=0?(c[s+8>>2]|0)!=0:0)n=0;else{n=c[v+16>>2]|0;if(!n)break;while(1){if(a[n+24>>0]|0)break;if(c[k>>2]&16777216)break;n=c[n+4>>2]|0;if(!n)break b}n=ts(o)|0;sh(o,135,1,n,0)|0}s=e+438|0;a[s>>0]=1;nr(e,us(l,f,0)|0,0);a[s>>0]=0;if(!(c[k>>2]&16777216)){sh(o,135,0,(c[o+32>>2]|0)+2|0,0)|0;vs(e,787,2,0,-2,4)}if(n){l=c[o+24>>2]|0;h=~n;do if((n|0)<0){n=c[l+112>>2]|0;if(!n)break;c[n+(h<<2)>>2]=c[o+32>>2]}while(0);c[l+88>>2]=(c[o+32>>2]|0)+-1}}while(0);o=c[e>>2]|0;p=o+16|0;l=c[p>>2]|0;h=Kq(e)|0;s=c[q>>2]|0;s=(s|0)==0?e:s;wr(e,m);q=s+328|0;c[q>>2]=c[q>>2]|r;s=s+20|0;a[s>>0]=d[s>>0]|1;if(a[t>>0]&16)sh(h,146,0,0,0)|0;n=ws(e,v)|0;if(n)do{Mr(e,n);n=c[n+32>>2]|0}while((n|0)!=0);l=l+(m<<4)|0;if(a[t>>0]&8){s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=s;xr(e,35608,w)}s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=u;c[w+8>>2]=s;xr(e,35656,w);if((g|0)==0?(a[t>>0]&16)==0:0)xs(e,v);if(a[t>>0]&16){s=c[v>>2]|0;th(h,sh(h,148,m,0,0)|0,s,0)}k=c[v>>2]|0;th(h,sh(h,124,m,0,0)|0,k,0);zr(e,m);h=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;k=b[h+78>>1]|0;if(k&2){l=c[h+16>>2]|0;if(l){k=l;do{h=c[k+8>>2]|0;if(c[h+12>>2]|0){Hk(o,h);c[h+4>>2]=0;b[h+38>>1]=0}k=c[k>>2]|0}while((k|0)!=0);k=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;h=k;k=b[k+78>>1]|0}b[h+78>>1]=k&65533}}}}}while(0);zo(x,f);i=y;return}function ar(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;h=c[b>>2]|0;do if((f|0)!=0?(c[f+4>>2]|0)!=0:0){if(a[h+145>>0]|0){ph(b,28488,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1;break}c[g>>2]=f;g=Sq(h,e)|0;f=Rh(h,g)|0;ig(h,g);if((f|0)<0){c[k>>2]=e;ph(b,28512,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[h+144>>0]|0;c[g>>2]=e}i=m;return f|0}function br(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Dr(a,c[b>>2]|0)|0){b=1;break a}if(Gr(a,c[b+32>>2]|0)|0){b=1;break a}if(Cr(a,c[b+36>>2]|0)|0){b=1;break a}if(Dr(a,c[b+40>>2]|0)|0){b=1;break a}if(Cr(a,c[b+44>>2]|0)|0){b=1;break a}if(Dr(a,c[b+48>>2]|0)|0){b=1;break a}if(Cr(a,c[b+60>>2]|0)|0){b=1;break a}if(Cr(a,c[b+64>>2]|0)|0){b=1;break a}b=c[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function cr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=ih(d,72,0)|0,(h|0)!=0):0){c[h>>2]=Lr(d,c[f>>2]|0,g)|0;c[h+32>>2]=us(d,c[f+32>>2]|0,g)|0;c[h+36>>2]=Ir(d,c[f+36>>2]|0,g,0)|0;c[h+40>>2]=Lr(d,c[f+40>>2]|0,g)|0;c[h+44>>2]=Ir(d,c[f+44>>2]|0,g,0)|0;c[h+48>>2]=Lr(d,c[f+48>>2]|0,g)|0;a[h+4>>0]=a[f+4>>0]|0;j=cr(d,c[f+52>>2]|0,g)|0;c[h+52>>2]=j;if(j)c[j+56>>2]=h;c[h+56>>2]=0;c[h+60>>2]=Ir(d,c[f+60>>2]|0,g,0)|0;c[h+64>>2]=Ir(d,c[f+64>>2]|0,g,0)|0;c[h+8>>2]=0;c[h+12>>2]=0;b[h+6>>1]=(e[f+6>>1]|0)&65527;c[h+16>>2]=-1;c[h+20>>2]=-1;l=f+24|0;j=c[l+4>>2]|0;g=h+24|0;c[g>>2]=c[l>>2];c[g+4>>2]=j;g=c[f+68>>2]|0;if((g|0)!=0?(k=c[g>>2]<<4|8,i=ih(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){bw(i|0,0,k|0)|0;c[i>>2]=c[g>>2];if((c[g>>2]|0)>0){f=i+8|0;j=0;do{c[f+(j<<4)+8>>2]=cr(d,c[g+(j<<4)+16>>2]|0,0)|0;c[f+(j<<4)+4>>2]=Lr(d,c[g+(j<<4)+12>>2]|0,0)|0;c[f+(j<<4)>>2]=gh(d,c[g+(j<<4)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[g>>2]|0))}}else i=0;c[h+68>>2]=i}else h=0;return h|0}function dr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))ba();p=t;k=t+8|0;m=t+4|0;s=c[d>>2]|0;n=f+44|0;h=a[n>>0]|0;a:do if(!(h&16))q=11;else{g=c[f+60>>2]|0;if(g)do{if((c[g>>2]|0)==(s|0)){q=11;break a}g=c[g+24>>2]|0}while((g|0)!=0);g=f+56|0;h=Zm(s+308|0,c[c[g>>2]>>2]|0,k)|0;if((h|0)!=0?(l=c[h+8>>2]|0,(l|0)!=0):0){c[m>>2]=0;l=(vn(s,f,l,c[(c[l>>2]|0)+8>>2]|0,m)|0)==0;h=c[m>>2]|0;if(l){ig(s,h);h=a[n>>0]|0;q=11;break}else{c[p>>2]=h;ph(d,10344,p);ig(s,h);g=1;break}}c[p>>2]=c[c[g>>2]>>2];ph(d,28320,p);g=1}while(0);do if((q|0)==11)if((h&16)==0?(r=f+38|0,o=b[r>>1]|0,o<<16>>16<=0):0){if(o<<16>>16<0){c[p>>2]=c[f>>2];ph(d,26752,p);g=1;break}h=cr(s,c[f+12>>2]|0,0)|0;if(!h)g=1;else{o=s+250|0;n=a[o>>0]|0;q=d+68|0;p=c[q>>2]|0;ys(d,c[h+32>>2]|0);b[r>>1]=-1;a[o>>0]=0;m=s+284|0;l=c[m>>2]|0;c[m>>2]=0;g=js(d,h)|0;c[m>>2]=l;a[o>>0]=n;c[q>>2]=p;if(!g){b[r>>1]=0;g=1}else{d=g+38|0;b[r>>1]=b[d>>1]|0;q=g+4|0;c[f+4>>2]=c[q>>2];b[d>>1]=0;c[q>>2]=0;gg(s,g);g=(c[f+68>>2]|0)+78|0;b[g>>1]=e[g>>1]|0|2;g=0}Ik(s,h,1)}}else g=0;while(0);i=t;return g|0}
function er(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0;za=i;i=i+240|0;if((i|0)>=(j|0))ba();oa=za;pa=za+220|0;ha=za+216|0;fa=za+196|0;ga=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;da=za+64|0;ja=za+32|0;xa=f+464|0;ya=c[xa>>2]|0;la=f+468|0;ua=c[la>>2]|0;c[la>>2]=ua+1;c[xa>>2]=ua;ua=c[f>>2]|0;a:do if((((g|0)!=0?(ma=ua+65|0,(a[ma>>0]|0)==0):0)?(k=f+64|0,(c[k>>2]|0)==0):0)?(Oq(f,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{c[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ia=g+48|0;if((d[h>>0]|0)<9){Jk(ua,c[ia>>2]|0);c[ia>>2]=0;ca=g+6|0;b[ca>>1]=e[ca>>1]&65534}zs(f,g,0);c[sa+0>>2]=0;c[sa+4>>2]=0;c[sa+8>>2]=0;c[sa+12>>2]=0;c[sa+16>>2]=0;c[sa+20>>2]=0;c[sa+24>>2]=0;c[sa>>2]=c[ia>>2];ka=g+32|0;u=c[ka>>2]|0;t=c[g>>2]|0;b:do if(((c[k>>2]|0)==0?(a[ma>>0]|0)==0:0)?(qa=g+6|0,w=(e[qa>>1]|0)>>>2&1,ta=Kq(f)|0,(ta|0)!=0):0){if((c[t>>2]|0)>1?(a[h>>0]&-2)<<24>>24==10:0){ph(f,35368,oa);wa=444;break}na=g+52|0;t=c[na>>2]|0;c:do if(!t){o=f+460|0;n=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;Q=g+64|0;R=g+4|0;S=ua+60|0;T=ta+32|0;U=f+72|0;V=da+4|0;W=da+1|0;X=da+8|0;Y=da+12|0;Z=ta+4|0;_=ta+24|0;$=f+19|0;aa=f+56|0;ca=f+80|0;P=0;v=w;while(1){if((P|0)>=(c[u>>2]|0)){E=m;N=0;w=v;R=u;break c}K=c[u+(P*72|0)+28>>2]|0;do if(!K)w=P;else{M=u+(P*72|0)+32|0;x=c[M>>2]|0;if(x){if(a[u+(P*72|0)+45>>0]&4){w=P;break}sh(ta,17,c[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}c[oa>>2]=0;As(g,oa);c[o>>2]=(c[o>>2]|0)+(c[oa>>2]|0);s=b[K+6>>1]&4;N=c[n>>2]|0;r=c[f>>2]|0;d:do if(!(b[r+60>>1]&1)){I=c[ka>>2]|0;q=c[I+(P*72|0)+48>>2]|0;H=I+(P*72|0)+28|0;L=c[H>>2]|0;p=s<<16>>16!=0;do if(p){if(v){wa=120;break d}if((c[I>>2]|0)>1){wa=120;break d}O=c[m>>2]|0;if((O|0)!=0?(c[O+4>>2]&2097152|0)!=0:0){wa=120;break d}E=c[g>>2]|0;do if(E){B=c[E>>2]|0;if((B|0)<=0)break;F=c[E+4>>2]|0;E=0;D=0;do{D=c[(c[F+(E*20|0)>>2]|0)+4>>2]|D;E=E+1|0}while((E|0)!=(B|0));if(D&2097152){wa=120;break d}}while(0);E=c[ia>>2]|0;if(!E)break;B=c[E>>2]|0;if((B|0)<=0)break;F=c[E+4>>2]|0;E=0;D=0;do{D=c[(c[F+(E*20|0)>>2]|0)+4>>2]|D;E=E+1|0}while((E|0)!=(B|0));if(D&2097152){wa=120;break d}}while(0);F=c[L+32>>2]|0;E=(c[L+60>>2]|0)==0;if(!E?(c[k>>2]|0)!=0:0){wa=120;break}if(c[L+64>>2]|0){wa=120;break}B=b[qa>>1]|0;D=(B&64)==0;if(!(D|E)){wa=120;break}if(!(c[F>>2]|0)){wa=120;break}A=b[L+6>>1]|0;if(A&1){wa=120;break}F=E|D^1;if(!F?(c[I>>2]|0)>1|(v|0)!=0:0){wa=120;break}E=B&1;if(E<<16>>16!=0&p){wa=120;break}y=c[ia>>2]|0;z=(y|0)==0;if(!z?(c[L+48>>2]|0)!=0:0){wa=120;break}G=(v|0)!=0;if(G?(c[L+48>>2]|0)!=0:0){wa=120;break}if(F){if(A&6144){wa=120;break}}else if(!((c[m>>2]|0)==0&E<<16>>16==0&(A&6144)==0)){wa=120;break}if((B&2048)!=0?(c[L+52>>2]|0)!=0:0){wa=120;break}O=I+(P*72|0)+44|0;if(a[O>>0]&32){wa=120;break}B=L+52|0;F=c[B>>2]|0;do if(F){if(!(E<<16>>16==0&(((c[L+48>>2]|0)!=0|G)^1))){wa=120;break d}if((c[I>>2]|0)!=1){wa=120;break d}e:do if(L){if(!(A&5))D=L;else{wa=120;break d}while(1){E=(F|0)==0;if(!E?(a[D+4>>0]|0)!=116:0){wa=120;break d}if((c[c[D+32>>2]>>2]|0)<1){wa=120;break d}if((c[c[L>>2]>>2]|0)!=(c[c[D>>2]>>2]|0)){wa=120;break d}if(E)break e;if(b[F+6>>1]&5){wa=120;break d}D=F;F=c[F+52>>2]|0}}while(0);if(z)break;D=c[y>>2]|0;if((D|0)<=0)break;F=c[y+4>>2]|0;E=0;do{if(!(b[F+(E*20|0)+16>>1]|0)){wa=120;break d}E=E+1|0}while((E|0)<(D|0))}while(0);x=I+(P*72|0)+16|0;c[n>>2]=c[x>>2];Oq(f,21,0,0,0)|0;c[n>>2]=N;F=c[B>>2]|0;f:do if(!F)wa=81;else{y=r+65|0;B=c[ia>>2]|0;A=c[k>>2]|0;z=c[Q>>2]|0;D=c[na>>2]|0;while(1){c[ia>>2]=0;c[ka>>2]=0;c[na>>2]=0;c[k>>2]=0;c[Q>>2]=0;E=cr(r,g,0)|0;c[Q>>2]=z;c[k>>2]=A;c[ia>>2]=B;c[ka>>2]=I;a[R>>0]=116;if(!E)E=D;else{c[E+52>>2]=D;if(D)c[D+56>>2]=E;c[E+56>>2]=g}c[na>>2]=E;if(a[y>>0]|0)break f;F=c[F+52>>2]|0;if(!F){wa=81;break}else D=E}}while(0);if((wa|0)==81){wa=0;J=c[H>>2]|0;B=I+(P*72|0)+12|0;ig(r,c[B>>2]|0);ig(r,c[x>>2]|0);D=I+(P*72|0)+20|0;ig(r,c[D>>2]|0);c[B>>2]=0;c[x>>2]=0;c[D>>2]=0;c[H>>2]=0;D=I+(P*72|0)+24|0;B=c[D>>2]|0;if(B){A=B+40|0;z=b[A>>1]|0;if(z<<16>>16==1){N=c[l>>2]|0;N=((N|0)==0?f:N)+524|0;c[B+72>>2]=c[N>>2];c[N>>2]=B}else b[A>>1]=z+-1<<16>>16;c[D>>2]=0}N=P+1|0;M=r+65|0;L=g;K=J;while(1){y=c[K+32>>2]|0;x=c[y>>2]|0;E=L+32|0;F=c[E>>2]|0;if(!F){F=lr(r,0,0,0)|0;c[E>>2]=F;if(!F)break;else w=0}else w=a[O>>0]|0;if((x|0)>1){F=Bs(r,F,x+-1|0,N)|0;c[E>>2]=F;if(a[M>>0]|0)break}if((x|0)>0){D=0;do{A=D+P|0;Dk(r,c[F+(A*72|0)+56>>2]|0);E=y+(D*72|0)+8|0;A=F+(A*72|0)+8|0;B=E+0|0;z=A+72|0;do{c[A>>2]=c[B>>2];A=A+4|0;B=B+4|0}while((A|0)<(z|0));A=E+0|0;z=A+72|0;do{c[A>>2]=0;A=A+4|0}while((A|0)<(z|0));D=D+1|0}while((D|0)!=(x|0))}a[F+(P*72|0)+44>>0]=w;E=c[L>>2]|0;F=c[E>>2]|0;if((F|0)>0){A=E+4|0;D=c[A>>2]|0;B=0;do{if(!(c[D+(B*20|0)+4>>2]|0)){F=gh(r,c[D+(B*20|0)+8>>2]|0)|0;ho(F);D=c[A>>2]|0;c[D+(B*20|0)+4>>2]=F;F=c[E>>2]|0}B=B+1|0}while((B|0)<(F|0));E=c[L>>2]|0}Cs(r,E,q,c[K>>2]|0);if(G){Cs(r,c[L+40>>2]|0,q,c[K>>2]|0);I=L+44|0;c[I>>2]=Ds(r,c[I>>2]|0,q,c[K>>2]|0)|0}F=K+48|0;E=c[F>>2]|0;do if(!E){E=c[L+48>>2]|0;if(!E)break;Cs(r,E,q,c[K>>2]|0)}else{D=c[E>>2]|0;if((D|0)>0){B=c[E+4>>2]|0;A=0;do{b[B+(A*20|0)+16>>1]=0;A=A+1|0}while((A|0)!=(D|0))}c[L+48>>2]=E;c[F>>2]=0}while(0);E=c[K+36>>2]|0;if(!E)D=0;else D=Ir(r,E,0,0)|0;F=L+36|0;E=c[F>>2]|0;if(p){I=L+44|0;c[I>>2]=E;c[F>>2]=D;H=Ds(r,E,q,c[K>>2]|0)|0;c[I>>2]=H;c[I>>2]=os(r,H,Ir(r,c[K+44>>2]|0,0,0)|0)|0;c[L+40>>2]=Lr(r,c[K+40>>2]|0,0)|0}else{I=Ds(r,E,q,c[K>>2]|0)|0;c[F>>2]=I;c[F>>2]=os(r,I,D)|0}E=L+6|0;b[E>>1]=e[E>>1]|e[K+6>>1]&1;E=K+60|0;D=c[E>>2]|0;if(D){c[L+60>>2]=D;c[E>>2]=0}L=c[L+52>>2]|0;if(!L)break;else K=c[K+52>>2]|0}Ik(r,J,1)}if(!(s<<16>>16)){w=-1;break}b[qa>>1]=e[qa>>1]|4;w=-1;v=1}else wa=120;while(0);g:do if((wa|0)==120){wa=0;do if((c[u>>2]|0)==1){if(b[S>>1]&256)break;A=c[T>>2]|0;O=A+1|0;N=(c[U>>2]|0)+1|0;c[U>>2]=N;w=u+(P*72|0)+36|0;c[w>>2]=N;sh(ta,20,N,0,O)|0;c[M>>2]=O;O=c[w>>2]|0;a[da>>0]=13;c[V>>2]=O;a[W>>0]=0;c[X>>2]=0;c[Y>>2]=0;a[u+(P*72|0)+46>>0]=c[la>>2];er(f,K,da)|0;O=K+24|0;O=bs(c[O>>2]|0,c[O+4>>2]|0)|0;b[(c[u+(P*72|0)+24>>2]|0)+28>>1]=O;O=u+(P*72|0)+45|0;a[O>>0]=a[O>>0]|4;c[u+(P*72|0)+40>>2]=c[X>>2];sh(ta,21,c[w>>2]|0,0,0)|0;w=c[T>>2]|0;if(w>>>0>A>>>0)c[(c[Z>>2]|0)+(A*20|0)+8>>2]=w;c[(c[_>>2]|0)+88>>2]=w+-1;a[$>>0]=0;c[aa>>2]=0;w=P;break g}while(0);z=(c[U>>2]|0)+1|0;c[U>>2]=z;B=u+(P*72|0)+36|0;c[B>>2]=z;z=sh(ta,25,0,z,0)|0;c[M>>2]=z+1;if(!(a[u+(P*72|0)+45>>0]&2)){O=Kq(f)|0;A=c[ca>>2]|0;c[ca>>2]=A+1;A=sh(O,44,A,0,0)|0}else A=0;O=c[u+(P*72|0)+48>>2]|0;a[da>>0]=12;c[V>>2]=O;a[W>>0]=0;c[X>>2]=0;c[Y>>2]=0;a[u+(P*72|0)+46>>0]=c[la>>2];er(f,K,da)|0;O=K+24|0;O=bs(c[O>>2]|0,c[O+4>>2]|0)|0;b[(c[u+(P*72|0)+24>>2]|0)+28>>1]=O;if(A){x=c[T>>2]|0;if(x>>>0>A>>>0)c[(c[Z>>2]|0)+(A*20|0)+8>>2]=x;c[(c[_>>2]|0)+88>>2]=x+-1}w=sh(ta,18,c[B>>2]|0,0,0)|0;if((c[T>>2]|0)>>>0>z>>>0)c[(c[Z>>2]|0)+(z*20|0)+4>>2]=w;a[$>>0]=0;c[aa>>2]=0;w=P}while(0);if(a[ma>>0]|0){wa=444;break b}c[oa>>2]=0;As(g,oa);c[o>>2]=(c[o>>2]|0)-(c[oa>>2]|0);u=c[ka>>2]|0;if((d[h>>0]|0)<9)break;c[sa>>2]=c[ia>>2]}while(0);t=c[na>>2]|0;if(!t)P=w+1|0;else{E=m;N=t;w=v;R=u;break}}}else{E=g+36|0;N=t;R=u}while(0);Q=c[g>>2]|0;y=c[E>>2]|0;l=g+40|0;t=c[l>>2]|0;F=g+44|0;da=c[F>>2]|0;m=b[qa>>1]|0;a[ra>>0]=m&1;if(N){L=c[f>>2]|0;c[pa+0>>2]=c[h+0>>2];c[pa+4>>2]=c[h+4>>2];c[pa+8>>2]=c[h+8>>2];c[pa+12>>2]=c[h+12>>2];c[pa+16>>2]=c[h+16>>2];h:do if(!(c[N+48>>2]|0)){u=N+60|0;if(c[u>>2]|0){k=d[g+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[oa>>2]=k;ph(f,35072,oa);m=0;k=1;wa=227;break}O=Kq(f)|0;q=a[pa>>0]|0;if(q<<24>>24==12){sh(O,57,c[pa+4>>2]|0,c[c[g>>2]>>2]|0,0)|0;q=c[O+4>>2]|0;if(q)a[q+(((c[O+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[pa>>0]=14;q=14}p=e[qa>>1]|0;if(p&256){m=0;k=Es(f,g,pa)|0;wa=227;break}if((c[c[g>>2]>>2]|0)!=(c[c[N>>2]>>2]|0)){Fs(f,g);m=0;k=1;wa=227;break}do if(!(p&2048)){if(c[ia>>2]|0){k=Hs(f,g,h)|0;break h}M=g+4|0;p=d[M>>0]|0;if((p|0)==116){s=g+8|0;q=N+8|0;c[q>>2]=c[s>>2];r=g+12|0;p=N+12|0;c[p>>2]=c[r>>2];aa=g+60|0;c[u>>2]=c[aa>>2];ca=g+64|0;c[N+64>>2]=c[ca>>2];n=c[la>>2]|0;k=er(f,N,pa)|0;c[aa>>2]=0;c[ca>>2]=0;if(k){m=0;wa=227;break h}c[na>>2]=0;q=c[q>>2]|0;c[s>>2]=q;c[r>>2]=c[p>>2];if(!q)t=0;else t=sh(O,46,q,0,0)|0;l=c[la>>2]|0;k=er(f,g,pa)|0;m=c[na>>2]|0;c[na>>2]=N;ca=N+24|0;o=g+24|0;q=o;ca=fw(c[q>>2]|0,c[q+4>>2]|0,c[ca>>2]|0,c[ca+4>>2]|0)|0;q=o;c[q>>2]=ca;c[q+4>>2]=C;q=c[u>>2]|0;do if(q){ca=(Is(q,ha)|0)!=0;q=c[ha>>2]|0;if(!(ca&(q|0)>0))break;ca=o;aa=c[ca+4>>2]|0;p=((q|0)<0)<<31>>31;if(!(aa>>>0>p>>>0|((aa|0)==(p|0)?(c[ca>>2]|0)>>>0>q>>>0:0)))break;ca=o;c[ca>>2]=q;c[ca+4>>2]=p}while(0);if(!t){t=M;s=n;q=l;break}o=c[O+32>>2]|0;if(o>>>0>t>>>0)c[(c[O+4>>2]|0)+(t*20|0)+8>>2]=o;c[(c[O+24>>2]|0)+88>>2]=o+-1;t=M;s=n;q=l;break}else if((p|0)==115|(p|0)==117){if(q<<24>>24==1)p=c[pa+4>>2]|0;else{o=f+68|0;p=c[o>>2]|0;c[o>>2]=p+1;c[g+16>>2]=sh(O,57,p,0,0)|0;o=g;while(1){q=c[o+56>>2]|0;if(!q)break;else o=q}ca=o+6|0;b[ca>>1]=e[ca>>1]|8}a[fa>>0]=1;c[fa+4>>2]=p;a[fa+1>>0]=0;c[fa+8>>2]=0;c[fa+12>>2]=0;v=c[la>>2]|0;k=er(f,N,fa)|0;if(k){m=0;wa=227;break h}u=(a[M>>0]|0)==117?2:1;c[na>>2]=0;s=g+60|0;r=c[s>>2]|0;c[s>>2]=0;q=g+64|0;o=c[q>>2]|0;c[q>>2]=0;a[fa>>0]=u;u=c[la>>2]|0;k=er(f,g,fa)|0;Jk(L,c[ia>>2]|0);m=c[na>>2]|0;c[na>>2]=N;c[ia>>2]=0;if((a[M>>0]|0)==115){aa=N+24|0;ca=g+24|0;$=ca;aa=fw(c[$>>2]|0,c[$+4>>2]|0,c[aa>>2]|0,c[aa+4>>2]|0)|0;c[ca>>2]=aa;c[ca+4>>2]=C}Ck(L,c[s>>2]|0);c[s>>2]=r;c[q>>2]=o;c[g+8>>2]=0;c[g+12>>2]=0;o=a[pa>>0]|0;if(o<<24>>24==9){o=g;while(1){n=c[o+52>>2]|0;if(!n)break;else o=n}Js(f,0,c[o>>2]|0)}else if(o<<24>>24==1){t=M;s=v;q=u;break}l=ts(O)|0;ca=ts(O)|0;Ks(f,g,l);sh(O,108,p,l,0)|0;t=O+32|0;s=c[t>>2]|0;Ls(f,g,c[g>>2]|0,p,0,0,pa,ca,l);r=O+24|0;q=c[r>>2]|0;o=~ca;do if((ca|0)<0){n=c[q+112>>2]|0;if(!n)break;c[n+(o<<2)>>2]=c[t>>2]}while(0);c[q+88>>2]=(c[t>>2]|0)+-1;sh(O,9,p,s,0)|0;o=c[r>>2]|0;n=~l;do if((l|0)<0){q=c[o+112>>2]|0;if(!q)break;c[q+(n<<2)>>2]=c[t>>2]}while(0);c[o+88>>2]=(c[t>>2]|0)+-1;sh(O,61,p,0,0)|0;t=M;s=v;q=u;break}else{o=f+68|0;x=c[o>>2]|0;c[o>>2]=x+2;c[g+16>>2]=sh(O,57,x,0,0)|0;o=g;while(1){n=c[o+56>>2]|0;if(!n)break;else o=n}v=x+1|0;s=o+6|0;b[s>>1]=e[s>>1]|8;a[ga>>0]=1;s=ga+4|0;c[s>>2]=x;a[ga+1>>0]=0;c[ga+8>>2]=0;c[ga+12>>2]=0;u=c[la>>2]|0;k=er(f,N,ga)|0;if(k){m=0;wa=227;break h}c[g+20>>2]=sh(O,57,v,0,0)|0;c[na>>2]=0;t=g+60|0;l=c[t>>2]|0;c[t>>2]=0;n=g+64|0;o=c[n>>2]|0;c[n>>2]=0;c[s>>2]=v;w=c[la>>2]|0;k=er(f,g,ga)|0;m=c[na>>2]|0;c[na>>2]=N;q=g+24|0;ca=q;aa=c[ca+4>>2]|0;r=N+24|0;s=c[r>>2]|0;r=c[r+4>>2]|0;if(aa>>>0>r>>>0|((aa|0)==(r|0)?(c[ca>>2]|0)>>>0>s>>>0:0)){ca=q;c[ca>>2]=s;c[ca+4>>2]=r}Ck(L,c[t>>2]|0);c[t>>2]=l;c[n>>2]=o;if((a[pa>>0]|0)==9){q=g;while(1){p=c[q+52>>2]|0;if(!p)break;else q=p}Js(f,0,c[q>>2]|0)}n=ts(O)|0;t=ts(O)|0;Ks(f,g,n);sh(O,108,x,n,0)|0;q=f+19|0;p=a[q>>0]|0;if(!(p<<24>>24)){ca=f+72|0;q=(c[ca>>2]|0)+1|0;c[ca>>2]=q}else{ca=p+-1<<24>>24;a[q>>0]=ca;q=c[f+((ca&255)<<2)+24>>2]|0}l=sh(O,101,x,q,0)|0;th(O,sh(O,68,v,t,q)|0,0,-14);Wr(f,q);Ls(f,g,c[g>>2]|0,x,0,0,pa,t,n);q=O+24|0;p=c[q>>2]|0;r=~t;do if((t|0)<0){s=c[p+112>>2]|0;if(!s)break;c[s+(r<<2)>>2]=c[O+32>>2]}while(0);s=O+32|0;c[p+88>>2]=(c[s>>2]|0)+-1;sh(O,9,x,l,0)|0;p=c[q>>2]|0;o=~n;do if((n|0)<0){q=c[p+112>>2]|0;if(!q)break;c[q+(o<<2)>>2]=c[s>>2]}while(0);c[p+88>>2]=(c[s>>2]|0)+-1;sh(O,61,v,0,0)|0;sh(O,61,x,0,0)|0;t=M;s=u;q=w;break}}else{Gs(f,g,pa);t=g+4|0;s=0;q=0;m=0;k=0}while(0);ca=a[t>>0]|0;Ms(f,ca&255,s,q,ca<<24>>24!=116&1);if(!(b[qa>>1]&8)){wa=227;break}r=c[c[g>>2]>>2]|0;s=Ns(L,r,1)|0;if(!s){k=7;wa=227;break}if((r|0)>0){l=L+8|0;n=s+20|0;o=0;while(1){ca=Os(f,g,o)|0;c[n>>2]=ca;if(!ca)c[n>>2]=c[l>>2];o=o+1|0;if((o|0)==(r|0))break;else n=n+4|0}}p=O+32|0;q=O+4|0;do{l=0;do{o=g+(l<<2)+16|0;n=c[o>>2]|0;if((n|0)<0)break;if((c[p>>2]|0)>>>0>n>>>0)c[(c[q>>2]|0)+(n*20|0)+8>>2]=r;c[s>>2]=(c[s>>2]|0)+1;th(O,n,s,-6);c[o>>2]=-1;l=l+1|0}while((l|0)<2);g=c[g+52>>2]|0}while((g|0)!=0);ca=(c[s>>2]|0)+-1|0;c[s>>2]=ca;if(ca){wa=227;break}Sc(s);wa=227}else{k=d[g+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[oa>>2]=k;ph(f,35024,oa);m=0;k=1;wa=227}while(0);if((wa|0)==227){c[h+8>>2]=c[pa+8>>2];c[h+12>>2]=c[pa+12>>2];Ik(L,m,1)}c[xa>>2]=ya;break a}if((m&5)==1){k=c[sa>>2]|0;if(!(Ps(k,Q,-1)|0)){b[qa>>1]=m&65534;t=Lr(ua,Q,0)|0;c[l>>2]=t;wa=232}}else wa=232;if((wa|0)==232)k=c[sa>>2]|0;if(!k)k=-1;else{ca=Qs(f,k,0,c[Q>>2]|0)|0;aa=f+68|0;k=c[aa>>2]|0;c[aa>>2]=k+1;c[sa+8>>2]=k;k=sh(ta,57,k,(c[c[sa>>2]>>2]|0)+1+(c[Q>>2]|0)|0,0)|0;th(ta,k,ca,-6)}O=sa+20|0;c[O>>2]=k;if((a[h>>0]|0)==12)sh(ta,57,c[h+4>>2]|0,c[Q>>2]|0,0)|0;na=ts(ta)|0;v=g+24|0;ca=v;c[ca>>2]=-1;c[ca+4>>2]=2147483647;Ks(f,g,na);if((c[g+8>>2]|0)==0?(ea=c[O>>2]|0,(ea|0)>-1):0){if(!(a[(c[ta>>2]|0)+65>>0]|0))k=(c[ta+4>>2]|0)+(ea*20|0)|0;else k=29120;a[k>>0]=58;ca=sa+24|0;a[ca>>0]=d[ca>>0]|1}if(!(b[qa>>1]&1))a[ra+1>>0]=0;else{ca=f+68|0;k=c[ca>>2]|0;c[ca>>2]=k+1;c[ra+4>>2]=k;ca=Qs(f,c[g>>2]|0,0,0)|0;k=sh(ta,57,k,0,0)|0;th(ta,k,ca,-6);c[ra+8>>2]=k;k=c[ta+4>>2]|0;if(k)a[k+(((c[ta+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[ra+1>>0]=3}if((w|0)==0&(t|0)==0){s=Rs(f,R,y,c[sa>>2]|0,c[g>>2]|0,(a[ra>>0]|0)!=0?1024:0,0)|0;if(!s){wa=444;break}q=Ss(b[s+32>>1]|0)|0;p=C;ca=v;aa=c[ca+4>>2]|0;if(p>>>0<aa>>>0|((p|0)==(aa|0)?q>>>0<(c[ca>>2]|0)>>>0:0)){ca=v;c[ca>>2]=q;c[ca+4>>2]=p}do if(a[ra>>0]|0){q=a[s+40>>0]|0;if(!(q<<24>>24))break;a[ra+1>>0]=q}while(0);q=c[sa>>2]|0;do if(!q)wa=257;else{ca=a[s+36>>0]|0;c[sa+4>>2]=ca;if((ca|0)!=(c[q>>2]|0))break;c[sa>>2]=0;wa=257}while(0);do if((wa|0)==257){o=c[O>>2]|0;if((o|0)<=-1)break;vh(ta,o)}while(0);Ls(f,g,Q,-1,sa,ra,h,c[s+48>>2]|0,c[s+52>>2]|0);Ts(s)}else{w=(t|0)!=0;do if(w){l=c[g>>2]|0;k=c[l>>2]|0;if((k|0)>0){l=c[l+4>>2]|0;while(1){b[l+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[t>>2]|0;if((k|0)>0){l=c[t+4>>2]|0;while(1){b[l+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ca=v;aa=c[ca+4>>2]|0;if(!(aa>>>0>0|(aa|0)==0&(c[ca>>2]|0)>>>0>100))break;ca=v;c[ca>>2]=100;c[ca+4>>2]=0}else{ca=v;c[ca>>2]=1;c[ca+4>>2]=0}while(0);M=(Ps(t,c[sa>>2]|0,-1)|0)==0;P=ts(ta)|0;c[ja+0>>2]=0;c[ja+4>>2]=0;c[ja+8>>2]=0;c[ja+12>>2]=0;c[ja+16>>2]=0;c[ja+20>>2]=0;c[ja+24>>2]=0;c[ja+28>>2]=0;c[ja>>2]=f;c[ja+4>>2]=R;c[ja+12>>2]=va;H=f+72|0;c[va+16>>2]=(c[H>>2]|0)+1;if(w)k=c[t>>2]|0;else k=0;v=va+12|0;c[v>>2]=k;c[va+24>>2]=t;Us(ja,Q);Us(ja,c[sa>>2]|0);if(da){c[oa+0>>2]=0;c[oa+4>>2]=0;c[oa+8>>2]=0;c[oa+12>>2]=0;c[oa+16>>2]=0;c[oa+20>>2]=0;c[oa>>2]=80;c[oa+4>>2]=81;c[oa+24>>2]=ja;ns(oa,da)|0}x=va+32|0;c[va+36>>2]=c[x>>2];o=va+44|0;k=c[o>>2]|0;if((k|0)>0){u=ja+28|0;l=va+40|0;m=b[u>>1]|0;n=0;do{b[u>>1]=m&65535|8;Us(ja,c[(c[(c[l>>2]|0)+(n<<4)>>2]|0)+20>>2]|0);m=e[u>>1]&65527;b[u>>1]=m;n=n+1|0;k=c[o>>2]|0}while((n|0)<(k|0))}c[va+20>>2]=c[H>>2];if(a[ma>>0]|0){wa=444;break}if(w){F=f+68|0;E=c[F>>2]|0;c[F>>2]=E+1;s=va+4|0;c[s>>2]=E;E=Qs(f,t,0,c[x>>2]|0)|0;r=sh(ta,58,c[s>>2]|0,c[v>>2]|0,0)|0;th(ta,r,E,-6);K=c[H>>2]|0;J=K+1|0;G=K+2|0;K=K+3|0;c[H>>2]=K;I=ts(ta)|0;N=(c[H>>2]|0)+1|0;c[H>>2]=N;L=ts(ta)|0;q=c[H>>2]|0;o=q+1|0;ca=c[t>>2]|0;aa=ca+q|0;p=aa+1|0;c[H>>2]=aa+ca;sh(ta,25,0,G,0)|0;sh(ta,25,0,J,0)|0;sh(ta,28,0,o,(c[t>>2]|0)+q|0)|0;sh(ta,17,N,L,0)|0;q=Rs(f,R,y,t,0,M?2304:256,0)|0;if(!q){wa=444;break}if((a[q+36>>0]|0)==(c[t>>2]|0)){u=0;k=0;v=0}else{if(!(a[ra>>0]|0))k=34824;else k=(b[qa>>1]&1)==0?34808:34824;Xs(f,k);A=c[t>>2]|0;k=c[x>>2]|0;if((k|0)>0){l=c[va+28>>2]|0;m=0;v=A;u=A;do{if((c[l+(m*24|0)+12>>2]|0)>=(v|0)){v=v+1|0;u=u+1|0}m=m+1|0}while((m|0)<(k|0));D=u}else D=A;B=f+60|0;u=c[B>>2]|0;y=f+56|0;k=c[y>>2]|0;if((k|0)<(D|0)){z=c[H>>2]|0;c[H>>2]=z+D;z=z+1|0}else{c[B>>2]=u+D;c[y>>2]=k-D;z=u}Ys(f);Zs(f,t,z,0);v=c[x>>2]|0;if((v|0)>0){m=va+28|0;w=0;u=A;do{k=c[m>>2]|0;if((c[k+(w*24|0)+12>>2]|0)>=(u|0)){l=u+z|0;v=_s(f,c[k+(w*24|0)>>2]|0,c[k+(w*24|0)+8>>2]|0,c[k+(w*24|0)+4>>2]|0,l,0)|0;if((l|0)!=(v|0))sh(ta,34,v,l,0)|0;v=c[x>>2]|0;u=u+1|0}w=w+1|0}while((w|0)<(v|0))}v=f+19|0;u=a[v>>0]|0;if(!(u<<24>>24)){u=(c[H>>2]|0)+1|0;c[H>>2]=u}else{u=u+-1<<24>>24;a[v>>0]=u;u=c[f+((u&255)<<2)+24>>2]|0}sh(ta,49,z,D,u)|0;sh(ta,109,c[s>>2]|0,u,0)|0;Wr(f,u);$s(f,z,D);if((c[y>>2]|0)<(D|0)){c[y>>2]=D;c[B>>2]=z}Ts(q);l=c[F>>2]|0;c[F>>2]=l+1;c[va+8>>2]=l;k=a[v>>0]|0;if(!(k<<24>>24)){k=(c[H>>2]|0)+1|0;c[H>>2]=k}else{k=k+-1<<24>>24;a[v>>0]=k;k=c[f+((k&255)<<2)+24>>2]|0}sh(ta,60,l,k,D)|0;sh(ta,106,c[s>>2]|0,P,0)|0;a[va+1>>0]=1;Ys(f);u=1;v=l}do if(M){if(b[ua+60>>1]&4)break;if((u|0)==0?(a[q+37>>0]|0)==0:0)break;c[sa>>2]=0;vh(ta,c[O>>2]|0)}while(0);x=ta+32|0;n=c[x>>2]|0;Ys(f);u=(u|0)!=0;if(u)sh(ta,100,c[s>>2]|0,k,v)|0;k=c[t>>2]|0;if((k|0)>0){l=t+4|0;m=0;do{if(u)sh(ta,47,v,m,m+p|0)|0;else{a[va>>0]=1;Nq(f,c[(c[l>>2]|0)+(m*20|0)>>2]|0,m+p|0)}m=m+1|0;k=c[t>>2]|0}while((m|0)<(k|0))}if(E)c[E>>2]=(c[E>>2]|0)+1;th(ta,sh(ta,42,o,p,k)|0,E,-6);k=c[x>>2]|0;ca=k+1|0;sh(ta,43,ca,0,ca)|0;t=c[t>>2]|0;sh(c[f+8>>2]|0,32,p,o,t)|0;$s(f,p,t);sh(ta,17,K,I,0)|0;sh(ta,137,G,P,0)|0;sh(ta,17,N,L,0)|0;t=c[x>>2]|0;if(t>>>0>k>>>0)c[(c[ta+4>>2]|0)+(k*20|0)+8>>2]=t;o=ta+24|0;c[(c[o>>2]|0)+88>>2]=t+-1;at(f,va);sh(ta,25,1,J,0)|0;if(u)sh(ta,5,c[s>>2]|0,n,0)|0;else{Ts(q);vh(ta,r)}sh(ta,17,K,I,0)|0;sh(ta,16,0,P,0)|0;m=c[x>>2]|0;sh(ta,25,1,G,0)|0;sh(ta,18,K,0,0)|0;k=c[o>>2]|0;l=~I;do if((I|0)<0){t=c[k+112>>2]|0;if(!t)break;c[t+(l<<2)>>2]=c[x>>2]}while(0);s=c[x>>2]|0;c[k+88>>2]=s+-1;sh(ta,137,J,s+2|0,0)|0;sh(ta,18,K,0,0)|0;bt(f,va);s=s+1|0;ct(f,da,s,16);Ls(f,g,c[g>>2]|0,-1,sa,ra,h,s,m);sh(ta,18,K,0,0)|0;s=c[o>>2]|0;r=~L;do if((L|0)<0){q=c[s+112>>2]|0;if(!q)break;c[q+(r<<2)>>2]=c[x>>2]}while(0);c[s+88>>2]=(c[x>>2]|0)+-1;dt(f,va);sh(ta,18,N,0,0)|0}else{do if(!(c[E>>2]|0)){r=c[g>>2]|0;if((c[r>>2]|0)!=1){wa=372;break}s=c[ka>>2]|0;if((c[s>>2]|0)!=1){wa=372;break}if(c[s+28>>2]|0){wa=372;break}x=c[s+24>>2]|0;s=c[c[r+4>>2]>>2]|0;w=x+44|0;if(a[w>>0]&16){wa=372;break}if((a[s>>0]|0)!=-101|(k|0)==0){wa=372;break}v=va+40|0;if(!(b[(c[(c[v>>2]|0)+4>>2]|0)+2>>1]&256)){wa=372;break}if((x|0)==0?1:(c[s+4>>2]&16|0)!=0){wa=372;break}s=c[f>>2]|0;k=c[x+68>>2]|0;i:do if(!k)r=-1e6;else{l=c[s+20>>2]|0;if((l|0)<=0){r=0;break}s=c[s+16>>2]|0;t=0;while(1){r=t+1|0;if((c[s+(t<<4)+12>>2]|0)==(k|0)){r=t;break i}if((r|0)<(l|0))t=r;else break}}while(0);t=f+68|0;n=c[t>>2]|0;c[t>>2]=n+1;t=x+32|0;k=c[t>>2]|0;wr(f,r);cs(f,r,c[t>>2]|0,0,c[x>>2]|0);t=c[x+8>>2]|0;j:do if(!(a[w>>0]&32)){s=0;wa=351}else{if(!t){l=1;m=0;t=0;break}else s=t;while(1){if((a[s+51>>0]&3)==2){wa=351;break j}s=c[s+20>>2]|0;if(!s){s=0;wa=351;break}}}while(0);do if((wa|0)==351){if(t){m=x+42|0;l=t;do{do if(!(a[l+51>>0]&4)){t=b[l+44>>1]|0;if(t<<16>>16>=(b[m>>1]|0))break;if(c[l+36>>2]|0)break;if((s|0)!=0?t<<16>>16>=(b[s+44>>1]|0):0)break;s=l}while(0);l=c[l+20>>2]|0}while((l|0)!=0)}if(!s){l=1;m=0;t=0;break}k=c[s+40>>2]|0;l=0;m=s;t=ds(f,s)|0}while(0);th(ta,sh(ta,54,n,k,r)|0,1,-14);if(t)th(ta,-1,t,-6);sh(ta,50,n,c[(c[v>>2]|0)+8>>2]|0,0)|0;sh(ta,61,n,0,0)|0;if((a[f+450>>0]|0)!=2){q=0;break}do if(l){s=c[x>>2]|0;r=10360;p=10360;q=c[f>>2]|0}else{if(a[w>>0]&32){ca=(a[m+51>>0]&3)!=2;q=c[f>>2]|0;s=c[x>>2]|0;r=ca?34920:10360;if(!ca){p=10360;break}}else{r=34920;s=c[x>>2]|0;q=c[f>>2]|0}p=c[m>>2]|0}while(0);c[oa>>2]=s;c[oa+4>>2]=r;c[oa+8>>2]=p;q=qh(q,34896,oa)|0;ca=c[f+8>>2]|0;th(ca,sh(ca,157,c[xa>>2]|0,0,0)|0,q,-1);q=0}else wa=372;while(0);if((wa|0)==372){do if((c[F>>2]|0)==0&(k|0)==1){q=c[c[va+40>>2]>>2]|0;s=c[q+20>>2]|0;if(!s){q=0;p=0;break}if((c[s>>2]|0)!=1){q=0;p=0;break}if((a[c[c[s+4>>2]>>2]>>0]|0)!=-100){q=0;p=0;break}q=c[q+8>>2]|0;if($c(q,18760)|0)if(!($c(q,18768)|0))p=2;else{q=0;p=0;break}else p=1;q=Lr(ua,s,0)|0;if(!q){q=0;break}if(a[ma>>0]|0)break;ca=c[q+4>>2]|0;a[ca+12>>0]=p<<24>>24!=1&1;a[c[ca>>2]>>0]=-102}else{q=0;p=0}while(0);dt(f,va);p=Rs(f,R,y,q,0,p&255,0)|0;if(!p){Jk(ua,q);wa=444;break}at(f,va);if((a[p+36>>0]|0)>0)sh(ta,16,0,c[p+52>>2]|0,0)|0;Ts(p);bt(f,va)}c[sa>>2]=0;ct(f,da,P,16);Ls(f,g,c[g>>2]|0,-1,0,0,h,P,P);Jk(ua,q);o=ta+24|0}q=c[o>>2]|0;p=~P;do if((P|0)<0){o=c[q+112>>2]|0;if(!o)break;c[o+(p<<2)>>2]=c[ta+32>>2]}while(0);c[q+88>>2]=(c[ta+32>>2]|0)+-1}if((a[ra+1>>0]|0)==3)Xs(f,34808);if(c[sa>>2]|0){u=sa+4|0;Xs(f,(c[u>>2]|0)>0?34840:34864);x=c[Q>>2]|0;s=f+8|0;E=c[s>>2]|0;F=ts(E)|0;D=ts(E)|0;n=c[sa>>2]|0;m=a[h>>0]|0;y=m&255;z=h+4|0;A=c[z>>2]|0;v=sa+16|0;t=c[v>>2]|0;if(t){sh(E,17,c[sa+12>>2]|0,t,0)|0;sh(E,16,0,F,0)|0;ca=c[v>>2]|0;t=c[E+24>>2]|0;k=~ca;do if((ca|0)<0){l=c[t+112>>2]|0;if(!l)break;c[l+(k<<2)>>2]=c[E+32>>2]}while(0);c[t+88>>2]=(c[E+32>>2]|0)+-1}B=c[sa+8>>2]|0;q=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){p=x;r=c[h+8>>2]|0;k=0}else{t=f+19|0;k=a[t>>0]|0;do if(k<<24>>24){ca=k+-1<<24>>24;a[t>>0]=ca;l=c[f+((ca&255)<<2)+24>>2]|0;if(!(ca<<24>>24)){k=l;t=c[f+72>>2]|0;break}else{r=k+-2<<24>>24;a[t>>0]=r;p=1;r=c[f+((r&255)<<2)+24>>2]|0;k=l;break k}}else{k=f+72|0;t=(c[k>>2]|0)+1|0;c[k>>2]=t;k=t}while(0);r=t+1|0;c[f+72>>2]=r;p=1}while(0);o=(c[n>>2]|0)-(c[u>>2]|0)|0;w=sa+24|0;if(!(a[w>>0]&1)){t=sh(E,107,B,F,0)|0;et(E,c[g+12>>2]|0,D);l=1;m=B}else{ca=f+72|0;m=(c[ca>>2]|0)+1|0;c[ca>>2]=m;ca=f+68|0;n=c[ca>>2]|0;c[ca>>2]=n+1;if(!(c[v>>2]|0))l=0;else{ca=Kq(f)|0;aa=f+80|0;l=c[aa>>2]|0;c[aa>>2]=l+1;l=sh(ca,44,l,0,0)|0}sh(E,60,n,m,p+1+o|0)|0;if(l){t=c[E+32>>2]|0;if(t>>>0>l>>>0)c[(c[E+4>>2]|0)+(l*20|0)+8>>2]=t;c[(c[E+24>>2]|0)+88>>2]=t+-1}t=sh(E,106,B,F,0)|0;et(E,c[g+12>>2]|0,D);sh(E,100,B,m,n)|0;l=0;m=n}u=t+1|0;if((p|0)>0){t=l+o|0;l=0;do{sh(E,47,m,t+l|0,l+r|0)|0;l=l+1|0}while((l|0)!=(p|0))}do if((y|0)==12|(y|0)==14){sh(E,74,A,k,0)|0;sh(E,75,A,r,k)|0;q=c[E+4>>2]|0;if(!q)break;a[q+(((c[E+32>>2]|0)+-1|0)*20|0)+3>>0]=8}else if((y|0)==11){th(E,sh(E,49,r,1,k)|0,h+1|0,1);$s(f,r,1);sh(E,110,A,k,0)|0}else if((y|0)!=10)if(q){ca=h+8|0;sh(E,35,c[ca>>2]|0,x,0)|0;$s(f,c[ca>>2]|0,x);break}else{sh(E,22,c[z>>2]|0,0,0)|0;break}else{sh(c[s>>2]|0,32,r,A,1)|0;$s(f,r,1)}while(0);if(k){Wr(f,r);Wr(f,k)}p=E+24|0;r=c[p>>2]|0;s=~D;do if((D|0)<0){q=c[r+112>>2]|0;if(!q)break;c[q+(s<<2)>>2]=c[E+32>>2]}while(0);s=E+32|0;c[r+88>>2]=(c[s>>2]|0)+-1;if(!(a[w>>0]&1))sh(E,9,B,u,0)|0;else sh(E,5,B,u,0)|0;o=c[sa+12>>2]|0;if(o)sh(E,18,o,0,0)|0;o=c[p>>2]|0;n=~F;do if((F|0)<0){m=c[o+112>>2]|0;if(!m)break;c[m+(n<<2)>>2]=c[s>>2]}while(0);c[o+88>>2]=(c[s>>2]|0)+-1}l=c[ta+24>>2]|0;m=~na;do if((na|0)<0){k=c[l+112>>2]|0;if(!k)break;c[k+(m<<2)>>2]=c[ta+32>>2]}while(0);c[l+88>>2]=(c[ta+32>>2]|0)+-1;c[xa>>2]=ya;if((a[h>>0]|0)!=9){k=0;break}Js(f,R,Q);k=0}else wa=444;while(0);if((wa|0)==444){c[xa>>2]=ya;k=1}ig(ua,c[va+28>>2]|0);ig(ua,c[va+40>>2]|0)}else k=1;while(0);i=za;return k|0}function fr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;o=c[a>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[m>>2]=l?34792:34800;ph(a,34752,m);p=9}else{b=lr(o,b,d,e)|0;if((b|0)!=0?(n=c[b>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[f+4>>2]|0)c[b+(l*72|0)+20>>2]=Sq(o,f)|0;c[b+(l*72|0)+28>>2]=g;c[b+(l*72|0)+52>>2]=h;c[b+(l*72|0)+56>>2]=k}else p=9}if((p|0)==9){Ck(o,h);Dk(o,k);Ik(o,g,1);b=0}i=q;return b|0}function gr(d,e,f,g,h,k,l,m,n,o){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+80|0;if((i|0)>=(j|0))ba();q=v+72|0;u=v;t=c[d>>2]|0;p=ih(t,72,0)|0;if(!p){r=u+0|0;s=r+72|0;do{c[r>>2]=0;r=r+4|0}while((r|0)<(s|0));p=u}else{r=p+0|0;s=r+72|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0))}if(!e){c[q>>2]=0;c[q+4>>2]=0;e=hr(d,0,jr(t,116,q,0)|0)|0}c[p>>2]=e;if(!f){f=ih(t,80,0)|0;if(f){r=f+0|0;s=r+80|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0))}}c[p+32>>2]=f;c[p+36>>2]=g;c[p+40>>2]=h;c[p+44>>2]=k;c[p+48>>2]=l;b[p+6>>1]=m;a[p+4>>0]=119;c[p+60>>2]=n;c[p+64>>2]=o;c[p+16>>2]=-1;c[p+20>>2]=-1;if(a[t+65>>0]|0){Ik(t,p,(p|0)!=(u|0)&1);p=0}i=v;return p|0}function hr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[b>>2]|0;if(!d){d=ih(g,8,0)|0;if(d){b=d;f=b;a[f>>0]=0;a[f+1>>0]=0;a[f+2>>0]=0;a[f+3>>0]=0;b=b+4|0;a[b>>0]=0;a[b+1>>0]=0;a[b+2>>0]=0;a[b+3>>0]=0;b=ih(g,20,0)|0;c[d+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[d>>2]|0;if(!(b+-1&b)){f=d+4|0;b=no(g,c[f>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[f>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[d>>2]|0;c[d>>2]=b+1;b=(c[d+4>>2]|0)+(b*20|0)|0;c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;c[b+16>>2]=0;c[b>>2]=e}else if((f|0)==8){Ck(g,e);Jk(g,d);d=0}return d|0}function ir(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[d>>2]|0)+-1|0;g=c[d+4>>2]|0;h=c[e>>2]|0;d=c[e+4>>2]|0;if((h|0)!=0?(e=c[b>>2]|0,i=fw(d|0,0,1,0)|0,i=ih(e,i,C)|0,(i|0)!=0):0){gw(i|0,h|0,d|0)|0;a[i+d>>0]=0;c[g+(j*20|0)+4>>2]=i;if(!f)break;ho(i);break}c[g+(j*20|0)+4>>2]=0}while(0);return}function jr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;c[m>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[f>>2]|0,(h|0)!=0):0)?(zn(h,m)|0)!=0:0){o=0;break}o=(c[f+4>>2]|0)+1|0}else o=0;while(0);l=o+48|0;n=ih(d,l,0)|0;if(n){bw(n|0,0,l|0)|0;a[n>>0]=e;b[n+34>>1]=-1;do if(k){if(!o){g=n+4|0;c[g>>2]=c[g>>2]|1024;c[n+8>>2]=c[m>>2];break}h=n+48|0;l=n+8|0;c[l>>2]=h;k=f+4|0;d=c[k>>2]|0;if(!d)h=48;else{gw(h|0,c[f>>2]|0,d|0)|0;h=(c[k>>2]|0)+48|0}a[n+h>>0]=0;if(((g|0)!=0&(o|0)>2?(g=a[c[f>>2]>>0]|0,p=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(ho(c[l>>2]|0),p):0){g=n+4|0;c[g>>2]=c[g>>2]|64}}while(0);c[n+24>>2]=1}i=q;return n|0}function kr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[d>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[e+4>>2]|0)==1?(c[e>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[f>>0]=a[f>>0]|1;break}c[d+(f*72|0)+72>>2]=Sq(c[b>>2]|0,e)|0}while(0);return}function lr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=ih(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(g|0));c[d+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Bs(b,d,1,c[d>>2]|0)|0;if(a[b+65>>0]|0){zo(b,d);d=0;break}h=(c[d>>2]|0)+-1|0;if(!f)g=0;else g=(c[f>>2]|0)==0?0:f;f=(g|0)==0;c[d+(h*72|0)+16>>2]=Sq(b,f?e:g)|0;c[d+(h*72|0)+12>>2]=Sq(b,f?0:e)|0}while(0);return d|0}function mr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))ba();o=q;m=q+16|0;c[m>>2]=b;c[m+4>>2]=e;c[m+8>>2]=f;l=b;n=1;g=0;a:while(1){if(!l)break;k=c[l+4>>2]|0;h=0;while(1){if((k|0)==(d[34625+(h*3|0)>>0]|0|0)?(Bc(c[l>>2]|0,34584+(d[34624+(h*3|0)>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){p=10;break a}}g=d[34626+(h*3|0)>>0]|0|g;if((h|0)>6){p=10;break}if((n|0)>=3)break;l=c[m+(n<<2)>>2]|0;n=n+1|0}if((p|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){ph(a,34696,o);g=1}}else{c[o>>2]=b;c[o+4>>2]=e;c[o+8>>2]=(f|0)==0?20377|0:20376;c[o+12>>2]=f;ph(a,34648,o);g=1}i=q;return g|0}function nr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;Q=i;i=i+48|0;if((i|0)>=(j|0))ba();N=Q+36|0;O=Q+32|0;o=Q;c[N>>2]=0;c[O>>2]=0;P=c[e>>2]|0;if(((((c[e+64>>2]|0)==0?(a[P+65>>0]|0)==0:0)?(E=Fr(e,f)|0,(E|0)!=0):0)?(D=ft(e,E,109,0,0)|0,M=(c[E+12>>2]|0)!=0,(dr(e,E)|0)==0):0)?(q=(D|0)!=0,(gt(e,E,q&1)|0)==0):0){l=c[E+68>>2]|0;a:do if(l){k=c[P+20>>2]|0;if((k|0)>0){h=c[P+16>>2]|0;n=0;while(1){m=n+1|0;if((c[h+(n<<4)+12>>2]|0)==(l|0)){m=n;break a}if((m|0)<(k|0))n=m;else break}}else m=0}else m=-1e6;while(0);h=Oq(e,9,c[E>>2]|0,0,c[(c[P+16>>2]|0)+(m<<4)>>2]|0)|0;if((h|0)!=1){p=e+68|0;z=c[p>>2]|0;r=z+1|0;c[p>>2]=r;c[f+48>>2]=z;F=E+8|0;l=c[F>>2]|0;if(!l)n=0;else{k=r;n=0;do{k=k+1|0;c[p>>2]=k;n=n+1|0;l=c[l+20>>2]|0}while((l|0)!=0)}if(M){K=e+492|0;L=c[K>>2]|0;c[K>>2]=c[E>>2];K=e}else{K=0;L=0}I=Kq(e)|0;b:do if(I){J=e+18|0;if(!(a[J>>0]|0)){B=I+88|0;b[B>>1]=b[B>>1]|4}A=e+408|0;B=c[A>>2]|0;B=(B|0)==0?e:B;wr(e,m);y=B+328|0;c[y>>2]=c[y>>2]|1<<m;B=B+20|0;a[B>>0]=d[B>>0]|1;if(M){ht(e,E,g,z);c[O>>2]=z;c[N>>2]=z};c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o+24>>2]=0;c[o+28>>2]=0;c[o>>2]=e;c[o+4>>2]=f;if(!(hs(o,g)|0)){G=P+24|0;if(!(c[G>>2]&128))H=-1;else{B=e+72|0;H=(c[B>>2]|0)+1|0;c[B>>2]=H;sh(I,25,0,H,0)|0}B=E+44|0;do if((!((g|0)!=0|(h|0)!=0|q)?(a[B>>0]&16)==0:0)?(it(e,E,0,0)|0)==0:0){l=E+32|0;cs(e,m,c[l>>2]|0,1,c[E>>2]|0);if(!(a[B>>0]&32)){E=c[E>>2]|0;th(I,sh(I,118,c[l>>2]|0,m,H)|0,E,-2)}h=c[F>>2]|0;if(!h){h=0;break}do{sh(I,118,c[h+40>>2]|0,m,0)|0;h=c[h+20>>2]|0}while((h|0)!=0);h=0}else C=31;while(0);do if((C|0)==31){if(!(a[B>>0]&32)){s=e+72|0;w=(c[s>>2]|0)+1|0;c[s>>2]=w;sh(I,28,0,w,0)|0;s=0;x=0;h=0;u=1;m=0}else{m=c[F>>2]|0;c:do if(!m)m=0;else while(1){if((a[m+51>>0]&3)==2)break c;m=c[m+20>>2]|0;if(!m){m=0;break}}while(0);u=b[m+46>>1]|0;x=e+72|0;h=c[x>>2]|0;s=u<<16>>16;c[x>>2]=h+s;x=c[p>>2]|0;c[p>>2]=x+1;s=sh(I,57,x,s,0)|0;w=c[e+8>>2]|0;th(w,-1,ds(e,m)|0,-6);h=h+1|0;w=0}t=Rs(e,f,g,0,0,12,r)|0;if(!t){h=0;break b}r=t+60|0;q=c[r>>2]|0;r=c[r+4>>2]|0;v=a[t+38>>0]|0;if(c[G>>2]&128)sh(I,37,H,1,0)|0;y=(m|0)!=0;do if(y){if(u<<16>>16<=0){k=h;break}o=m+4|0;l=u<<16>>16;p=0;do{jt(I,E,z,b[(c[o>>2]|0)+(p<<1)>>1]|0,p+h|0);p=p+1|0}while((p|0)!=(l|0));k=h}else{l=e+72|0;k=_s(e,E,-1,z,(c[l>>2]|0)+1|0,0)|0;if((k|0)<=(c[l>>2]|0))break;c[l>>2]=k}while(0);o=v<<24>>24!=0;do if(!o)if(y){l=e+72|0;k=(c[l>>2]|0)+1|0;c[l>>2]=k;l=u<<16>>16;p=kt(I,m)|0;th(I,sh(I,49,h,l,k)|0,p,l);sh(I,110,x,k,0)|0;h=0;l=0;p=0;C=59;break}else{sh(I,128,w,k,0)|0;Ts(t);h=0;r=0;m=1;break}else{h=n+2|0;h=ih(P,h,((h|0)<0)<<31>>31)|0;if(!h){Ts(t);h=0;break b}C=n+1|0;bw(h|0,1,C|0)|0;a[h+C>>0]=0;if((q|0)>-1)a[h+(q-z)>>0]=0;if((r|0)>-1)a[h+(r-z)>>0]=0;if(s)vh(I,s);l=sh(I,16,0,0,0)|0;p=u;C=59}while(0);do if((C|0)==59){Ts(t);if(!o){r=0;m=p;break}m=ts(I)|0;sh(I,16,0,m,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;r=m;m=p}while(0);if(!M)lt(e,E,55,z,h,N,O)|0;do if(!o)if(y){l=sh(I,108,x,0,0)|0;sh(I,101,x,k,0)|0;break}else{l=sh(I,129,w,0,k)|0;break}else{n=c[N>>2]|0;if(!(a[h+(n-z)>>0]|0)){l=0;break}th(I,sh(I,68,n,r,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[B>>0]&16))nt(e,E,D,c[N>>2]|0,c[O>>2]|0,k,m,(a[J>>0]|0)==0&1,10,v);else{n=c[E+60>>2]|0;d:do if(!n)n=0;else while(1){if((c[n>>2]|0)==(P|0))break d;n=c[n+24>>2]|0;if(!n){n=0;break}}while(0);mt(e,E);th(I,sh(I,15,0,1,k)|0,n,-10);n=c[I+4>>2]|0;if(n)a[n+(((c[I+32>>2]|0)+-1|0)*20|0)+3>>0]=2;E=c[A>>2]|0;a[((E|0)==0?e:E)+21>>0]=1}do if(!o)if(y){sh(I,9,x,l+1|0,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;break}else{sh(I,16,0,l,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;break}else{m=c[I+24>>2]|0;l=~r;do if((r|0)<0){n=c[m+112>>2]|0;if(!n)break;c[n+(l<<2)>>2]=c[I+32>>2]}while(0);c[m+88>>2]=(c[I+32>>2]|0)+-1}while(0);if(M)break;if(a[B>>0]&16)break;if(!y)sh(I,61,c[N>>2]|0,0,0)|0;k=c[F>>2]|0;if(!k)break;else l=0;while(1){sh(I,61,(c[O>>2]|0)+l|0,0,0)|0;k=c[k+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[J>>0]|0)==0?(c[e+412>>2]|0)==0:0)ot(e);if((c[G>>2]&128|0)!=0?(a[J>>0]|0)==0:0){if(c[e+412>>2]|0)break;sh(I,35,H,1,0)|0;eq(I,1);if(a[(c[I>>2]|0)+65>>0]|0)break;Tg(c[I+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(K)c[K+492>>2]=L}else h=0}else h=0;zo(P,f);Ck(P,g);ig(P,h);i=Q;return}function or(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0;ja=i;i=i+64|0;if((i|0)>=(j|0))ba();Q=ja;V=ja+32|0;ca=ja+24|0;ea=ja+20|0;ia=c[e>>2]|0;a:do if(((c[e+64>>2]|0)==0?(a[ia+65>>0]|0)==0:0)?(ha=Fr(e,f)|0,(ha|0)!=0):0){m=c[e>>2]|0;o=c[ha+68>>2]|0;b:do if(o){p=c[m+20>>2]|0;if((p|0)>0){m=c[m+16>>2]|0;n=0;while(1){l=n+1|0;if((c[m+(n<<4)+12>>2]|0)==(o|0))break b;if((l|0)<(p|0))n=l;else{n=l;break}}}else n=0}else n=-1e6;while(0);da=ft(e,ha,110,g,ca)|0;$=(c[ha+12>>2]|0)!=0;if((dr(e,ha)|0)==0?(gt(e,ha,c[ca>>2]|0)|0)==0:0){X=e+68|0;Y=c[X>>2]|0;fa=Y+1|0;c[X>>2]=fa;o=f+48|0;c[o>>2]=Y;H=ha+44|0;r=c[ha+8>>2]|0;c:do if(!(a[H>>0]&32)){p=0;_=16}else{if(!r){t=ha+8|0;p=0;q=Y;s=0;break}else p=r;while(1){if((a[p+51>>0]&3)==2){_=16;break c}p=c[p+20>>2]|0;if(!p){p=0;_=16;break}}}while(0);if((_|0)==16){t=ha+8|0;if(!r){q=Y;s=0}else{l=(p|0)!=0;m=fa;q=Y;s=0;do{if((a[r+51>>0]&3)==2&l){c[o>>2]=m;q=m}m=m+1|0;c[X>>2]=m;s=s+1|0;r=c[r+20>>2]|0}while((r|0)!=0)}}ga=ha+38|0;l=ih(ia,s+2+((b[ga>>1]|0)+s<<2)|0,0)|0;if(l){F=b[ga>>1]|0;Z=l+(F<<2)|0;aa=l+(F+s<<2)|0;W=s+1|0;bw(aa|0,1,W|0)|0;a[aa+W>>0]=0;s=b[ga>>1]|0;if(s<<16>>16>0)bw(l|0,-1,(s<<16>>16>1?s<<16>>16<<2:4)|0)|0;c[V+0>>2]=0;c[V+4>>2]=0;c[V+8>>2]=0;c[V+12>>2]=0;c[V+16>>2]=0;c[V+20>>2]=0;c[V+24>>2]=0;c[V+28>>2]=0;c[V>>2]=e;c[V+4>>2]=f;d:do if((c[g>>2]|0)>0){B=g+4|0;A=ha+4|0;z=ia+16|0;C=(p|0)==0;D=ha+36|0;v=0;u=0;E=0;m=0;while(1){if(hs(V,c[(c[B>>2]|0)+(E*20|0)>>2]|0)|0)break a;x=b[ga>>1]|0;e:do if(x<<16>>16>0){s=c[A>>2]|0;y=c[B>>2]|0;o=c[y+(E*20|0)+4>>2]|0;r=0;while(1){w=r+1|0;if(!($c(c[s+(r*24|0)>>2]|0,o)|0))break;if((w|0)<(x<<16>>16|0))r=w;else{r=w;o=m;break e}}if((r|0)!=(b[D>>1]|0)){if(!C)v=(a[s+(r*24|0)+23>>0]&1)==0?v:1}else{u=1;m=c[y+(E*20|0)>>2]|0}c[l+(r<<2)>>2]=E;o=m}else{r=0;o=m}while(0);if((r|0)<(x<<16>>16|0)){m=c[ha>>2]|0;if((r|0)<0)s=12944;else s=c[(c[A>>2]|0)+(r*24|0)>>2]|0}else{o=c[B>>2]|0;m=c[o+(E*20|0)+4>>2]|0;if(!C)break;if(!(Xh(m)|0))break;m=c[ha>>2]|0;s=12944;u=1;r=-1;o=c[o+(E*20|0)>>2]|0}m=Oq(e,23,m,s,c[(c[z>>2]|0)+(n<<4)>>2]|0)|0;if((m|0)==2)c[l+(r<<2)>>2]=-1;else if((m|0)==1)break a;E=E+1|0;if((E|0)>=(c[g>>2]|0)){O=o;break d}else m=o}c[Q>>2]=m;ph(e,34496,Q);a[e+17>>0]=1;break a}else{v=0;u=0;O=0}while(0);U=(v&255)+(u&255)|0;R=U&255;z=f+64|0;c[z>>2]=0;c[z+4>>2]=0;U=U&255;z=it(e,ha,l,U)|0;m=c[t>>2]|0;if(m){w=(z|U|0)==0;x=e+72|0;y=0;while(1){f:do if(w?!((c[m+36>>2]|0)!=0|(m|0)==(p|0)):0){o=b[m+46>>1]|0;if(!(o<<16>>16))_=56;else{r=c[m+4>>2]|0;s=0;while(1){if((c[l+(b[r+(s<<1)>>1]<<2)>>2]|0)>-1){_=54;break f}s=s+1|0;if((s|0)>=(o&65535|0)){_=56;break}}}}else _=54;while(0);if((_|0)==54){_=0;o=(c[x>>2]|0)+1|0;c[x>>2]=o;if(!o)_=56;else r=y+1|0}if((_|0)==56){_=0;r=y+1|0;a[aa+r>>0]=0;o=0}c[l+(y+F<<2)>>2]=o;m=c[m+20>>2]|0;if(!m)break;else y=r}}S=Kq(e)|0;if(S){T=e+18|0;if(!(a[T>>0]|0)){P=S+88|0;b[P>>1]=b[P>>1]|4}E=e+408|0;P=c[E>>2]|0;P=(P|0)==0?e:P;wr(e,n);N=P+328|0;c[N>>2]=c[N>>2]|1<<n;P=P+20|0;a[P>>0]=d[P>>0]|1;if(a[H>>0]&16){u=c[e+8>>2]|0;v=c[e>>2]|0;m=c[ha+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[m>>2]|0)==(v|0))break g;m=c[m+24>>2]|0;if(!m){m=0;break}}while(0);n=hr(e,0,pt(v,27,34536)|0)|0;t=(O|0)!=0;if(t)n=hr(e,n,Ir(v,O,0,0)|0)|0;if((b[ga>>1]|0)>0){o=g+4|0;q=ha+4|0;r=0;do{p=c[l+(r<<2)>>2]|0;if((p|0)>-1)p=Ir(v,c[(c[o>>2]|0)+(p*20|0)>>2]|0,0,0)|0;else p=pt(v,27,c[(c[q>>2]|0)+(r*24|0)>>2]|0)|0;n=hr(e,n,p)|0;r=r+1|0}while((r|0)<(b[ga>>1]|0))}q=gr(e,n,f,h,0,0,0,0,0,0)|0;s=c[X>>2]|0;c[X>>2]=s+1;f=t&1;sh(u,57,s,(b[ga>>1]|0)+(t?2:1)|0,0)|0;r=u+4|0;h=c[r>>2]|0;if(h)a[h+(((c[u+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[Q>>0]=14;c[Q+4>>2]=s;a[Q+1>>0]=0;c[Q+8>>2]=0;c[Q+12>>2]=0;er(e,q,Q)|0;h=e+72|0;p=c[h>>2]|0;n=p+1|0;aa=p+2|0;c[h>>2]=(b[ga>>1]|0)+aa;h=sh(u,108,s,0,0)|0;sh(u,47,s,0,n)|0;sh(u,47,s,f,aa)|0;if((b[ga>>1]|0)>0){p=p+3|0;o=0;do{aa=o;o=o+1|0;sh(u,47,s,o+f|0,p+aa|0)|0}while((o|0)<(b[ga>>1]|0))}mt(e,ha);th(u,sh(u,15,0,(b[ga>>1]|0)+2|0,n)|0,m,-10);m=c[r>>2]|0;if(!m)m=u+32|0;else{aa=u+32|0;a[m+(((c[aa>>2]|0)+-1|0)*20|0)+3>>0]=(k|0)==10?2:k&255;m=aa}aa=c[E>>2]|0;a[((aa|0)==0?e:aa)+21>>0]=1;sh(u,9,s,h+1|0,0)|0;m=c[m>>2]|0;if(m>>>0>h>>>0)c[(c[r>>2]|0)+(h*20|0)+8>>2]=m;c[(c[u+24>>2]|0)+88>>2]=m+-1;sh(u,61,s,0,0)|0;Ik(v,q,1);h=0;f=0;break}E=e+72|0;m=c[E>>2]|0;D=m+1|0;N=m+2|0;c[E>>2]=N;F=v<<24>>24!=0;G=(da|0)!=0;M=(z|0)!=0;if(F|G|M){n=(b[ga>>1]|0)+N|0;c[E>>2]=n;I=m+3|0}else{n=N;I=0}K=(U|0)!=0;if(K|G|M){L=n+1|0;c[E>>2]=L;n=L}else L=N;J=n+1|0;c[E>>2]=(b[ga>>1]|0)+n;if($){P=e+492|0;Q=c[P>>2]|0;c[P>>2]=c[ha>>2];ht(e,ha,h,q);P=e}else{P=0;Q=0}do if(!(hs(V,h)|0)){if(!(a[H>>0]&32)){sh(S,28,0,D,N)|0;v=Rs(e,f,h,0,0,4,fa)|0;if(!v)break;x=v+60|0;m=c[x>>2]|0;x=c[x+4>>2]|0;y=a[v+38>>0]|0;sh(S,103,q,N,0)|0;if(!(y<<24>>24))sh(S,128,D,N,0)|0;Ts(v);A=0;z=0;w=y&255;B=0}else{y=b[p+46>>1]|0;r=c[E>>2]|0;v=r+1|0;z=y<<16>>16;r=z+1+r|0;c[E>>2]=r;A=c[X>>2]|0;c[X>>2]=A+1;sh(S,28,0,v,0)|0;n=sh(S,57,A,z,0)|0;s=c[e+8>>2]|0;th(s,-1,ds(e,p)|0,-6);s=Rs(e,f,h,0,0,4,fa)|0;if(!s)break;x=s+60|0;m=c[x>>2]|0;x=c[x+4>>2]|0;o=a[s+38>>0]|0;B=o&255;if(y<<16>>16>0){y=p+4|0;w=0;do{jt(S,ha,q,b[(c[y>>2]|0)+(w<<1)>>1]|0,w+v|0);w=w+1|0}while((w|0)!=(z|0))}if(!(o<<24>>24)){y=kt(S,p)|0;th(S,sh(S,49,v,z,r)|0,y,z);sh(S,110,A,r,0)|0;y=0;v=r}else{vh(S,n);y=z}Ts(s);z=y;w=B;B=v}H=ia+24|0;do if(!(c[H>>2]&128))s=0;else{if(c[e+412>>2]|0){s=0;break}s=(c[E>>2]|0)+1|0;c[E>>2]=s;sh(S,25,0,s,0)|0}while(0);r=ts(S)|0;if(!$){h:do if((k|0)==5)bw(aa|0,1,W|0)|0;else{y=c[t>>2]|0;if(!y)break;while(1){if((a[y+50>>0]|0)==5)break;y=c[y+20>>2]|0;if(!y)break h}bw(aa|0,1,W|0)|0}while(0);do if(w){if((m|0)>-1)a[aa+(m-Y)>>0]=0;if((x|0)<=-1)break;a[aa+(x-Y)>>0]=0}while(0);lt(e,ha,55,Y,aa,0,0)|0}E=(w|0)!=0;do if(!E)if(!p){D=sh(S,129,D,r,N)|0;sh(S,70,q,D,N)|0;C=0;break}else{D=ts(S)|0;sh(S,108,A,r,0)|0;C=sh(S,101,A,B,0)|0;th(S,sh(S,68,q,D,B)|0,0,-14);break}else{if(!((a[aa+(q-Y)>>0]|0)==0|$))th(S,sh(S,68,q,r,B)|0,z,-14);sh(S,76,(p|0)!=0?B:N,r,0)|0;C=0;D=r}while(0);u=u<<24>>24==0;if(!u){Nq(e,O,L);sh(S,38,L,0,0)|0}do if(F|M|G){if(M)v=qt(e,ha)|0;else v=0;y=rt(e,da,g,0,3,ha,k)|0|v;if((b[ga>>1]|0)>0){x=(y|0)==-1;w=ha+4|0;v=0;do{do if(x)_=138;else{if((v|0)<32?(1<<v&y|0)!=0:0){_=138;break}if(a[(c[w>>2]|0)+(v*24|0)+23>>0]&1){_=138;break}sh(S,28,0,v+I|0,0)|0}while(0);if((_|0)==138){_=0;jt(S,ha,q,v,v+I|0)}v=v+1|0}while((v|0)<(b[ga>>1]|0))}if(!(u&(p|0)==0))break;sh(S,33,N,L,0)|0}while(0);v=rt(e,da,g,1,1,ha,k)|0;if((b[ga>>1]|0)>0){u=ha+36|0;m=g+4|0;o=0;do{i:do if((o|0)==(b[u>>1]|0))sh(S,28,0,o+J|0,0)|0;else{n=c[l+(o<<2)>>2]|0;if((n|0)>-1){Nq(e,c[(c[m>>2]|0)+(n*20|0)>>2]|0,o+J|0);break}do if(!((c[ca>>2]&1|0)==0|(o|0)>31)){if(1<<o&v)break;sh(S,28,0,o+J|0,0)|0;break i}while(0);jt(S,ha,q,o,o+J|0)}while(0);o=o+1|0}while((o|0)<(b[ga>>1]|0))}do if(c[ca>>2]&1){st(S,ha,J);tt(e,da,110,g,1,ha,N,k,D);if(!p)sh(S,70,q,D,N)|0;else th(S,sh(S,68,q,D,B)|0,z,-14);m=b[ga>>1]|0;if(m<<16>>16<=0)break;u=ha+36|0;v=0;do{do if((c[l+(v<<2)>>2]|0)<0){if((v|0)==(b[u>>1]|0))break;jt(S,ha,q,v,v+J|0);m=b[ga>>1]|0}while(0);v=v+1|0}while((v|0)<(m<<16>>16|0))}while(0);do if(!$){c[ea>>2]=0;ut(e,ha,Z,q,fa,L,N,R,k&255,D,ea);if(M)vt(e,ha,N,0,l,U);m=(c[ea>>2]|U|0)==0;do if(!m)if(!p){n=sh(S,70,q,0,N)|0;break}else{n=sh(S,68,q,0,B)|0;th(S,n,z,-14);break}else n=0;while(0);wt(e,ha,q,fa,Z);if(M|(K|(p|0)!=0))sh(S,95,q,0,0)|0;if(!m){m=c[S+32>>2]|0;if(m>>>0>n>>>0)c[(c[S+4>>2]|0)+(n*20|0)+8>>2]=m;c[(c[S+24>>2]|0)+88>>2]=m+-1}if(M){vt(e,ha,0,L,l,U);xt(e,ha,q,fa,L,Z,1,0,0);yt(e,ha,g,N,l,U);break}else{xt(e,ha,q,fa,L,Z,1,0,0);break}}while(0);do if(c[H>>2]&128){if(c[e+412>>2]|0)break;sh(S,37,s,1,0)|0}while(0);tt(e,da,110,g,2,ha,N,k,D);do if(!E){if(!p){sh(S,16,0,D,0)|0;break}o=c[S+24>>2]|0;n=~D;do if((D|0)<0){p=c[o+112>>2]|0;if(!p)break;c[p+(n<<2)>>2]=c[S+32>>2]}while(0);c[o+88>>2]=(c[S+32>>2]|0)+-1;sh(S,9,A,C,0)|0}while(0);o=c[S+24>>2]|0;n=~r;do if((r|0)<0){p=c[o+112>>2]|0;if(!p)break;c[p+(n<<2)>>2]=c[S+32>>2]}while(0);c[o+88>>2]=(c[S+32>>2]|0)+-1;n=c[t>>2]|0;if(n){o=0;do{p=o;o=o+1|0;if(a[aa+o>>0]|0)sh(S,61,p+fa|0,0,0)|0;n=c[n+20>>2]|0}while((n|0)!=0)}if((q|0)<(fa|0))sh(S,61,q,0,0)|0;do if(!(a[T>>0]|0)){if(c[e+412>>2]|0)break;ot(e)}while(0);if(!(c[H>>2]&128))break;if(c[e+412>>2]|0)break;if(a[T>>0]|0)break;sh(S,35,s,1,0)|0;eq(S,1);if(a[(c[S>>2]|0)+65>>0]|0)break;Tg(c[S+16>>2]|0,34520,-1,1,0)|0}while(0);if(P)c[P+492>>2]=Q}}}else l=0}else l=0;while(0);ig(ia,l);zo(ia,f);Jk(ia,g);Ck(ia,h);i=ja;return}function pr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+96|0;if((i|0)>=(j|0))ba();$=la;ga=la+92|0;ia=la+88|0;I=la+68|0;V=la+64|0;L=la+32|0;_=la+28|0;c[ga>>2]=0;c[ia>>2]=0;ka=c[e>>2]|0;c[I+0>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;c[I+12>>2]=0;c[I+16>>2]=0;a:do if((c[e+64>>2]|0)==0?(K=ka+65|0,(a[K>>0]|0)==0):0){if(g)if((b[g+6>>1]&128)!=0?(c[g+52>>2]|0)==0:0){l=c[g>>2]|0;c[g>>2]=0;Ik(ka,g,1);g=0}else l=0;else{g=0;l=0}if((c[f+16>>2]|0)!=0?(ha=Fr(e,f)|0,(ha|0)!=0):0){r=c[ha+68>>2]|0;b:do if(r){q=c[ka+20>>2]|0;if((q|0)>0){p=c[ka+16>>2]|0;n=0;while(1){o=n+1|0;if((c[p+(n<<4)+12>>2]|0)==(r|0)){o=n;break b}if((o|0)<(q|0))n=o;else break}}else o=0}else o=-1e6;while(0);if((((Oq(e,18,c[ha>>2]|0,0,c[(c[ka+16>>2]|0)+(o<<4)>>2]|0)|0)==0?(da=ha+44|0,W=(d[da>>0]|0)>>>5&1,ca=ft(e,ha,108,0,V)|0,ea=(c[ha+12>>2]|0)!=0,(dr(e,ha)|0)==0):0)?(gt(e,ha,c[V>>2]|0)|0)==0:0)?(ja=Kq(e)|0,(ja|0)!=0):0){fa=e+18|0;if(!(a[fa>>0]|0)){aa=ja+88|0;b[aa>>1]=b[aa>>1]|4}aa=(g|0)!=0;Z=e+408|0;Y=c[Z>>2]|0;Y=(Y|0)==0?e:Y;wr(e,o);U=Y+328|0;c[U>>2]=c[U>>2]|1<<o;Y=Y+20|0;a[Y>>0]=d[Y>>0]|(aa|(ca|0)!=0)&1;Y=(h|0)==0;c:do if((((!((g|0)==0|Y^1)?(c[e+532>>2]|0)==0:0)?(c[g+68>>2]|0)==0:0)?(ws(e,ha)|0)==0:0)?(a[da>>0]&16)==0:0){if((k|0)==10){if((b[ha+36>>1]|0)>-1)r=d[ha+45>>0]|0;else r=10;v=(r|0)==10?2:r}else v=k;q=c[g+32>>2]|0;if((c[q>>2]|0)==1){if(c[q+28>>2]|0){X=117;break}if(c[g+36>>2]|0){X=117;break}if(c[g+48>>2]|0){X=117;break}if(c[g+40>>2]|0){X=117;break}if(c[g+60>>2]|0){X=117;break}if(c[g+52>>2]|0){X=117;break}if(b[g+6>>1]&1){X=117;break}r=c[g>>2]|0;if((c[r>>2]|0)!=1){X=117;break}if((a[c[c[r+4>>2]>>2]>>0]|0)!=116){X=117;break}u=Qr(e,0,q+8|0)|0;if((u|0)==0|(u|0)==(ha|0)){X=117;break}y=u+44|0;U=d[y>>0]|0;if(!((U&16|0)==0?(((d[da>>0]|0)>>>5&1^1)&255|0)==(U>>>5&1^1|0):0)){X=117;break}if(c[u+12>>2]|0){X=117;break}s=b[ha+38>>1]|0;if(s<<16>>16!=(b[u+38>>1]|0)){X=117;break}x=ha+36|0;if((b[x>>1]|0)!=(b[u+36>>1]|0)){X=117;break}if(s<<16>>16>0){n=c[ha+4>>2]|0;m=c[u+4>>2]|0;t=0;do{if((a[n+(t*24|0)+21>>0]|0)!=(a[m+(t*24|0)+21>>0]|0)){X=117;break c}r=c[n+(t*24|0)+16>>2]|0;q=c[m+(t*24|0)+16>>2]|0;p=(q|0)==0;if(!r){if(!p){X=117;break c}}else{if(p){X=117;break c}if($c(r,q)|0){X=117;break c}}if((a[n+(t*24|0)+20>>0]|0)!=0?(a[m+(t*24|0)+20>>0]|0)==0:0){X=117;break c}do if((t|0)>0){r=c[n+(t*24|0)+8>>2]|0;q=(r|0)==0;p=c[m+(t*24|0)+8>>2]|0;if(q^(p|0)==0){X=117;break c}if(q)break;if(Wv(r,p)|0){X=117;break c}}while(0);t=t+1|0}while((t|0)<(s<<16>>16|0))}B=ha+8|0;r=c[B>>2]|0;if(!r)q=0;else{s=c[u+8>>2]|0;if(!s){X=117;break}else q=0;do{q=(a[r+50>>0]|0)==0?q:1;p=s;while(1){if(zt(r,p)|0)break;p=c[p+20>>2]|0;if(!p){X=117;break c}}if(!p){X=117;break c}r=c[r+20>>2]|0}while((r|0)!=0)}r=c[ha+24>>2]|0;if((r|0)!=0?(Ps(c[u+24>>2]|0,r,-1)|0)!=0:0){X=117;break}p=c[e>>2]|0;r=c[p+24>>2]|0;if(!(r&524288)){if(r&128){X=117;break}}else if(!((c[ha+16>>2]|0)==0&(r&128|0)==0)){X=117;break}m=c[u+68>>2]|0;d:do if(!m)p=-1e6;else{s=c[p+20>>2]|0;if((s|0)<=0){p=0;break}r=c[p+16>>2]|0;n=0;while(1){p=n+1|0;if((c[r+(n<<4)+12>>2]|0)==(m|0)){p=n;break d}if((p|0)<(s|0))n=p;else break}}while(0);A=Kq(e)|0;wr(e,p);w=e+68|0;C=c[w>>2]|0;z=C+1|0;c[w>>2]=C+2;w=At(e,o,ha)|0;s=e+19|0;n=a[s>>0]|0;do if(!(n<<24>>24)){X=e+72|0;r=(c[X>>2]|0)+1|0;c[X>>2]=r;X=78}else{U=n+-1<<24>>24;a[s>>0]=U;r=c[e+((U&255)<<2)+24>>2]|0;if(!(U<<24>>24)){X=78;break}D=n+-2<<24>>24;a[s>>0]=D;E=r;D=c[e+((D&255)<<2)+24>>2]|0}while(0);if((X|0)==78){E=e+72|0;D=(c[E>>2]|0)+1|0;c[E>>2]=D;E=r}Mq(e,z,o,ha,55);if((b[x>>1]|0)<0)if((c[B>>2]|0)!=0|(q|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;else if((q|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;if((X|0)==83){t=sh(A,108,z,0,0)|0;s=sh(A,16,0,0,0)|0;r=c[A+32>>2]|0;if(r>>>0>t>>>0)c[(c[A+4>>2]|0)+(t*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1;F=s}if(!(a[y>>0]&32)){Mq(e,C,p,u,54);q=sh(A,108,C,0,0)|0;do if((b[x>>1]|0)<=-1)if(!(c[B>>2]|0)){r=sh(A,74,z,D,0)|0;break}else{r=sh(A,103,C,D,0)|0;break}else{r=sh(A,103,C,D,0)|0;t=sh(A,70,z,0,D)|0;Bt(e,v,ha);s=c[A+32>>2]|0;if(s>>>0>t>>>0)c[(c[A+4>>2]|0)+(t*20|0)+8>>2]=s;c[(c[A+24>>2]|0)+88>>2]=s+-1;if((w|0)<=0)break;sh(c[e+8>>2]|0,136,w,D,0)|0}while(0);sh(A,102,C,E,0)|0;sh(A,75,z,E,D)|0;s=c[A+4>>2]|0;if(s)a[s+(((c[A+32>>2]|0)+-1|0)*20|0)+3>>0]=11;th(A,-1,c[ha>>2]|0,0);sh(A,9,C,r,0)|0;sh(A,61,C,0,0)|0;sh(A,61,z,0,0)|0}else{cs(e,o,c[ha+32>>2]|0,1,c[ha>>2]|0);cs(e,p,c[u+32>>2]|0,0,c[u>>2]|0);q=0}t=c[B>>2]|0;if(t){n=u+8|0;m=e+8|0;u=A+4|0;v=A+32|0;w=A+24|0;r=t;do{t=n;while(1){t=c[t>>2]|0;if(zt(r,t)|0)break;t=t+20|0}sh(A,54,C,c[t+40>>2]|0,p)|0;U=c[m>>2]|0;th(U,-1,ds(e,t)|0,-6);sh(A,55,z,c[r+40>>2]|0,o)|0;t=c[m>>2]|0;th(t,-1,ds(e,r)|0,-6);t=c[u>>2]|0;if(t)a[t+(((c[v>>2]|0)+-1|0)*20|0)+3>>0]=1;t=sh(A,108,C,0,0)|0;sh(A,101,C,E,0)|0;sh(A,110,z,E,1)|0;sh(A,9,C,t+1|0,0)|0;s=c[v>>2]|0;if(s>>>0>t>>>0)c[(c[u>>2]|0)+(t*20|0)+8>>2]=s;c[(c[w>>2]|0)+88>>2]=s+-1;sh(A,61,C,0,0)|0;sh(A,61,z,0,0)|0;r=c[r+20>>2]|0}while((r|0)!=0)}if(q){r=c[A+32>>2]|0;if(r>>>0>q>>>0)c[(c[A+4>>2]|0)+(q*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1}Wr(e,D);Wr(e,E);if(!F){m=0;n=0;break}sh(A,24,0,0,0)|0;r=c[A+32>>2]|0;if(r>>>0>F>>>0)c[(c[A+4>>2]|0)+(F*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1;sh(A,61,z,0,0)|0;X=117}else X=117}else X=117;while(0);do if((X|0)==117){P=At(e,o,ha)|0;O=e+72|0;q=c[O>>2]|0;T=q+1|0;U=ha+38|0;F=b[U>>1]|0;E=F<<16>>16;r=T+E|0;c[O>>2]=r;if(!(a[da>>0]&16))S=T;else{r=r+1|0;c[O>>2]=r;S=q+2|0}Q=S+1|0;R=(h|0)!=0;e:do if(R?(M=c[h+4>>2]|0,N=(M|0)>0,N):0){s=c[h>>2]|0;q=0;do{c[s+(q<<3)+4>>2]=-1;q=q+1|0}while((q|0)<(M|0));if(N){A=W<<24>>24!=0;z=ha+4|0;y=ha+36|0;q=1;x=0;s=-1;while(1){f:do if(F<<16>>16>0){w=c[h>>2]|0;p=c[w+(x<<3)>>2]|0;n=c[z>>2]|0;m=0;while(1){t=m+1|0;if(!($c(p,c[n+(m*24|0)>>2]|0)|0)){t=m;break}if((t|0)<(E|0))m=t;else break f}c[w+(x<<3)+4>>2]=t;q=(x|0)==(t|0)?q:0;s=(t|0)==(b[y>>1]|0)?x:s}else t=0;while(0);if((t|0)>=(E|0)){m=c[(c[h>>2]|0)+(x<<3)>>2]|0;if((Xh(m)|0)==0|A)break;else{q=0;t=x}}else t=s;x=x+1|0;if((x|0)>=(M|0)){B=t;break e}else s=t}c[$>>2]=f;c[$+4>>2]=0;c[$+8>>2]=m;ph(e,33368,$);a[e+17>>0]=1;m=0;break a}else{q=1;B=-1}}else{q=1;B=-1}while(0);g:do if(!aa){c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L+24>>2]=0;c[L+28>>2]=0;c[L>>2]=e;if(l){p=c[l>>2]|0;if((p|0)>0){r=l+4|0;q=0;while(1){if(hs(L,c[(c[r>>2]|0)+(q*20|0)>>2]|0)|0){g=0;m=0;break a}q=q+1|0;if((q|0)>=(p|0)){r=0;q=-1;o=0;X=169;break}}}else{M=B;L=0;N=-1;w=0}}else{M=B;p=0;L=0;N=-1;w=0}}else{r=r+1|0;c[O>>2]=r;D=ja+32|0;s=c[D>>2]|0;sh(ja,20,r,0,s+1|0)|0;a[I>>0]=13;E=I+4|0;c[E>>2]=r;a[I+1>>0]=0;C=I+8|0;c[C>>2]=q<<24>>24!=0?Q:0;c[I+12>>2]=b[U>>1];N=er(e,g,I)|0;C=c[C>>2]|0;if(N){m=0;break a}if(a[K>>0]|0){m=0;break a}sh(ja,21,r,0,0)|0;r=c[D>>2]|0;if(r>>>0>s>>>0)c[(c[ja+4>>2]|0)+(s*20|0)+8>>2]=r;F=ja+24|0;c[(c[F>>2]|0)+88>>2]=r+-1;p=c[c[g>>2]>>2]|0;h:do if(!ca){t=Kq(e)|0;q=c[t+32>>2]|0;i:do if(!(a[da>>0]&16))s=0;else{r=c[e>>2]|0;s=c[ha+60>>2]|0;if(!s){s=0;break}while(1){if((c[s>>2]|0)==(r|0))break i;s=c[s+24>>2]|0;if(!s){s=0;break}}}while(0);if((q|0)<=1){r=C;q=0;o=0;X=169;break g}n=(a[(c[t>>2]|0)+65>>0]|0)==0;w=t+4|0;v=ha+32|0;u=ha+8|0;m=1;while(1){if(n)t=(c[w>>2]|0)+(m*20|0)|0;else t=29120;r=a[t>>0]|0;do if(r<<24>>24==54){if((c[t+12>>2]|0)!=(o|0))break;r=c[t+8>>2]|0;if((r|0)==(c[v>>2]|0))break h;t=c[u>>2]|0;if(!t)break;do{if((r|0)==(c[t+40>>2]|0))break h;t=c[t+20>>2]|0}while((t|0)!=0)}else if(r<<24>>24==-107?(c[t+16>>2]|0)==(s|0):0)break h;while(0);m=m+1|0;if((m|0)>=(q|0)){r=C;q=0;o=0;X=169;break g}}}while(0);s=e+68|0;t=c[s>>2]|0;c[s>>2]=t+1;s=e+19|0;q=a[s>>0]|0;do if(!(q<<24>>24)){r=(c[O>>2]|0)+1|0;c[O>>2]=r;X=159}else{N=q+-1<<24>>24;a[s>>0]=N;r=c[e+((N&255)<<2)+24>>2]|0;if(!(N<<24>>24)){X=159;break}N=q+-2<<24>>24;a[s>>0]=N;s=c[e+((N&255)<<2)+24>>2]|0}while(0);if((X|0)==159){s=(c[O>>2]|0)+1|0;c[O>>2]=s}sh(ja,57,t,p,0)|0;o=sh(ja,22,c[E>>2]|0,0,0)|0;sh(ja,49,C,p,r)|0;sh(ja,74,t,s,0)|0;sh(ja,75,t,r,s)|0;sh(ja,16,0,o,0)|0;q=c[D>>2]|0;if(q>>>0>o>>>0)c[(c[ja+4>>2]|0)+(o*20|0)+8>>2]=q;c[(c[F>>2]|0)+88>>2]=q+-1;Wr(e,r);Wr(e,s);r=C;q=t;o=1;X=169}while(0);if((X|0)==169)if(Y&(p|0)>0){M=b[ha+36>>1]|0;L=r;N=q;w=o}else{M=B;L=r;N=q;w=o}if((a[da>>0]&16)!=0?(J=b[U>>1]|0,J<<16>>16>0):0){s=c[ha+4>>2]|0;q=J<<16>>16;o=0;r=0;do{r=((d[s+(o*24|0)+23>>0]|0)>>>1&1)+r|0;o=o+1|0}while((o|0)<(q|0))}else r=0;do if(Y&(p|0)!=0){r=(b[U>>1]|0)-r|0;if((p|0)==(r|0))break;c[$>>2]=f;c[$+4>>2]=0;c[$+8>>2]=r;c[$+12>>2]=p;ph(e,33400,$);m=0;break a}while(0);do if(R){r=c[h+4>>2]|0;if((p|0)==(r|0))break;c[$>>2]=p;c[$+4>>2]=r;ph(e,33456,$);m=0;break a}while(0);H=ka+24|0;if(!(c[H>>2]&128))n=0;else{n=(c[O>>2]|0)+1|0;c[O>>2]=n;sh(ja,25,0,n,0)|0}do if(ea)m=0;else{r=lt(e,ha,55,-1,0,ga,ia)|0;m=ih(ka,(r<<2)+4|0,0)|0;if(!m)break a;if((r|0)>0)q=0;else break;do{K=(c[O>>2]|0)+1|0;c[O>>2]=K;c[m+(q<<2)>>2]=K;q=q+1|0}while((q|0)!=(r|0))}while(0);J=w<<24>>24!=0;do if(J){K=sh(ja,108,N,0,0)|0;I=c[ja+32>>2]|0}else{if(!aa){I=0;K=0;break}K=sh(ja,22,c[I+4>>2]|0,0,0)|0;I=K}while(0);G=ts(ja)|0;do if(c[V>>2]&1){t=(b[U>>1]|0)+1|0;E=e+60|0;s=c[E>>2]|0;D=e+56|0;r=c[D>>2]|0;if((r|0)<(t|0)){F=c[O>>2]|0;c[O>>2]=F+t;F=F+1|0}else{c[E>>2]=t+s;c[D>>2]=r-t;F=s}if((M|0)<0)sh(ja,25,-1,F,0)|0;else{if(J)sh(ja,47,N,M,F)|0;else Nq(e,c[(c[l+4>>2]|0)+(M*20|0)>>2]|0,F);t=sh(ja,77,F,0,0)|0;sh(ja,25,-1,F,0)|0;s=c[ja+32>>2]|0;if(s>>>0>t>>>0)c[(c[ja+4>>2]|0)+(t*20|0)+8>>2]=s;c[(c[ja+24>>2]|0)+88>>2]=s+-1;sh(ja,38,F,0,0)|0}s=b[U>>1]|0;if(s<<16>>16>0){A=J|(l|0)!=0;q=h+4|0;r=F+1|0;t=l+4|0;x=e+8|0;y=ha+4|0;z=0;do{j:do if(Y)w=z;else{v=c[q>>2]|0;if((v|0)<=0){w=0;break}u=c[h>>2]|0;o=0;while(1){w=o+1|0;if((c[u+(o<<3)+4>>2]|0)==(z|0)){w=o;break j}if((w|0)<(v|0))o=w;else break}}while(0);do if(A){if(R?(w|0)>=(c[q>>2]|0):0){X=213;break}if(J){sh(ja,47,N,w,r+z|0)|0;break}else{V=c[(c[t>>2]|0)+(w*20|0)>>2]|0;o=r+z|0;u=c[x>>2]|0;Nq(e,V,o);s=(c[O>>2]|0)+1|0;c[O>>2]=s;sh(u,33,o,s,0)|0;a[V+38>>0]=a[V>>0]|0;a[V>>0]=-97;c[V+28>>2]=s;V=V+4|0;c[V>>2]=c[V>>2]&-4097;break}}else X=213;while(0);if((X|0)==213){X=0;Nq(e,c[(c[y>>2]|0)+(z*24|0)+4>>2]|0,r+z|0)}z=z+1|0;s=b[U>>1]|0}while((z|0)<(s<<16>>16|0))}if(!ea){st(ja,ha,F+1|0);s=b[U>>1]|0}tt(e,ca,108,0,1,ha,F+-1-(s<<16>>16)|0,k,G);s=(b[U>>1]|0)+1|0;$s(e,F,s);if((c[D>>2]|0)>=(s|0))break;c[D>>2]=s;c[E>>2]=F}while(0);do if(!ea){if(a[da>>0]&16)sh(ja,28,0,T,0)|0;k:do if((M|0)<=-1)if(!((a[da>>0]&16|W)<<24>>24)){sh(ja,74,c[ga>>2]|0,S,P)|0;F=1;break}else{sh(ja,28,0,S,0)|0;F=0;break}else{do if(J)sh(ja,47,N,M,S)|0;else{if(aa){sh(ja,33,M+L|0,S,0)|0;break}Nq(e,c[(c[l+4>>2]|0)+(M*20|0)>>2]|0,S);if(!(a[(c[ja>>2]|0)+65>>0]|0)){r=(c[ja+4>>2]|0)+(((c[ja+32>>2]|0)+-1|0)*20|0)|0;if(!r)break}else r=29120;if((a[r>>0]|0)!=28)break;if(a[da>>0]&16)break;a[r>>0]=74;c[r+4>>2]=c[ga>>2];c[r+8>>2]=S;c[r+12>>2]=P;F=1;break k}while(0);if(!(a[da>>0]&16)){r=sh(ja,77,S,0,0)|0;sh(ja,74,c[ga>>2]|0,S,P)|0;q=c[ja+32>>2]|0;if(q>>>0>r>>>0)c[(c[ja+4>>2]|0)+(r*20|0)+8>>2]=q;c[(c[ja+24>>2]|0)+88>>2]=q+-1}else sh(ja,76,S,(c[ja+32>>2]|0)+2|0,0)|0;sh(ja,38,S,0,0)|0;F=0}while(0);if((P|0)>0)sh(c[e+8>>2]|0,136,P,S,0)|0;if((b[U>>1]|0)>0){D=ha+36|0;E=ha+4|0;z=(p|0)==0;y=h+4|0;x=(L|0)==(Q|0);p=l+4|0;q=e+23|0;r=$+20|0;s=$+4|0;B=$+24|0;C=0;t=0;do{A=C+Q|0;l:do if((C|0)==(b[D>>1]|0))sh(ja,29,A,0,0)|0;else{m:do if(Y)if(!(a[(c[E>>2]|0)+(C*24|0)+23>>0]&2)){w=C-t|0;X=258;break}else{t=t+1|0;break}else{v=c[y>>2]|0;if((v|0)<=0){w=0;X=258;break}u=c[h>>2]|0;o=0;while(1){w=o+1|0;if((c[u+(o<<3)+4>>2]|0)==(C|0)){w=o;X=258;break m}if((w|0)<(v|0))o=w;else{X=258;break}}}while(0);do if((X|0)==258){X=0;if((w|0)<0|z)break;if(R?(w|0)>=(c[y>>2]|0):0)break;if(J){sh(ja,47,N,w,A)|0;break l}if(!aa){Nq(e,c[(c[p>>2]|0)+(w*20|0)>>2]|0,A);break l}if(x)break l;sh(ja,34,w+L|0,A,0)|0;break l}while(0);w=c[(c[E>>2]|0)+(C*24|0)+4>>2]|0;do if(a[q>>0]|0){c[$+0>>2]=0;c[$+4>>2]=0;c[$+8>>2]=0;c[$+12>>2]=0;c[$+16>>2]=0;c[$+20>>2]=0;a[r>>0]=1;c[$>>2]=78;c[s>>2]=79;c[B>>2]=0;ns($,w)|0;if(!(a[r>>0]|0))break;Ct(e,w,A,0);break l}while(0);Nq(e,w,A)}while(0);C=C+1|0}while((C|0)<(b[U>>1]|0))}if(!(a[da>>0]&16)){ut(e,ha,m,c[ga>>2]|0,c[ia>>2]|0,T,0,M>>>31&255^1,k&255,G,_);vt(e,ha,0,T,0,0);xt(e,ha,c[ga>>2]|0,c[ia>>2]|0,T,m,0,F,(c[_>>2]|0)==0&1);break}r=c[ha+60>>2]|0;n:do if(!r)r=0;else while(1){if((c[r>>2]|0)==(ka|0))break n;r=c[r+24>>2]|0;if(!r){r=0;break}}while(0);mt(e,ha);th(ja,sh(ja,15,1,(b[U>>1]|0)+2|0,T)|0,r,-10);q=c[ja+4>>2]|0;if(q)a[q+(((c[ja+32>>2]|0)+-1|0)*20|0)+3>>0]=(k|0)==10?2:k&255;$=c[Z>>2]|0;a[(($|0)==0?e:$)+21>>0]=1}while(0);if(c[H>>2]&128)sh(ja,37,n,1,0)|0;if(ca)tt(e,ca,108,0,2,ha,S+-1-(b[U>>1]|0)|0,k,G);r=ja+24|0;q=c[r>>2]|0;o=~G;do if((G|0)<0){p=c[q+112>>2]|0;if(!p)break;c[p+(o<<2)>>2]=c[ja+32>>2]}while(0);p=ja+32|0;c[q+88>>2]=(c[p>>2]|0)+-1;do if(J){sh(ja,9,N,I,0)|0;p=c[p>>2]|0;if(p>>>0>K>>>0)c[(c[ja+4>>2]|0)+(K*20|0)+8>>2]=p;c[(c[r>>2]|0)+88>>2]=p+-1;sh(ja,61,N,0,0)|0}else{if(!aa)break;sh(ja,16,0,I,0)|0;p=c[p>>2]|0;if(p>>>0>K>>>0)c[(c[ja+4>>2]|0)+(K*20|0)+8>>2]=p;c[(c[r>>2]|0)+88>>2]=p+-1}while(0);if((a[da>>0]&16)!=0|ea)break;o=c[ga>>2]|0;if((o|0)<(c[ia>>2]|0))sh(ja,61,o,0,0)|0;o=c[ha+8>>2]|0;if(!o)break;else p=0;while(1){sh(ja,61,(c[ia>>2]|0)+p|0,0,0)|0;o=c[o+20>>2]|0;if(!o)break;else p=p+1|0}}while(0);if((a[fa>>0]|0)==0?(c[e+412>>2]|0)==0:0)ot(e);if((((c[ka+24>>2]&128|0)!=0?(a[fa>>0]|0)==0:0)?(c[e+412>>2]|0)==0:0)?(sh(ja,35,n,1,0)|0,eq(ja,1),(a[(c[ja>>2]|0)+65>>0]|0)==0):0)Tg(c[ja+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);zo(ka,f);Jk(ka,l);Ik(ka,g,1);Dk(ka,h);ig(ka,m);i=la;return}function qr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;if(!d){d=ih(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;g=g+4|0;a[g>>0]=0;a[g+1>>0]=0;a[g+2>>0]=0;a[g+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[d>>2]=Dt(b,c[d>>2]|0,8,d+4|0,f)|0;f=c[f>>2]|0;if((f|0)<0){Dk(b,d);d=0;break}else{b=Sq(b,e)|0;c[(c[d>>2]|0)+(f<<3)>>2]=b;break}}while(0);i=h;return d|0}function rr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[d+4>>2]|0)!=0?(f=jr(c[a>>2]|0,95,d,e)|0,(f|0)!=0):0){c[f+12>>2]=b;b=f+4|0;c[b>>2]=c[b>>2]|4352;b=f}return b|0}function sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[a>>2]|0;d=jr(e,153,d,1)|0;if(!d){Jk(e,b);d=0}else{c[d+20>>2]=b;ur(a,d)}return d|0}function tr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[b>>2]|0;if((d|0)!=0&(e|0)!=0?(a[d>>0]|0)==101:0){a[e>>0]=f;f=e+16|0;Ck(b,c[f>>2]|0);c[f>>2]=0}return}function ur(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((c[a+64>>2]|0)==0?(Et(b),d=c[(c[a>>2]|0)+100>>2]|0,(d|0)<(c[b+24>>2]|0)):0){c[e>>2]=d;ph(a,27152,e)}i=f;return}function vr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[a>>2]|0;i=d+20|0;e=c[i>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[g>>2]|0;do if(c[e+(f<<4)+4>>2]|0){if(!h?($c(b,c[e+(f<<4)>>2]|0)|0)!=0:0)break;wr(a,f);d=c[i>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function wr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[a+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[a>>2]|0;e=1<<b;if((d&e|0)==0?(g=c[f>>2]|0,c[a>>2]=d|e,c[f+(b<<2)+336>>2]=c[c[(c[g+16>>2]|0)+(b<<4)+12>>2]>>2],(b|0)==1):0)Wk(f)|0;return}function xr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+128|0;if((i|0)>=(j|0))ba();f=o+8|0;n=o;m=o+24|0;c[n>>2]=0;k=c[b>>2]|0;if((c[b+64>>2]|0)==0?(c[f>>2]=e,l=Sk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[d>>0]=(a[d>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(h|0));Hh(b,l,n)|0;ig(k,c[n>>2]|0);ig(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[d>>0]=(a[d>>0]|0)+-1<<24>>24}i=o;return}function yr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))ba();g=k;h=k+16|0;b=c[(c[(c[a>>2]|0)+16>>2]|0)+(b<<4)>>2]|0;f=1;do{c[g>>2]=f;Yc(24,h,33272,g)|0;if(Wh(c[a>>2]|0,h,b)|0){c[g>>2]=b;c[g+4>>2]=h;c[g+8>>2]=d;c[g+12>>2]=e;xr(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function zr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[e>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[f>>2]|0)+1|0;c[f>>2]=e}else{f=f+-1<<24>>24;a[e>>0]=f;e=c[b+((f&255)<<2)+24>>2]|0}f=c[b+8>>2]|0;sh(f,25,(c[c[(c[(c[b>>2]|0)+16>>2]|0)+(d<<4)+12>>2]>>2]|0)+1|0,e,0)|0;sh(f,52,d,1,e)|0;Wr(b,e);return}function Ar(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();k=l;h=Kq(b)|0;f=b+19|0;g=a[f>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f}else{g=g+-1<<24>>24;a[f>>0]=g;f=c[b+((g&255)<<2)+24>>2]|0}sh(h,117,d,f,e)|0;g=c[b+408>>2]|0;a[((g|0)==0?b:g)+21>>0]=1;c[k>>2]=c[(c[(c[b>>2]|0)+16>>2]|0)+(e<<4)>>2];c[k+4>>2]=(e|0)==1?13184:13208;c[k+8>>2]=d;c[k+12>>2]=f;c[k+16>>2]=f;xr(b,33216,k);Wr(b,f);i=l;return}function Br(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;U=i;i=i+96|0;if((i|0)>=(j|0))ba();D=U+24|0;t=U+80|0;n=U+64|0;x=U+16|0;q=U+60|0;r=U+56|0;L=U+52|0;K=U+48|0;w=U+44|0;A=U+40|0;B=U+36|0;C=U+32|0;u=U+8|0;p=U;T=c[f>>2]|0;Q=Kq(f)|0;do if((Q|0)!=0?(P=Q+88|0,b[P>>1]=b[P>>1]|16,P=f+72|0,c[P>>2]=2,N=ar(f,g,h,t)|0,(N|0)>=0):0){O=T+16|0;z=c[O>>2]|0;if((N|0)==1?(Wk(f)|0)!=0:0)break;S=Sq(T,c[t>>2]|0)|0;if(S){if(!l)R=Sq(T,k)|0;else{c[D>>2]=k;R=qh(T,30104,D)|0}y=h+4|0;if(!(c[y>>2]|0))I=0;else I=c[z+(N<<4)>>2]|0;a:do if(!(Oq(f,19,S,R,I)|0)){c[n>>2]=0;c[n+4>>2]=S;c[n+8>>2]=R;c[n+12>>2]=0;o=T+452|0;c[o>>2]=0;g=_f(T,I,14,n)|0;if(!g){k=c[n>>2]|0;if(!k)break;m=(c[P>>2]|0)+1|0;c[P>>2]=m;th(Q,sh(Q,97,0,m,0)|0,k,0);eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30112,-1,1,0)|0;sh(Q,35,m,1,0)|0;Sc(c[n>>2]|0);break}else if((g|0)==12){t=0;n=56;b:while(1){while(1){l=(t+n|0)/2|0;g=c[30120+(l*12|0)>>2]|0;k=$c(S,g)|0;if(!k){t=l;break b}if((k|0)<0){g=l;break}if((l|0)<(n|0))t=l+1|0;else break a}g=g+-1|0;if((t|0)>(g|0))break a;else n=g}if((a[30125+(t*12|0)>>0]&1)!=0?(Cn(f)|0)!=0:0)break;do switch(d[30124+(t*12|0)>>0]|0){case 25:{l=c[z+(N<<4)+4>>2]|0;if(R){m=(ei(R,1,0)|0)<<24>>24!=0&1;if((c[y>>2]|0)==0?(v=T+20|0,(c[v>>2]|0)>0):0){k=0;do{oo(c[(c[O>>2]|0)+(k<<4)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[v>>2]|0))}}else m=-1;D=oo(l,m)|0;Ft(f,30880,D,((D|0)<0)<<31>>31);break a}case 22:{wr(f,N);k=(c[P>>2]|0)+1|0;c[P>>2]=k;if((a[S>>0]&-33)<<24>>24==80)sh(Q,153,N,k,0)|0;else{c[D>>2]=0;if(R){zn(R,D)|0;m=c[D>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;sh(Q,154,N,k,m)|0}sh(Q,35,k,1,0)|0;eq(Q,1);if(a[(c[Q>>2]|0)+65>>0]|0)break a;Tg(c[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 30:{if(!R)break a;h=Wh(T,R,I)|0;if(!h)break a;k=c[h+8>>2]|0;c:do if(!k)k=0;else while(1){if((a[k+51>>0]&3)==2)break c;k=c[k+20>>2]|0;if(!k){k=0;break}}while(0);eq(Q,6);c[P>>2]=6;wr(f,N);do if((((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31176,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0){Tg((c[Q+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[(c[Q>>2]|0)+65>>0]|0)break;Tg((c[Q+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[(c[Q>>2]|0)+65>>0]|0)break;Tg((c[Q+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);dr(f,h)|0;q=h+38|0;m=b[q>>1]|0;if(m<<16>>16<=0)break a;r=(k|0)==0;l=k+4|0;t=0;o=0;g=c[h+4>>2]|0;while(1){p=g+23|0;if(!(a[p>>0]&2)){sh(Q,25,t-o|0,1,0)|0;n=c[g>>2]|0;th(Q,sh(Q,97,0,2,0)|0,n,0);n=c[g+12>>2]|0;th(Q,sh(Q,97,0,3,0)|0,(n|0)==0?10360:n,0);sh(Q,25,(a[g+20>>0]|0)!=0&1,4,0)|0;n=c[g+8>>2]|0;if(!n)sh(Q,28,0,5,0)|0;else th(Q,sh(Q,97,0,5,0)|0,n,0);k=a[p>>0]&1;d:do if(k<<24>>24==0|r)n=(k^1)&255^1;else{n=b[q>>1]|0;if(n<<16>>16<1){n=1;break}m=c[l>>2]|0;p=n<<16>>16;k=1;while(1){n=k+1|0;if((b[m+(k+-1<<1)>>1]|0)==(t|0)){n=k;break d}if((k|0)<(p|0))k=n;else break}}while(0);sh(Q,25,n,6,0)|0;sh(Q,35,1,6,0)|0;m=b[q>>1]|0}else o=o+1|0;t=t+1|0;if((t|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 29:{if(!R){D=(d[z+(N<<4)+8>>0]|0)+-1|0;Ft(f,31104,D,((D|0)<0)<<31>>31);break a}if(!(a[T+63>>0]|0)){ph(f,31120,D);break a}else{a[z+(N<<4)+8>>0]=((ei(R,0,1)|0)&255)+1;Ht(T);break a}}case 21:{do if(R){if($c(R,30904)|0)if(!($c(R,30896)|0))k=0;else{M=66;break}else k=1;if(!(c[y>>2]|0)){p=c[T+20>>2]|0;if((p|0)>2){n=c[O>>2]|0;m=k&255;o=2;do{l=c[c[(c[n+(o<<4)+4>>2]|0)+4>>2]>>2]|0;do if(!(a[l+12>>0]|0)){D=c[l+208>>2]|0;if((D|0)!=0?(a[D+43>>0]|0)==2:0)break;a[l+4>>0]=m}while(0);o=o+1|0}while((o|0)<(p|0))}else m=k&255;a[T+66>>0]=m;M=74}else M=74}else M=66;while(0);if((M|0)==66)if(!(c[y>>2]|0))l=T+66|0;else{k=-1;M=74}if((M|0)==74){m=c[c[(c[z+(N<<4)+4>>2]|0)+4>>2]>>2]|0;do if((k|0)>-1?(a[m+12>>0]|0)==0:0){D=c[m+208>>2]|0;if((D|0)!=0?(a[D+43>>0]|0)==2:0)break;a[m+4>>0]=k}while(0);l=m+4|0}l=(a[l>>0]|0)==1?30904:30896;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30920,-1,1,0)|0;th(Q,sh(Q,97,0,1,0)|0,l,0);sh(Q,35,1,1,0)|0;break a}case 19:{k=c[c[(c[z+(N<<4)+4>>2]|0)+4>>2]>>2]|0;D=x;c[D>>2]=-2;c[D+4>>2]=-1;if(R){fi(R,x)|0;m=x;l=c[m>>2]|0;m=c[m+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=x;c[l>>2]=-1;c[l+4>>2]=-1;l=-1;m=-1}D=k+160|0;c[D>>2]=l;c[D+4>>2]=m;k=c[k+208>>2]|0;if(k){D=k+16|0;c[D>>2]=l;c[D+4>>2]=m}}else{m=k+160|0;l=c[m>>2]|0;m=c[m+4>>2]|0}D=x;c[D>>2]=l;c[D+4>>2]=m;Ft(f,30952,l,m);break a}case 2:{if(!R){Ft(f,g,(c[30128+(t*12|0)>>2]&c[T+24>>2]|0)!=0&1,0);break a}l=c[30128+(t*12|0)>>2]|0;l=(a[T+63>>0]|0)==0?l&-524289:l;if(!((ei(R,1,0)|0)<<24>>24)){D=T+24|0;c[D>>2]=c[D>>2]&~l;if((l|0)==16777216){D=T+512|0;c[D>>2]=0;c[D+4>>2]=0}}else{D=T+24|0;c[D>>2]=c[D>>2]|l}sh(Q,144,0,0,0)|0;Ht(T);break a}case 28:{n=Kq(f)|0;eq(n,4);c[P>>2]=4;wr(f,N);if((((a[(c[n>>2]|0)+65>>0]|0)==0?(Tg(c[n+16>>2]|0,31232,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)Tg((c[n+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[(c[z+(N<<4)+12>>2]|0)+16>>2]|0;if(!l)break a;do{m=c[l+8>>2]|0;D=c[m>>2]|0;th(n,sh(n,97,0,1,0)|0,D,0);sh(n,28,0,2,0)|0;D=Ss(b[m+42>>1]|0)|0;sh(n,25,D,3,0)|0;D=Ss(b[m+28>>1]|0)|0;sh(n,25,D,4,0)|0;sh(n,35,1,4,0)|0;m=c[m+8>>2]|0;if(m)do{D=c[m>>2]|0;th(n,sh(n,97,0,2,0)|0,D,0);D=Ss(b[m+44>>1]|0)|0;sh(n,25,D,3,0)|0;D=Ss(b[c[m+8>>2]>>1]|0)|0;sh(n,25,D,4,0)|0;sh(n,35,1,4,0)|0;m=c[m+20>>2]|0}while((m|0)!=0);l=c[l>>2]|0}while((l|0)!=0);break}case 15:{if(!R)break a;p=Zp(T,R,I)|0;if(!p)break a;t=(c[30128+(t*12|0)>>2]|0)==0;q=p+46|0;D=t?3:6;o=b[(t?q:p+48|0)>>1]|0;r=o&65535;c[P>>2]=D;n=c[p+12>>2]|0;eq(Q,D);wr(f,N);if(((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31256,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!t?(a[(c[Q>>2]|0)+65>>0]|0)==0:0)?(Tg((c[Q+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(o<<16>>16))break a;m=p+4|0;l=p+28|0;k=p+32|0;p=n+4|0;n=0;do{D=b[(c[m>>2]|0)+(n<<1)>>1]|0;sh(Q,25,n,1,0)|0;o=D<<16>>16;sh(Q,25,o,2,0)|0;if(D<<16>>16<0)sh(Q,28,0,3,0)|0;else{D=c[(c[p>>2]|0)+(o*24|0)>>2]|0;th(Q,sh(Q,97,0,3,0)|0,D,0)}if(!t){sh(Q,25,d[(c[l>>2]|0)+n>>0]|0,4,0)|0;D=c[(c[k>>2]|0)+(n<<2)>>2]|0;th(Q,sh(Q,97,0,5,0)|0,D,0);sh(Q,25,(n|0)<(e[q>>1]|0)&1,6,0)|0}sh(Q,35,1,c[P>>2]|0,0)|0;n=n+1|0}while((n|0)<(r|0));break}case 5:{if(!R)break a;D=(ei(R,1,0)|0)<<24>>24!=0;C=D?32e3:19240;Mh(T,19248,2,1,C,40,0,0,0)|0;Mh(T,19248,3,1,C,40,0,0,0)|0;Mh(T,19232,2,1,10352,40,0,0,0)|0;Kt(T,19232,12);Kt(T,19248,D?12:4);break a}case 17:{g=a[S>>0]|0;x=(c[h>>2]|0)==0?-1:N;c[P>>2]=6;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,31464,-1,1,0)|0;c[w>>2]=100;if(R){zn(R,w)|0;p=c[w>>2]|0;if((p|0)<1){c[w>>2]=100;p=100}}else p=100;sh(Q,25,p,1,0)|0;J=T+20|0;t=c[J>>2]|0;if((t|0)>0){I=(x|0)<0;m=Q+32|0;F=Q+4|0;E=Q+24|0;K=(g&-33)<<24>>24==81;L=0;do{if(I|(L|0)==(x|0)){wr(f,L);t=sh(Q,137,1,0,0)|0;sh(Q,24,0,0,0)|0;l=c[m>>2]|0;if(l>>>0>t>>>0)c[(c[F>>2]|0)+(t*20|0)+8>>2]=l;c[(c[E>>2]|0)+88>>2]=l+-1;k=(c[(c[O>>2]|0)+(L<<4)+12>>2]|0)+16|0;t=c[k>>2]|0;if(!t)g=0;else{g=0;do{l=c[t+8>>2]|0;if(!(a[l+44>>0]&32)){sh(Q,25,c[l+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[l+8>>2]|0;if(l)do{sh(Q,25,c[l+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[l+20>>2]|0}while((l|0)!=0);t=c[t>>2]|0}while((t|0)!=0)}z=c[P>>2]|0;t=g+8|0;c[P>>2]=(z|0)>(t|0)?z:t;sh(Q,127,2,g,1)|0;t=c[F>>2]|0;if(t)a[t+(((c[m>>2]|0)+-1|0)*20|0)+3>>0]=L;g=sh(Q,76,2,0,0)|0;c[D>>2]=c[(c[O>>2]|0)+(L<<4)>>2];t=qh(T,31480,D)|0;th(Q,sh(Q,97,0,3,0)|0,t,-1);sh(Q,32,2,4,1)|0;sh(Q,94,4,3,2)|0;sh(Q,35,2,1,0)|0;t=c[m>>2]|0;if(t>>>0>g>>>0)c[(c[F>>2]|0)+(g*20|0)+8>>2]=t;c[(c[E>>2]|0)+88>>2]=t+-1;t=c[k>>2]|0;if(!((t|0)==0|K))do{u=c[t+8>>2]|0;G=u+8|0;g=c[G>>2]|0;do if(g){e:do if(!(a[u+44>>0]&32))g=0;else while(1){if((a[g+51>>0]&3)==2)break e;g=c[g+20>>2]|0;if(!g){g=0;break}}while(0);l=sh(Q,137,1,0,0)|0;sh(Q,24,0,0,0)|0;k=c[m>>2]|0;if(k>>>0>l>>>0)c[(c[F>>2]|0)+(l*20|0)+8>>2]=k;c[(c[E>>2]|0)+88>>2]=k+-1;Ys(f);lt(f,u,54,1,0,A,B)|0;sh(Q,25,0,7,0)|0;k=c[G>>2]|0;if(!k)l=8;else{l=0;while(1){sh(Q,25,0,l+8|0,0)|0;k=c[k+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}H=c[P>>2]|0;c[P>>2]=(H|0)>(l|0)?H:l;sh(Q,108,c[A>>2]|0,0,0)|0;H=sh(Q,37,7,1,0)|0;r=u+38|0;l=b[r>>1]|0;if(l<<16>>16>0){h=u+36|0;s=u+4|0;q=0;do{do if((q|0)!=(b[h>>1]|0)){if(!(a[(c[s>>2]|0)+(q*24|0)+20>>0]|0))break;jt(Q,u,c[A>>2]|0,q,3);l=c[F>>2]|0;if(l)a[l+(((c[m>>2]|0)+-1|0)*20|0)+3>>0]=-128;l=sh(Q,77,3,0,0)|0;sh(Q,37,1,-1,0)|0;n=c[(c[s>>2]|0)+(q*24|0)>>2]|0;c[D>>2]=c[u>>2];c[D+4>>2]=n;n=qh(T,31504,D)|0;th(Q,sh(Q,97,0,3,0)|0,n,-1);sh(Q,35,3,1,0)|0;n=sh(Q,137,1,0,0)|0;sh(Q,24,0,0,0)|0;o=c[m>>2]|0;if(o>>>0>l>>>0)c[(c[F>>2]|0)+(l*20|0)+8>>2]=o;l=o+-1|0;k=(c[E>>2]|0)+88|0;c[k>>2]=l;if(o>>>0>n>>>0)c[(c[F>>2]|0)+(n*20|0)+8>>2]=o;c[k>>2]=l;l=b[r>>1]|0}while(0);q=q+1|0}while((q|0)<(l<<16>>16|0))}l=c[G>>2]|0;if(l){w=u+4|0;v=0;o=0;k=-1;while(1){n=ts(Q)|0;if((g|0)!=(l|0)){k=Lt(f,l,c[A>>2]|0,0,0,C,o,k)|0;sh(Q,37,v+8|0,1,0)|0;u=e[l+48>>1]|0;n=sh(Q,69,(c[B>>2]|0)+v|0,n,k)|0;th(Q,n,u,-14);sh(Q,37,1,-1,0)|0;th(Q,sh(Q,97,0,3,0)|0,31528,-2);sh(Q,94,7,3,3)|0;th(Q,sh(Q,97,0,4,0)|0,31536,-2);sh(Q,94,4,3,3)|0;u=c[l>>2]|0;s=sh(Q,97,0,4,0)|0;th(Q,s,u,0);sh(Q,94,4,3,3)|0;sh(Q,35,3,1,0)|0;u=sh(Q,137,1,0,0)|0;sh(Q,24,0,0,0)|0;o=c[m>>2]|0;if(o>>>0>n>>>0)c[(c[F>>2]|0)+(n*20|0)+8>>2]=o;n=c[E>>2]|0;c[n+88>>2]=o+-1;if(a[l+50>>0]|0){h=ts(Q)|0;r=l+46|0;n=b[r>>1]|0;if(n<<16>>16){q=l+4|0;o=0;do{if(!(a[(c[w>>2]|0)+((b[(c[q>>2]|0)+(o<<1)>>1]|0)*24|0)+20>>0]|0)){sh(Q,76,o+k|0,h,0)|0;n=b[r>>1]|0}o=o+1|0}while((o|0)<(n&65535|0))}n=sh(Q,9,(c[B>>2]|0)+v|0,0,0)|0;sh(Q,16,0,h,0)|0;o=c[m>>2]|0;if(o>>>0>n>>>0)c[(c[F>>2]|0)+(n*20|0)+8>>2]=o;c[(c[E>>2]|0)+88>>2]=o+-1;n=e[r>>1]|0;th(Q,sh(Q,114,(c[B>>2]|0)+v|0,h,k)|0,n,-14);sh(Q,37,1,-1,0)|0;th(Q,sh(Q,97,0,3,0)|0,31560,-2);sh(Q,16,0,s,0)|0;n=c[E>>2]|0;q=~h;do if((h|0)<0){o=c[n+112>>2]|0;if(!o)break;c[o+(q<<2)>>2]=c[m>>2]}while(0);o=c[m>>2]|0;c[n+88>>2]=o+-1}if(o>>>0>u>>>0)c[(c[F>>2]|0)+(u*20|0)+8>>2]=o;c[n+88>>2]=o+-1;Mt(f,c[C>>2]|0);o=l}l=c[l+20>>2]|0;if(!l)break;else v=v+1|0}}sh(Q,9,c[A>>2]|0,H,0)|0;l=H+-1|0;k=c[m>>2]|0;if(k>>>0>l>>>0)c[(c[F>>2]|0)+(l*20|0)+8>>2]=k;c[(c[E>>2]|0)+88>>2]=k+-1;th(Q,sh(Q,97,0,2,0)|0,31592,-2);l=c[G>>2]|0;if(!l)break;else n=0;while(1){if((g|0)!=(l|0)){k=c[m>>2]|0;sh(Q,137,1,k+2|0,0)|0;sh(Q,24,0,0,0)|0;sh(Q,50,(c[B>>2]|0)+n|0,3,0)|0;sh(Q,79,n+8|0,k+8|0,3)|0;k=c[F>>2]|0;if(k)a[k+(((c[m>>2]|0)+-1|0)*20|0)+3>>0]=-112;sh(Q,37,1,-1,0)|0;z=c[l>>2]|0;th(Q,sh(Q,97,0,3,0)|0,z,0);sh(Q,94,3,2,7)|0;sh(Q,35,7,1,0)|0}l=c[l+20>>2]|0;if(!l)break;else n=n+1|0}}while(0);t=c[t>>2]|0}while((t|0)!=0);t=c[J>>2]|0}L=L+1|0}while((L|0)<(t|0))}else m=Q+32|0;l=uh(Q,3,31448)|0;m=c[m>>2]|0;if(m>>>0>l>>>0){c[(c[Q+4>>2]|0)+(l*20|0)+12>>2]=0-p;c[(c[Q+4>>2]|0)+(l*20|0)+8>>2]=m}c[(c[Q+24>>2]|0)+88>>2]=m+-1;th(Q,l+1|0,31624,-2);break a}case 23:{Ft(f,31016,0,0);break a}case 31:{if(!R){Ft(f,31032,d[T+64>>0]|0,0);break a}l=a[R>>0]|0;if((l+-48&255)>=3)if(!($c(R,31352)|0))l=1;else{l=($c(R,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[f>>2]|0)+64|0;if((d[m>>0]|0)==(l|0))break a;if(Gt(f)|0)break a;a[m>>0]=l;break a}case 4:if(!R){D=c[(c[z+(N<<4)+12>>2]|0)+80>>2]|0;Ft(f,30848,D,((D|0)<0)<<31>>31);break a}else{c[D>>2]=0;zn(R,D)|0;D=c[D>>2]|0;c[(c[z+(N<<4)+12>>2]|0)+80>>2]=D;lq(c[z+(N<<4)+4>>2]|0,D);break a}case 32:{if(!R){if(!(c[2708]|0))break a;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,31048,-1,1,0)|0;D=c[2708]|0;th(Q,sh(Q,97,0,1,0)|0,D,0);sh(Q,35,1,1,0)|0;break a}if((a[R>>0]|0)!=0?(C=c[T>>2]|0,C=(lc[c[C+32>>2]&31](C,R,1,r)|0)!=0,C|(c[r>>2]|0)==0):0){ph(f,31072,D);break a}if((d[T+64>>0]|0)<2)Gt(f)|0;Sc(c[2708]|0);if(!(a[R>>0]|0)){c[2708]=0;break a}else{c[D>>2]=R;c[2708]=Wc(10344,D)|0;break a}}case 24:{l=c[z+(N<<4)+4>>2]|0;if(R){c[D>>2]=0;zn(R,D)|0;D=c[D>>2]|0;c[T+72>>2]=D;if((tg(l,D,-1,0)|0)!=7)break a;a[T+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[(c[l+4>>2]|0)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Ft(f,30864,l,m);break a}case 9:{eq(Q,3);c[P>>2]=3;if(((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31288,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+80|0,31352,-1,1,0)|0;l=T+20|0;m=c[l>>2]|0;if((m|0)>0)n=0;else break a;do{if(c[(c[O>>2]|0)+(n<<4)+4>>2]|0){sh(Q,25,n,1,0)|0;k=c[(c[O>>2]|0)+(n<<4)>>2]|0;th(Q,sh(Q,97,0,2,0)|0,k,0);k=c[c[(c[(c[O>>2]|0)+(n<<4)+4>>2]|0)+4>>2]>>2]|0;if(!(a[k+15>>0]|0))k=c[k+168>>2]|0;else k=10360;th(Q,sh(Q,97,0,3,0)|0,k,0);sh(Q,35,1,3,0)|0;m=c[l>>2]|0}n=n+1|0}while((n|0)<(m|0));break}case 6:{eq(Q,2);c[P>>2]=2;if((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31288,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[T+436>>2]|0;if(!m)break a;else l=0;while(1){D=c[m+8>>2]|0;sh(Q,25,l,1,0)|0;D=c[D>>2]|0;th(Q,sh(Q,97,0,2,0)|0,D,0);sh(Q,35,1,2,0)|0;m=c[m>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!R)break a;k=Wh(T,R,I)|0;if(!k)break a;g=Kq(f)|0;n=c[k+16>>2]|0;if(!n)break a;eq(g,8);c[P>>2]=8;wr(f,N);do if((((a[(c[g>>2]|0)+65>>0]|0)==0?(Tg(c[g+16>>2]|0,31360,-1,1,0)|0,(a[(c[g>>2]|0)+65>>0]|0)==0):0)?(Tg((c[g+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[(c[g>>2]|0)+65>>0]|0)==0):0)?(Tg((c[g+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[(c[g>>2]|0)+65>>0]|0)==0):0){Tg((c[g+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[(c[g>>2]|0)+65>>0]|0)break;Tg((c[g+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[(c[g>>2]|0)+65>>0]|0)break;Tg((c[g+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[(c[g>>2]|0)+65>>0]|0)break;Tg((c[g+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[(c[g>>2]|0)+65>>0]|0)break;Tg((c[g+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);s=k+4|0;t=0;while(1){k=n+20|0;if((c[k>>2]|0)>0){m=n+25|0;l=n+26|0;q=n+8|0;h=0;do{r=c[n+(h<<3)+40>>2]|0;p=d[m>>0]|0;if((p|0)==8)o=32072;else if((p|0)==9)o=32088;else if((p|0)==6)o=32096;else if((p|0)==7)o=32056;else o=32112;p=d[l>>0]|0;if((p|0)==8)p=32072;else if((p|0)==9)p=32088;else if((p|0)==6)p=32096;else if((p|0)==7)p=32056;else p=32112;sh(g,25,t,1,0)|0;sh(g,25,h,2,0)|0;D=c[q>>2]|0;th(g,sh(g,97,0,3,0)|0,D,0);D=c[(c[s>>2]|0)+((c[n+(h<<3)+36>>2]|0)*24|0)>>2]|0;th(g,sh(g,97,0,4,0)|0,D,0);th(g,sh(g,(r|0)!=0?97:28,0,5,0)|0,r,0);th(g,sh(g,97,0,6,0)|0,p,0);th(g,sh(g,97,0,7,0)|0,o,0);th(g,sh(g,97,0,8,0)|0,31424,0);sh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[k>>2]|0))}n=c[n+4>>2]|0;if(!n)break;else t=t+1|0}break}case 16:{if(!R)break a;k=Wh(T,R,I)|0;if(!k)break a;n=Kq(f)|0;eq(n,5);c[P>>2]=5;wr(f,N);if(((((a[(c[n>>2]|0)+65>>0]|0)==0?(Tg(c[n+16>>2]|0,31288,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)Tg((c[n+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[k+8>>2]|0;if(!m)break a;else l=0;while(1){sh(n,25,l,1,0)|0;D=c[m>>2]|0;th(n,sh(n,97,0,2,0)|0,D,0);sh(n,25,(a[m+50>>0]|0)!=0&1,3,0)|0;D=c[31336+((a[m+51>>0]&3)<<2)>>2]|0;th(n,sh(n,97,0,4,0)|0,D,0);sh(n,25,(c[m+36>>2]|0)!=0&1,5,0)|0;sh(n,35,1,5,0)|0;m=c[m+20>>2]|0;if(!m)break;else l=l+1|0}break}case 11:{if(!R){if(Cn(f)|0)break a;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,31784,-1,1,0)|0;sh(Q,97,0,1,0)|0;th(Q,-1,c[31632+(d[(c[f>>2]|0)+62>>0]<<3)>>2]|0,-2);sh(Q,35,1,1,0)|0;break a}k=c[(c[O>>2]|0)+12>>2]|0;if((b[k+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!($c(R,l)|0)){s=m;M=415;break}m=m+8|0;l=c[m>>2]|0}while((l|0)!=0);if((M|0)==415?(C=a[s+4>>0]|0,C=C<<24>>24==0?2:C,a[T+62>>0]=C,a[k+77>>0]=C,(c[s>>2]|0)!=0):0)break a;c[D>>2]=R;ph(f,31800,D);break a}case 0:{p=c[30128+(t*12|0)>>2]|0;C=Q+96|0;c[C>>2]=c[C>>2]|1<<N;if((R|0)!=0?!((t|0)==11|(t|0)==20):0){m=uh(Q,3,31832)|0;k=Q+32|0;if((c[k>>2]|0)>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;l=m+1|0;c[D>>2]=0;zn(R,D)|0;k=c[k>>2]|0;if(k>>>0>l>>>0)c[(c[Q+4>>2]|0)+(l*20|0)+4>>2]=c[D>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;c[(c[Q+4>>2]|0)+(m*20|0)+8>>2]=p;break a}m=uh(Q,3,31848)|0;k=c[Q+32>>2]|0;if(k>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;m=m+1|0;if(k>>>0>m>>>0){c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;c[(c[Q+4>>2]|0)+(m*20|0)+12>>2]=p}eq(Q,1);if(a[(c[Q>>2]|0)+65>>0]|0)break a;Tg(c[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 7:{eq(Q,1);c[P>>2]=1;if(!(a[(c[Q>>2]|0)+65>>0]|0)){Tg(c[Q+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{D=c[8648+(l<<2)>>2]|0;l=l+1|0;th(Q,sh(Q,97,0,1,0)|0,D,0);sh(Q,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[h>>2]|0)!=0?N:10;if(R)if($c(R,31880)|0)if(!($c(R,31888)|0))l=2;else{l=($c(R,31896)|0)==0;l=l?3:0}else l=1;else l=0;eq(Q,3);c[P>>2]=3;if(((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31912,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+80|0,31928,-1,1,0)|0;sh(Q,11,m,l,1)|0;sh(Q,35,1,3,0)|0;break a}case 26:{kf(T)|0;break a}case 34:{if(!R)l=c[T+216>>2]|0;else{c[D>>2]=0;zn(R,D)|0;l=c[D>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[T+216>>2]=m;c[T+220>>2]=l;l=m}if((l|0)==21){l=c[T+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Ft(f,31944,m,l);break a}case 27:{if((R|0)!=0?(fi(R,u)|0)==0:0){D=u;Lc(c[D>>2]|0,c[D+4>>2]|0)|0}C=(Hc()|0)==0;D=9032;Ft(f,31976,C?c[D>>2]|0:-1,C?c[D+4>>2]|0:-1);break a}case 33:{if((R|0)!=0?(B=(fi(R,p)|0)==0,D=p,C=c[D+4>>2]|0,B&((C|0)>-1|(C|0)==-1&(c[D>>2]|0)>>>0>4294967295)):0)c[T+132>>2]=0;D=c[T+132>>2]|0;Ft(f,31992,D,((D|0)<0)<<31>>31);break a}case 12:{g=c[P>>2]|0;E=g+1|0;F=g+5|0;G=g+6|0;c[P>>2]=G;H=Kq(f)|0;eq(H,4);if((((a[(c[H>>2]|0)+65>>0]|0)==0?(Tg(c[H+16>>2]|0,31232,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)?(Tg((c[H+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)?(Tg((c[H+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)Tg((c[H+16>>2]|0)+120|0,31440,-1,1,0)|0;wr(f,N);t=c[(c[(c[O>>2]|0)+(N<<4)+12>>2]|0)+16>>2]|0;if(!t)break a;r=(R|0)==0;h=f+68|0;s=H+32|0;A=H+4|0;B=H+24|0;C=g+2|0;D=g+3|0;x=g+4|0;q=f+8|0;while(1){if(r){y=c[t>>2]|0;z=c[t+8>>2]|0}else{y=0;z=oh(f,0,R,I)|0}if((z|0)!=0?(J=z+16|0,(c[J>>2]|0)!=0):0){cs(f,N,c[z+32>>2]|0,0,c[z>>2]|0);g=(b[z+38>>1]|0)+G|0;if((g|0)>(c[P>>2]|0))c[P>>2]=g;Mq(f,0,N,z,54);t=c[z>>2]|0;th(H,sh(H,97,0,E,0)|0,t,0);t=c[J>>2]|0;if(!t)g=1;else{g=1;do{l=Wh(T,c[t+8>>2]|0,I)|0;do if(l){c[L>>2]=0;cs(f,N,c[l+32>>2]|0,0,c[l>>2]|0);if(It(f,l,t,L,0)|0)break a;m=c[L>>2]|0;if(!m){Mq(f,g,N,l,54);break}else{sh(H,54,g,c[m+40>>2]|0,N)|0;w=c[q>>2]|0;th(w,-1,ds(f,m)|0,-6);break}}while(0);g=g+1|0;t=c[t+4>>2]|0}while((t|0)!=0)}if((c[h>>2]|0)<(g|0))c[h>>2]=g;p=sh(H,108,0,0,0)|0;g=c[J>>2]|0;if(g){w=z+36|0;v=1;while(1){u=g+8|0;t=Wh(T,c[u>>2]|0,I)|0;c[L>>2]=0;c[K>>2]=0;o=(t|0)!=0;do if(o){It(f,t,g,L,K)|0;l=c[L>>2]|0;m=ts(H)|0;if(!(o&(l|0)==0)){t=m;M=306;break}t=c[g+36>>2]|0;if((t|0)==(b[w>>1]|0))sh(H,103,0,G,0)|0;else{sh(H,47,0,t,G)|0;Jt(H,z,t,G);sh(H,76,G,m,0)|0;sh(H,38,G,(c[s>>2]|0)+3|0,0)|0}sh(H,70,v,0,G)|0;sh(H,16,0,m,0)|0;t=c[s>>2]|0;if(t>>>0>1)c[(c[A>>2]|0)+((t+-2|0)*20|0)+8>>2]=t;c[(c[B>>2]|0)+88>>2]=t+-1;t=m}else{t=ts(H)|0;l=0;M=306}while(0);do if((M|0)==306){M=0;n=g+20|0;m=c[n>>2]|0;if((m|0)>0){k=0;do{m=c[K>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;O=k+G|0;jt(H,z,0,c[m>>2]|0,O);sh(H,76,O,t,0)|0;k=k+1|0;m=c[n>>2]|0}while((k|0)<(m|0))}if(!o)break;k=kt(H,l)|0;l=c[n>>2]|0;th(H,sh(H,49,G,m,F)|0,k,l);th(H,sh(H,69,v,t,F)|0,0,-14)}while(0);sh(H,103,0,C,0)|0;l=c[u>>2]|0;th(H,sh(H,97,0,D,0)|0,l,0);sh(H,25,v+-1|0,x,0)|0;sh(H,35,E,4,0)|0;l=c[B>>2]|0;m=~t;do if((t|0)<0){t=c[l+112>>2]|0;if(!t)break;c[t+(m<<2)>>2]=c[s>>2]}while(0);c[l+88>>2]=(c[s>>2]|0)+-1;ig(T,c[K>>2]|0);g=c[g+4>>2]|0;if(!g)break;else v=v+1|0}}sh(H,9,0,p+1|0,0)|0;g=c[s>>2]|0;if(g>>>0>p>>>0)c[(c[A>>2]|0)+(p*20|0)+8>>2]=g;c[(c[B>>2]|0)+88>>2]=g+-1}if(!y)break;else t=y}break}case 10:{n=1<<N;C=Q+96|0;c[C>>2]=c[C>>2]|n;if(R){c[D>>2]=0;zn(R,D)|0;k=c[D>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;D=c[f+408>>2]|0;wr(f,N);D=((D|0)==0?f:D)+328|0;c[D>>2]=c[D>>2]|n;sh(Q,25,k,1,0)|0;sh(Q,52,N,3,1)|0;c[(c[z+(N<<4)+12>>2]|0)+80>>2]=k;lq(c[z+(N<<4)+4>>2]|0,k);break a}eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30848,-1,1,0)|0;c[P>>2]=(c[P>>2]|0)+2;k=uh(Q,9,30808)|0;l=c[Q+32>>2]|0;if(l>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+4>>2]=N;m=k+1|0;if(l>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;m=k+6|0;if(l>>>0<=m>>>0)break a;c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=2e3;break a}case 1:{k=c[z+(N<<4)+4>>2]|0;if(!R){m=c[k+4>>2]|0;c[m+4>>2]=c[k>>2];if(!(a[m+17>>0]|0)){m=0;l=0}else{l=(a[m+18>>0]|0)==0;m=l?1:2;l=l?0:0}Ft(f,30976,m,l);break a}if($c(R,32192)|0)if($c(R,31880)|0)if(!($c(R,32200)|0))m=2;else{c[D>>2]=0;zn(R,D)|0;m=c[D>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[T+67>>0]=m;o=m+-1|0;if(!((rn(k,m)|0)==0&o>>>0<2))break a;l=uh(Q,6,30992)|0;n=c[Q+32>>2]|0;if(n>>>0>l>>>0)c[(c[Q+4>>2]|0)+(l*20|0)+4>>2]=N;k=l+1|0;if(n>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+4>>2]=N;k=l+2|0;m=l+4|0;if(n>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+8>>2]=m;if(n>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=o;m=l+5|0;if(n>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;D=Q+96|0;c[D>>2]=c[D>>2]|1<<N;break a}case 14:{if(!((R|0)!=0?(D=(zn(R,q)|0)==0,m=c[q>>2]|0,!(D|(m|0)<1)):0)){c[q>>2]=2147483647;m=2147483647}l=c[f+408>>2]|0;wr(f,N);l=((l|0)==0?f:l)+328|0;c[l>>2]=c[l>>2]|1<<N;sh(Q,25,m,1,0)|0;m=sh(Q,143,N,0,0)|0;sh(Q,35,1,0,0)|0;sh(Q,37,1,-1,0)|0;sh(Q,137,1,m,0)|0;l=c[Q+32>>2]|0;if(l>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+8>>2]=l;c[(c[Q+24>>2]|0)+88>>2]=l+-1;break a}case 18:{eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30936,-1,1,0)|0;f:do if(R){k=R;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;m=k-R&1073741823;k=0;while(1){if(!(Bc(R,c[32216+(k<<2)>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){M=91;break f}}if((k|0)!=-1)n=N;else M=91}else M=91;while(0);if((M|0)==91)if(!(c[y>>2]|0)){c[y>>2]=1;k=-1;n=0}else{k=-1;n=N}m=c[T+20>>2]|0;if((m|0)>0){l=Q+96|0;do{m=m+-1|0;do if(c[(c[O>>2]|0)+(m<<4)+4>>2]|0){if((m|0)!=(n|0)?(c[y>>2]|0)!=0:0)break;c[l>>2]=c[l>>2]|1<<m;sh(Q,12,m,1,k)|0}while(0)}while((m|0)>0)}sh(Q,35,1,1,0)|0;break a}default:{if(!R)l=c[T+492>>2]|0;else{c[D>>2]=0;zn(R,D)|0;l=c[D>>2]|0;D=(l|0)>0;l=D?l:0;c[T+444>>2]=D?74:0;c[T+448>>2]=D?T:0;c[o>>2]=0;c[T+492>>2]=l}Ft(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[n>>2]|0;if(k){c[D>>2]=k;ph(f,10344,D);Sc(c[n>>2]|0)}D=f+64|0;c[D>>2]=(c[D>>2]|0)+1;c[f+12>>2]=g;break}}while(0);ig(T,S);ig(T,R)}}while(0);i=U;return}function Cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[f>>0]|0)==-121){d=c[b>>2]|0;if(!(a[(c[d>>2]|0)+145>>0]|0))break;a[f>>0]=101}d=c[f+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Dr(b,c[e>>2]|0)|0){d=1;break a}}else if(br(b,c[e>>2]|0)|0){d=1;break a}if(Cr(b,c[f+16>>2]|0)|0){d=1;break a}f=c[f+12>>2]|0;if(!f){d=0;break a}}c[g>>2]=c[b+16>>2];ph(d,29984,g);d=1}while(0);i=h;return d|0}function Dr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[b>>2]|0)>0:0){d=0;e=c[b+4>>2]|0;while(1){if(Cr(a,c[e>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[b>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Er(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;th(a,sh(a,122,b,0,0)|0,d,-1);d=c[(c[a>>2]|0)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[e>>2]|0;a=0;do{b=b|1<<a;a=a+1|0}while((a|0)<(d|0));c[e>>2]=b}return}function Fr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Qr(a,0,e)|0;d=d+24|0;gg(c[a>>2]|0,c[d>>2]|0);c[d>>2]=f;if(f){d=f+40|0;b[d>>1]=(b[d>>1]|0)+1<<16>>16}e=(Nt(a,e)|0)==0;return (e?f:0)|0}function Gr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;a:do if((b|0)!=0?(f=c[a+12>>2]|0,(c[b>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[g>>2]|0)){e=l+4|0;d=c[e>>2]|0;if((d|0)!=0?($c(d,f)|0)!=0:0)break;ig(c[c[a>>2]>>2]|0,d);c[e>>2]=0;c[l>>2]=c[h>>2]}if(br(a,c[l+20>>2]|0)|0){d=1;break a}if(Cr(a,c[l+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[b>>2]|0)){d=0;break a}else l=l+72|0}b=c[a>>2]|0;l=c[a+20>>2]|0;c[m>>2]=c[a+16>>2];c[m+4>>2]=l;c[m+8>>2]=d;ph(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Hr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;g=c[b>>2]|0;if((((a[g+145>>0]|0)==0?(a[b+18>>0]|0)==0:0)?(c[g+24>>2]&2048|0)==0:0)?(Bc(d,25568,7)|0)==0:0){c[e>>2]=d;ph(b,28440,e);b=1}else b=0;i=f;return b|0}function Ir(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;do if(d){r=e&1;t=(f|0)!=0;if(t){g=c[f>>2]|0;p=32768}else{g=Ot(d,e)|0;g=ih(b,g,((g|0)<0)<<31>>31)|0;p=0}c[u>>2]=g;if(g){l=(r|0)==0;if(!l)if(!(c[d+12>>2]|0))o=(c[d+20>>2]|0)==0?16396:8220;else o=8220;else o=48;q=o&60;s=d+4|0;m=c[s>>2]|0;if((m&1024|0)==0?(h=c[d+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;n=(k-h&1073741823)+1|0}else n=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;gw(g|0,d|0,k|0)|0;bw(g+k|0,0,48-k|0)|0}else gw(g|0,d|0,q|0)|0;m=g+4|0;h=o&24576|p|c[m>>2]&-122881;c[m>>2]=h;if(n){h=g+q|0;c[g+8>>2]=h;gw(h|0,c[d+8>>2]|0,n|0)|0;h=c[m>>2]|0}k=c[s>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[g+20>>2]=Lr(b,c[h>>2]|0,r)|0;break}else{c[g+20>>2]=cr(b,c[h>>2]|0,r)|0;break}}while(0);h=c[m>>2]|0;if(!(h&24576)){if(c[s>>2]&16384)break;c[g+12>>2]=Ir(b,c[d+12>>2]|0,0,0)|0;c[g+16>>2]=Ir(b,c[d+16>>2]|0,0,0)|0;break}r=Pt(d,e)|0;c[u>>2]=(c[u>>2]|0)+r;if(h&8192){c[g+12>>2]=Ir(b,c[d+12>>2]|0,1,u)|0;c[g+16>>2]=Ir(b,c[d+16>>2]|0,1,u)|0}if(t)c[f>>2]=c[u>>2]}}else g=0;while(0);i=v;return g|0}function Jr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=ih(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[d+4>>2]=c[g>>2];e=ih(a,c[g>>2]<<3,0)|0;c[d>>2]=e;if(!e){ig(a,d);d=0;break}if((c[g>>2]|0)>0){f=0;while(1){h=c[b>>2]|0;c[e+(f<<3)>>2]=gh(a,c[h+(f<<3)>>2]|0)|0;c[e+(f<<3)+4>>2]=c[h+(f<<3)+4>>2];f=f+1|0;if((f|0)>=(c[g>>2]|0))break a;e=c[d>>2]|0}}}else d=0;while(0);return d|0}function Kr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[f>>2]|0)+40|0;b=ih(b,g,0)|0;if(b){bw(b|0,0,g|0)|0;g=b+40|0;gw(g|0,c[e>>2]|0,c[f>>2]|0)|0;c[b+12>>2]=g;c[b+16>>2]=c[f>>2];a[b>>0]=d}return b|0}function Lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=ih(b,8,0)|0,(f|0)!=0):0){g=c[d>>2]|0;c[f>>2]=g;if(!(e&1)){h=c[d>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=ih(b,g*20|0,0)|0;c[f+4>>2]=g;if(!g){ig(b,f);f=0;break}if((c[d>>2]|0)>0){i=0;h=c[d+4>>2]|0;while(1){c[g>>2]=Ir(b,c[h>>2]|0,e,0)|0;c[g+4>>2]=gh(b,c[h+4>>2]|0)|0;c[g+8>>2]=gh(b,c[h+8>>2]|0)|0;a[g+12>>0]=a[h+12>>0]|0;j=g+13|0;k=a[j>>0]|0;a[j>>0]=k&-2;a[j>>0]=a[h+13>>0]&2|k&-4;c[g+16>>2]=c[h+16>>2];i=i+1|0;if((i|0)>=(c[d>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Mr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o;l=c[a>>2]|0;f=c[b+20>>2]|0;a:do if(f){e=c[l+20>>2]|0;if((e|0)>0){d=c[l+16>>2]|0;h=0;while(1){g=h+1|0;if((c[d+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=Zm((c[b+24>>2]|0)+8|0,c[b+4>>2]|0,k)|0;if(!d)f=0;else f=c[d+8>>2]|0;d=c[(c[l+16>>2]|0)+(g<<4)>>2]|0;e=(g|0)==1;if((((Oq(a,e?14:16,c[b>>2]|0,c[f>>2]|0,d)|0)==0?(Oq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Kq(a)|0,(m|0)!=0):0)?(n=c[a+408>>2]|0,wr(a,g),n=((n|0)==0?a:n)+328|0,c[n>>2]=c[n>>2]|1<<g,fs(a,g),n=uh(m,9,29624)|0,th(m,n+1|0,c[b>>2]|0,0),th(m,n+4|0,10720,-2),zr(a,g),sh(m,61,0,0,0)|0,n=c[b>>2]|0,th(m,sh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[n>>2]|0)<3):0)c[n>>2]=3;i=o;return}function Nr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();m=s;q=c[d>>2]|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m+28>>2]=0;c[m>>2]=d;do if(h)if((a[h>>0]|0)!=27)if(!(hs(m,h)|0)){r=5;break}else{r=13;break}else{a[h>>0]=97;r=5;break}else r=5;while(0);a:do if((r|0)==5){do if(k)if((a[k>>0]|0)!=27)if(!(hs(m,k)|0))break;else{r=13;break a}else{a[k>>0]=97;break}while(0);do if(l)if((a[l>>0]|0)!=27)if(!(hs(m,l)|0))break;else{r=13;break a}else{a[l>>0]=97;break}while(0);if(g){if((a[g>>0]|0)==97)g=c[g+8>>2]|0;else g=0;if(Oq(d,e,g,0,0)|0)break}p=Kq(d)|0;m=d+60|0;g=c[m>>2]|0;n=d+56|0;o=c[n>>2]|0;if((o|0)<4){o=d+72|0;g=c[o>>2]|0;c[o>>2]=g+4;g=g+1|0}else{c[m>>2]=g+4;c[n>>2]=o+-4}Nq(d,h,g);Nq(d,k,g+1|0);Nq(d,l,g+2|0);if(p){g=g+3|0;sh(p,1,0,g-(b[f>>1]|0)|0,g)|0;g=c[p+4>>2]|0;if(g)a[g+(((c[p+32>>2]|0)+-1|0)*20|0)+3>>0]=b[f>>1];th(p,-1,f,-5);sh(p,144,(e|0)==24&1,0,0)|0}}while(0);if((r|0)==13){f=d+64|0;c[f>>2]=(c[f>>2]|0)+1}Ck(q,h);Ck(q,k);Ck(q,l);i=s;return}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;g=m+4|0;h=c[b>>2]|0;a:do if(!(Cn(b)|0)){if(!d){Qt(b,0);break}if(!((e|0)!=0?(c[e>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Sq(c[b>>2]|0,d)|0;if(!f)break a;if(!(Un(h,a[h+62>>0]|0,f,0)|0)){ig(h,f);break}else{Qt(b,f);ig(h,f);break a}}while(0);d=ar(b,d,e,g)|0;if((d|0)>=0?(k=Sq(h,c[g>>2]|0)|0,(k|0)!=0):0){e=c[(c[h+16>>2]|0)+(d<<4)>>2]|0;f=Wh(h,k,e)|0;if(f){Rt(b,f,0);ig(h,k);break}e=Zp(h,k,e)|0;ig(h,k);if(!e){ph(b,28872,l);break}else{f=c[b+408>>2]|0;wr(b,d);f=((f|0)==0?b:f)+328|0;c[f>>2]=c[f>>2]|1<<d;rs(b,e,-1);break}}}while(0);i=m;return}function Pr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;g=c[a>>2]|0;if(!(Cn(a)|0)){do if(!b){b=g+20|0;e=c[b>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){St(a,d);e=c[b>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[d+4>>2]|0){e=ar(a,b,d,f)|0;if((e|0)<=-1)break;e=c[(c[g+16>>2]|0)+(e<<4)>>2]|0;b=Sq(g,c[f>>2]|0)|0;if(!b)break;d=Zp(g,b,e)|0;if(!d){e=oh(a,0,b,e)|0;if(e)Tt(a,e,0)}else Tt(a,c[d+12>>2]|0,d);ig(g,b);break}d=Sq(g,b)|0;e=Rh(g,d)|0;ig(g,d);if((e|0)>-1){St(a,e);break}d=Sq(g,b)|0;if(d){e=Zp(g,d,0)|0;if(!e){e=oh(a,0,d,0)|0;if(e)Tt(a,e,0)}else Tt(a,c[e+12>>2]|0,e);ig(g,d)}}while(0);e=Kq(a)|0;if(e)sh(e,144,0,0,0)|0}i=h;return}function Qr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[d>>2]|0;if(!f)e=d+4|0;else{i=c[a>>2]|0;g=c[i+20>>2]|0;i=c[i+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[i+(h<<4)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return oh(a,b,c[d+8>>2]|0,c[e>>2]|0)|0}function Rr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Bc(d,25568,7)|0)==0:0){c[f>>2]=d;ph(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if(!b){c[e>>2]=d;a=qh(a,25992,e)|0}else{c[e>>2]=b;c[e+4>>2]=d;e=qh(a,26e3,e)|0;ig(a,b);a=e}i=f;return a|0}function Tr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[a>>2]|0;f=c[(c[e+16>>2]|0)+28>>2]|0;if((c[b+68>>2]|0)!=(f|0)?(d=ws(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[b+20>>2]|0)==(f|0))d=Sr(e,d,c[b>>2]|0)|0;b=c[b+32>>2]|0}while((b|0)!=0);if(d){b=c[a>>2]|0;c[g>>2]=d;b=qh(b,25968,g)|0;ig(c[a>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;o=Kq(a)|0;if(o){e=c[a>>2]|0;h=c[b+68>>2]|0;a:do if(h){k=c[e+20>>2]|0;if((k|0)>0){f=c[e+16>>2]|0;g=0;while(1){e=g+1|0;if((c[f+(g<<4)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=ws(a,b)|0;if(e)do{f=c[a>>2]|0;l=c[e+20>>2]|0;b:do if(l){m=c[f+20>>2]|0;if((m|0)>0){k=c[f+16>>2]|0;h=0;while(1){f=h+1|0;if((c[k+(h<<4)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[e>>2]|0;th(o,sh(o,126,f,0,0)|0,m,0);e=c[e+32>>2]|0}while((e|0)!=0);e=c[b>>2]|0;th(o,sh(o,124,g,0,0)|0,e,0);e=c[a>>2]|0;c[n>>2]=d;e=qh(e,25952,n)|0;if((e|0)!=0?(Er(o,g,e),p=Tr(a,b)|0,(p|0)!=0):0)Er(o,1,p)}i=q;return}
function ch(f){f=f|0;var g=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0,A=0.0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,gc=0,jc=0,kc=0,mc=0,oc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,ad=0,bd=0,ed=0,fd=0,gd=0,hd=0,id=0,jd=0,kd=0,ld=0,md=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,wd=0,xd=0,yd=0,zd=0,Ad=0,Bd=0,Cd=0,Dd=0,Ed=0,Fd=0,Gd=0,Hd=0,Id=0,Jd=0,Kd=0,Ld=0,Md=0,Nd=0,Od=0,Pd=0,Qd=0,Rd=0,Sd=0,Td=0,Ud=0,Vd=0,Wd=0,Xd=0,Yd=0,Zd=0,_d=0,$d=0,ae=0,be=0,ce=0,de=0,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0;ke=i;i=i+1040|0;if((i|0)>=(j|0))ba();ge=ke+400|0;Qc=ke+792|0;fd=ke+392|0;ad=ke+788|0;Pd=ke+320|0;jd=ke+784|0;md=ke+780|0;nd=ke+280|0;Kd=ke+680|0;Yc=ke+240|0;Nd=ke+200|0;Xc=ke+676|0;Uc=ke+672|0;Ld=ke+160|0;Rc=ke+644|0;qd=ke+152|0;Gd=ke+112|0;hd=ke+640|0;Id=ke+636|0;Vc=ke+632|0;rd=ke+628|0;xd=ke+624|0;td=ke+604|0;yd=ke+600|0;ld=ke+596|0;ud=ke+576|0;Pc=ke+840|0;zd=ke+572|0;Md=ke+104|0;Ad=ke+568|0;bd=ke+564|0;ed=ke+96|0;Od=ke+88|0;Bd=ke+560|0;Cd=ke+556|0;Dd=ke+552|0;vd=ke+532|0;wd=ke+512|0;gd=ke+508|0;sd=ke+504|0;Wc=ke+488|0;Jd=ke+48|0;Tc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;wc=f+4|0;o=c[wc>>2]|0;he=c[f>>2]|0;Gc=a[he+62>>0]|0;Kc=f+8|0;v=c[Kc>>2]|0;je=he+32|0;l=je;m=c[l>>2]|0;l=c[l+4>>2]|0;ie=f+80|0;a:do if((c[ie>>2]|0)==7){u=he+65|0;v=f+44|0;n=m;g=0;p=0;m=0;ee=1317}else{c[ie>>2]=0;$d=f+136|0;c[$d>>2]=0;c[$d+4>>2]=0;$d=f+20|0;c[$d>>2]=0;c[he+452>>2]=0;zc=he+240|0;b:do if(!(c[zc>>2]|0)){Zd=he+292|0;if(c[Zd>>2]|0){n=c[f+124>>2]|0;g=he+300|0;u=c[g>>2]|0;if(!n)vc=g;else{vc=g;u=(n>>>0)%(u>>>0)|0}}else{vc=he+300|0;u=0}de=f+76|0;ce=he+65|0;Vd=he+296|0;pb=f+176|0;qb=f+184|0;rb=f+92|0;sb=he+80|0;tb=he+84|0;ub=Gc&255;vb=Gc<<24>>24==1;wb=he+88|0;xb=f+60|0;Wd=f+144|0;be=f+86|0;fe=f+44|0;yb=f+12|0;zb=Rc+4|0;Ab=Rc+16|0;Bb=Rc+12|0;Cb=Rc+25|0;Db=Rc+20|0;Eb=f+200|0;Fb=f+56|0;Xd=f+72|0;Gb=Gd+16|0;Hb=Gd+8|0;Ib=Gd+24|0;Jb=f+87|0;Yd=he+156|0;Kb=he+500|0;Lb=he+496|0;ae=he+63|0;Mb=he+488|0;Nb=he+504|0;Ob=he+512|0;Pb=he+70|0;Qb=he+24|0;Rb=he+20|0;Td=he+16|0;Sb=he+4|0;Ud=f+88|0;Tb=f+104|0;Ub=f+152|0;Vb=f+160|0;Wb=he+152|0;Xb=he+64|0;_b=td+4|0;$b=td+6|0;ac=td+8|0;bc=ud+4|0;cc=ud+8|0;dc=he+212|0;ec=he+208|0;gc=f+116|0;jc=vd+4|0;kc=vd+6|0;mc=vd+8|0;oc=Yc+8|0;qc=Yc+32|0;rc=Yc+24|0;sc=Yc+16|0;tc=Yc+12|0;uc=wd+4|0;V=wd+6|0;W=wd+8|0;X=nd+8|0;Y=nd+32|0;aa=nd+24|0;ca=nd+12|0;da=nd+16|0;ea=he+164|0;fa=Wc+8|0;ga=Wc+4|0;ha=he+145|0;ia=Wc+12|0;ja=Pd+4|0;ka=Pd+12|0;la=Pd+16|0;ma=Pd+20|0;na=Pd+24|0;oa=Pd+28|0;pa=Pd+8|0;qa=Pd+40|0;ra=Pd+44|0;sa=Pd+48|0;ta=Pd+52|0;ua=Pd+56|0;va=Pd+60|0;wa=Pd+64|0;xa=Pd+65|0;ya=he+128|0;za=f+28|0;Aa=f+36|0;Ba=f+32|0;Ca=f+196|0;Da=Tc+4|0;Ea=Tc+8|0;Fa=Jd+8|0;Ga=Jd+32|0;Ha=Jd+24|0;Ia=Tc+20|0;Ja=Tc+12|0;Ka=Tc+16|0;La=Tc+24|0;Ma=Oc+8|0;Na=Oc+4|0;Oa=he+148|0;Pa=he+176|0;Qa=he+72|0;Ra=he+67|0;Sa=Qc+20|0;Ta=Qc+24|0;Ua=Qc+4|0;Va=Qc+16|0;Wa=he+304|0;Xa=he+328|0;Ya=Hd+32|0;Za=Hd+8|0;_a=Hd+24|0;$a=he+308|0;ab=Fd+20|0;bb=he+69|0;_d=f+168|0;cb=nd+4|0;db=nd+8|0;eb=nd+12|0;fb=nd+16|0;gb=nd+20|0;hb=nd+24|0;ib=nd+25|0;jb=he+180|0;kb=Ld+32|0;lb=Ld+8|0;mb=Ld+12|0;nb=Ld+16|0;ob=Ld+24|0;T=0;U=0;g=0;r=0;p=c[de>>2]|0;t=0;c:while(1){n=m;d:while(1){if(a[ce>>0]|0){u=ce;v=fe;m=t;ee=1317;break a}m=g+1|0;if(!(a[o+(p*20|0)+2>>0]&2))J=r;else{r=c[o+(p*20|0)+8>>2]|0;g=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(b[r>>1]&9312)rg(g);b[r>>1]=4;J=g}z=o+(p*20|0)|0;G=a[z>>0]|0;r=G&255;e:do switch(r|0){case 20:{g=m;m=n;ee=24;break d}case 21:{g=m;m=n;r=J;ee=25;break d}case 22:{g=m;m=n;r=J;ee=26;break d}case 23:{g=m;m=n;r=J;n=p;ee=27;break d}case 24:{g=m;m=n;r=J;n=p;ee=28;break d}case 29:{g=m;m=n;n=p;ee=65;break d}case 30:{g=m;m=n;r=J;n=p;ee=66;break d}case 28:{g=m;m=n;r=J;n=p;ee=60;break d}case 32:{g=m;m=n;n=p;ee=72;break d}case 17:{g=m;m=n;r=J;ee=22;break d}case 18:{g=m;m=n;r=J;ee=23;break d}case 25:{g=m;m=n;r=J;n=p;ee=44;break d}case 26:{g=m;m=n;r=J;n=p;ee=45;break d}case 133:{g=m;m=n;r=J;n=p;ee=46;break d}case 97:{a[z>>0]=27;z=o+(p*20|0)+16|0;s=c[z>>2]|0;if(!s)g=0;else{g=s;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-s&1073741823}w=o+(p*20|0)+4|0;c[w>>2]=g;if(vb)r=0;else{r=Tg(J,s,-1,1,0)|0;if((r|0)==18){g=m;m=n;q=t;ee=1316;break c}if(Ul(J,ub)|0){u=ce;v=fe;g=m;m=t;ee=1317;break a}c[J+24>>2]=0;g=J+8|0;b[g>>1]=e[g>>1]|2048;g=o+(p*20|0)+1|0;if((a[g>>0]|0)==-1)ig(he,c[z>>2]|0);a[g>>0]=-1;s=c[J+16>>2]|0;c[z>>2]=s;g=c[J+12>>2]|0;c[w>>2]=g}if((g|0)>(c[wb>>2]|0)){g=m;m=n;q=t;ee=1316;break c}else ee=57;break}case 31:{g=m;m=n;r=J;n=p;ee=67;break d}case 34:{g=m;m=n;n=p;ee=79;break d}case 35:{g=m;m=n;q=t;ee=80;break c}case 33:{g=m;m=n;ee=74;break d}case 94:{g=m;m=n;ee=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=z;m=n;n=p;ee=112;break d}case 27:{s=c[o+(p*20|0)+16>>2]|0;g=c[o+(p*20|0)+4>>2]|0;r=0;ee=57;break}case 16:{p=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=0;ee=19;break}case 36:{g=m;m=n;G=J;n=p;ee=166;break d}case 1:{S=a[o+(p*20|0)+3>>0]|0;z=S&255;x=c[yb>>2]|0;g=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;c[Rc>>2]=g;if(S<<24>>24){w=0;g=v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0;while(1){c[x+(w<<2)>>2]=g;if((b[g+8>>1]&4096)!=0?(Rl(g)|0)!=0:0){u=ce;v=fe;g=m;m=t;ee=1317;break a}w=w+1|0;if((w|0)>=(z|0))break;else g=g+40|0}g=c[Rc>>2]|0}S=c[o+(p*20|0)+16>>2]|0;c[zb>>2]=S;c[Ab>>2]=p;c[Bb>>2]=f;R=g+8|0;b[R>>1]=e[R>>1]&48640|1;a[Cb>>0]=0;R=je;c[R>>2]=n;c[R+4>>2]=l;ic[c[S+12>>2]&63](Rc,z,x);l=je;n=c[l>>2]|0;l=c[l+4>>2]|0;if(!(a[Cb>>0]|0))g=0;else{if(!(c[Db>>2]|0))g=0;else{c[ge>>2]=Og(c[Rc>>2]|0,1)|0;$g(fe,he,10344,ge);g=c[Db>>2]|0}am(f,p,c[o+(p*20|0)+4>>2]|0)}Ul(c[Rc>>2]|0,ub)|0;s=c[Rc>>2]|0;w=e[s+8>>1]|0;if(w&18){r=c[s+12>>2]|0;if(w&16384)r=(c[s>>2]|0)+r|0;if((r|0)>(c[(c[s+32>>2]|0)+88>>2]|0)){g=m;m=n;q=t;ee=1316;break c}else{z=J;R=p;r=g}}else{z=J;R=p;r=g}break}case 88:case 87:case 86:case 85:{g=m;E=z;m=n;n=p;ee=184;break d}case 39:{g=m;m=n;G=J;n=p;ee=208;break d}case 37:{g=m;m=n;r=J;n=p;ee=202;break d}case 38:{g=m;m=n;G=J;n=p;ee=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;F=G;m=n;r=J;ee=213;break d}case 40:{S=c[o+(p*20|0)+4>>2]|0;g=v+(S*40|0)|0;if(!(b[v+(S*40|0)+8>>1]&16384))r=0;else r=Ng(g)|0;cm(g,c[o+(p*20|0)+8>>2]&255,Gc);z=J;R=p;break}case 41:{g=m;m=n;r=J;n=p;ee=248;break d}case 42:{g=m;m=n;r=J;n=p;ee=249;break d}case 43:{g=m;m=n;r=J;ee=256;break d}case 71:case 72:{g=m;m=n;n=p;ee=261;break d}case 76:{g=m;m=n;r=J;n=p;ee=286;break d}case 19:{g=m;m=n;n=p;ee=268;break d}case 96:{g=m;m=n;n=p;ee=273;break d}case 44:{g=m;m=n;r=J;n=p;ee=278;break d}case 46:case 45:{g=m;m=n;r=J;n=p;ee=281;break d}case 77:{g=m;m=n;r=J;n=p;ee=288;break d}case 47:{g=m;m=n;r=J;ee=290;break d}case 48:{g=m;m=n;r=J;n=p;ee=368;break d}case 49:{g=m;m=n;ee=371;break d}case 50:{B=c[c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]>>2]|0;f:do if(c[B+60>>2]|0){g=mm(B)|0;if(!g){K=B+76|0;I=B+44|0;w=B+72|0;s=0;r=0;g:while(1){z=b[K>>1]|0;G=c[B+(z<<16>>16<<2)+120>>2]|0;if(!(a[G+5>>0]|0)){if(!(a[G+2>>0]|0)){s=fw(e[G+18>>1]|0,0,s|0,r|0)|0;r=C}}else{s=fw(e[G+18>>1]|0,0,s|0,r|0)|0;r=C;while(1){if(!(z<<16>>16))break g;if(G){xg(c[G+68>>2]|0);z=b[K>>1]|0}z=z+-1<<16>>16;b[K>>1]=z;b[I>>1]=0;a[w>>0]=d[w>>0]&249;G=z<<16>>16;x=B+(G<<1)+78|0;F=b[x>>1]|0;G=c[B+(G<<2)+120>>2]|0;if((F&65535)<(e[G+18>>1]|0)){z=F;break}}b[x>>1]=z+1<<16>>16;G=b[K>>1]|0;z=G;G=c[B+(G<<16>>16<<2)+120>>2]|0}z=b[B+(z<<16>>16<<1)+78>>1]|0;x=c[G+56>>2]|0;if(z<<16>>16==(b[G+18>>1]|0)){g=d[G+6>>0]|0;g=nm(B,d[x+(g+9)>>0]<<16|d[x+(g+8)>>0]<<24|d[x+(g+10)>>0]<<8|d[x+(g+11)>>0])|0}else{g=(z&65535)<<1;S=c[G+64>>2]|0;g=(d[S+g>>0]<<8|d[S+(g|1)>>0])&e[G+20>>1];g=nm(B,d[x+(g+1)>>0]<<16|d[x+g>>0]<<24|d[x+(g+2)>>0]<<8|d[x+(g+3)>>0])|0}if(g){s=0;r=0;break f}}g=mm(B)|0}else{s=0;r=0}}else{g=0;s=0;r=0}while(0);z=J;c[z>>2]=s;c[z+4>>2]=r;z=J;R=p;r=g;break}case 2:{O=c[o+(p*20|0)+4>>2]|0;s=c[o+(p*20|0)+16>>2]|0;if(!O){g=m;m=n;r=J;n=p;ee=446;break d}w=c[Mb>>2]|0;if(!w){o=s;g=m;m=n;q=t;ee=460;break c}else g=0;while(1){if(!($c(c[w>>2]|0,s)|0)){G=g;break}w=c[w+24>>2]|0;if(!w){o=s;g=m;m=n;q=t;ee=460;break c}else g=g+1|0}K=(O|0)==1;if((c[Yd>>2]|0)>0&K){g=m;m=n;q=t;ee=462;break c}I=w+24|0;if(!(c[I>>2]|0)){x=(a[Pb>>0]|0)!=0;if(x&K){g=pm(f,1)|0;if(g)break a;a[ae>>0]=1;if((Nl(f)|0)==5){g=p;ee=467;break c}a[Pb>>0]=0;x=1;r=c[ie>>2]|0}else ee=469}else{x=0;ee=469}if((ee|0)==469){ee=0;s=(c[Lb>>2]|0)-G+-1|0;if((O|0)==2){z=(c[Qb>>2]|0)>>>1&1;if((c[Rb>>2]|0)>0){G=z^1;F=0;while(1){E=El(c[(c[Td>>2]|0)+(F<<4)+4>>2]|0,516,G)|0;F=F+1|0;if(E){g=m;m=n;q=E;ee=1318;break c}g=c[Rb>>2]|0;if((F|0)>=(g|0)){ee=475;break}}}}else{g=c[Rb>>2]|0;z=0;ee=475}if((ee|0)==475){ee=0;if((g|0)>0){B=0;do{G=qm(c[(c[Td>>2]|0)+(B<<4)+4>>2]|0,O,s)|0;B=B+1|0;if(G){g=m;m=n;q=G;ee=1318;break c}}while((B|0)<(c[Rb>>2]|0))}}if(!z){G=s;r=0}else{z=c[Sb>>2]|0;if(z)do{S=z+88|0;b[S>>1]=b[S>>1]|8;z=c[z+52>>2]|0}while((z|0)!=0);Ag(he);c[Qb>>2]=c[Qb>>2]|2;G=s;r=0}}z=c[Mb>>2]|0;if((z|0)!=(w|0))do{c[Mb>>2]=c[z+24>>2];ig(he,z);c[Lb>>2]=(c[Lb>>2]|0)+-1;z=c[Mb>>2]|0}while((z|0)!=(w|0));if(K){c[Mb>>2]=c[I>>2];ig(he,w);if(x){z=J;R=p;break e}else{g=m;z=O;m=n;x=G;r=J;n=p;ee=486;break d}}else{S=w+8|0;R=c[S+4>>2]|0;Q=Nb;c[Q>>2]=c[S>>2];c[Q+4>>2]=R;Q=w+16|0;R=c[Q+4>>2]|0;S=Ob;c[S>>2]=c[Q>>2];c[S+4>>2]=R;if(x){z=J;R=p;break e}else{z=O;g=m;m=n;x=G;r=J;n=p;ee=488;break d}}}case 3:{q=t;ee=489;break c}case 4:{w=o+(p*20|0)+8|0;g=c[w>>2]|0;if((g|0)!=0?(c[Qb>>2]&33554432|0)!=0:0){g=m;m=n;q=8;ee=1318;break c}F=o+(p*20|0)+4|0;G=c[(c[Td>>2]|0)+(c[F>>2]<<4)+4>>2]|0;if(!G){r=0;w=0;g=0}else{z=ug(G,g)|0;if((z|0)==5){g=p;ee=508;break c}else if(z){g=m;m=n;q=z;ee=1318;break c}do if((c[w>>2]|0)!=0?(b[Ud>>1]&32)!=0:0){if((a[ae>>0]|0)!=0?(c[Wb>>2]|0)<=1:0){g=0;break}g=c[Tb>>2]|0;if(!g){g=(c[Kb>>2]|0)+1|0;c[Kb>>2]=g;g=(c[Lb>>2]|0)+g|0;c[Tb>>2]=g}g=om(he,0,g+-1|0)|0;if(!g){g=c[Tb>>2]|0;S=c[G+4>>2]|0;c[S+4>>2]=c[G>>2];g=dl(c[S>>2]|0,g)|0}S=Nb;R=c[S+4>>2]|0;Q=Ub;c[Q>>2]=c[S>>2];c[Q+4>>2]=R;Q=Ob;R=c[Q+4>>2]|0;S=Vb;c[S>>2]=c[Q>>2];c[S+4>>2]=R}else g=0;while(0);r=c[G+4>>2]|0;c[r+4>>2]=c[G>>2];r=c[(c[r+12>>2]|0)+56>>2]|0;r=d[r+41>>0]<<16|d[r+40>>0]<<24|d[r+42>>0]<<8|d[r+43>>0];w=c[(c[(c[Td>>2]|0)+(c[F>>2]<<4)+12>>2]|0)+4>>2]|0}if(a[o+(p*20|0)+3>>0]|0){if((r|0)!=(c[o+(p*20|0)+12>>2]|0)){g=m;o=F;m=n;q=t;ee=522;break c}if((w|0)!=(c[o+(p*20|0)+16>>2]|0)){g=m;o=F;m=n;q=t;ee=522;break c}else{z=J;R=p;r=g}}else{z=J;R=p;r=g}break}case 53:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;if((g|0)!=0?(c[g+28>>2]|0)==(c[o+(p*20|0)+8>>2]|0):0){w=o+(p*20|0)+3|0;r=0;ee=548}else ee=536;break}case 51:{g=m;m=n;r=J;n=p;ee=525;break d}case 52:{x=o+(p*20|0)+4|0;w=c[x>>2]|0;g=c[Td>>2]|0;z=c[o+(p*20|0)+12>>2]|0;s=v+(z*40|0)|0;r=Rg(s)|0;S=s;c[S>>2]=r;c[S+4>>2]=C;z=v+(z*40|0)+8|0;b[z>>1]=e[z>>1]&48640|4;z=o+(p*20|0)+8|0;r=zg(c[g+(w<<4)+4>>2]|0,c[z>>2]|0,r)|0;z=c[z>>2]|0;if((z|0)==1){c[c[g+(w<<4)+12>>2]>>2]=c[s>>2];c[Qb>>2]=c[Qb>>2]|2}else if((z|0)==2)a[(c[g+(w<<4)+12>>2]|0)+76>>0]=c[s>>2];if((c[x>>2]|0)==1){g=c[Sb>>2]|0;if(g)do{S=g+88|0;b[S>>1]=b[S>>1]|8;g=c[g+52>>2]|0}while((g|0)!=0);b[Ud>>1]=b[Ud>>1]&-9;z=J;R=p}else{z=J;R=p}break}case 55:case 54:{ee=536;break}case 57:case 56:{w=tm(f,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+8>>2]|0,-1,1)|0;if(!w){u=ce;v=fe;g=m;m=t;ee=1317;break a}a[w+25>>0]=1;G=w+27|0;a[G>>0]=a[G>>0]|1;g=w+4|0;F=o+(p*20|0)+3|0;r=vm(c[he>>2]|0,0,he,g,d[F>>0]|5,1054)|0;do if(!r){r=ug(c[g>>2]|0,1)|0;if(!r){x=c[o+(p*20|0)+16>>2]|0;z=c[g>>2]|0;if(!x){r=um(z,1,1,0,c[w>>2]|0)|0;a[G>>0]=a[G>>0]|4;break}r=wm(z,rd,d[F>>0]|2)|0;if(!r){c[w+8>>2]=x;r=um(c[g>>2]|0,c[rd>>2]|0,1,x,c[w>>2]|0)|0}a[G>>0]=a[G>>0]&-5}}while(0);a[G>>0]=((a[F>>0]|0)!=8&1)<<3&255|a[G>>0]&-9;z=J;R=p;break}case 58:{g=m;m=n;ee=558;break d}case 60:{g=m;m=n;r=J;ee=568;break d}case 61:{g=m;m=n;r=J;n=p;ee=570;break d}case 59:{g=m;m=n;r=J;n=p;ee=566;break d}case 65:case 64:case 63:case 62:{g=m;w=r;m=n;r=J;n=p;ee=571;break d}case 66:{g=m;m=n;r=J;n=p;ee=596;break d}case 69:case 68:case 67:{g=m;I=z;m=n;r=J;ee=597;break d}case 73:{g=m;m=n;r=J;n=p;ee=624;break d}case 70:{S=c[o+(p*20|0)+12>>2]|0;g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=c[g>>2]|0;c[zd>>2]=0;S=v+(S*40|0)|0;R=c[S>>2]|0;S=c[S+4>>2]|0;r=ym(r,0,R,S,0,zd)|0;s=g+48|0;c[s>>2]=R;c[s+4>>2]=S;a[g+25>>0]=0;c[g+60>>2]=0;a[g+26>>0]=0;s=c[zd>>2]|0;if(s)p=(c[o+(p*20|0)+8>>2]|0)+-1|0;c[g+12>>2]=s;z=J;R=p;break}case 74:{K=Md;c[K>>2]=0;c[K+4>>2]=0;c[Ad>>2]=0;K=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;g=c[K>>2]|0;if(!g){r=0;s=0;g=0}else{s=K+27|0;do if(!(a[s>>0]&2)){z=Dm(g,Ad)|0;if(z){g=m;m=n;q=z;ee=1318;break c}if(c[Ad>>2]|0){S=Md;c[S>>2]=1;c[S+4>>2]=0;break}gm(c[K>>2]|0,Md);r=Md;g=c[r>>2]|0;r=c[r+4>>2]|0;if((g|0)==-1&(r|0)==2147483647){a[s>>0]=a[s>>0]|2;break}else{R=fw(g|0,r|0,1,0)|0;S=Md;c[S>>2]=R;c[S+4>>2]=C;break}}while(0);G=c[o+(p*20|0)+12>>2]|0;if(G){g=c[pb>>2]|0;if(!g)z=v;else{while(1){w=c[g+4>>2]|0;if(!w)break;else g=w}z=c[g+16>>2]|0}F=z+(G*40|0)|0;x=Rg(F)|0;g=C;S=F;c[S>>2]=x;c[S+4>>2]=g;S=z+(G*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;if((x|0)==-1&(g|0)==2147483647){g=m;m=n;q=13;ee=1318;break c}if(a[s>>0]&2){g=m;m=n;q=13;ee=1318;break c}w=Md;r=c[w>>2]|0;w=c[w+4>>2]|0;z=fw(x|0,g|0,1,0)|0;x=C;if((w|0)<(x|0)|(w|0)==(x|0)&r>>>0<z>>>0){w=Md;c[w>>2]=z;c[w+4>>2]=x;w=x}else z=r;S=F;c[S>>2]=z;c[S+4>>2]=w}h:do if(!(a[s>>0]&2))g=0;else{r=0;while(1){_c(8,Md);S=Md;S=fw(c[S>>2]|0,c[S+4>>2]&1073741823|0,1,0)|0;g=C;R=Md;c[R>>2]=S;c[R+4>>2]=g;g=ym(c[K>>2]|0,0,S,g,0,Ad)|0;if(c[Ad>>2]|g)break h;r=r+1|0;if((r|0)>=100){g=m;m=n;q=13;ee=1318;break c}}}while(0);a[K+26>>0]=0;c[K+60>>2]=0;s=Md;r=c[s>>2]|0;s=c[s+4>>2]|0}z=J;c[z>>2]=r;c[z+4>>2]=s;z=J;R=p;r=g;break}case 84:case 75:{g=m;z=G;m=n;r=J;n=p;ee=647;break d}case 95:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=Fm(c[g>>2]|0)|0;c[g+60>>2]=0;if((((r|0)==0?(Dc=c[dc>>2]|0,(Dc|0)!=0):0)?(Ec=c[o+(p*20|0)+16>>2]|0,(Ec|0)!=0):0)?(a[g+27>>0]&4)!=0:0){S=g+48|0;Zb[Dc&1](c[ec>>2]|0,9,c[(c[Td>>2]|0)+(a[g+24>>0]<<4)>>2]|0,Ec,c[S>>2]|0,c[S+4>>2]|0)}if(!(c[o+(p*20|0)+8>>2]&1)){z=J;R=p}else{c[rb>>2]=(c[rb>>2]|0)+1;z=J;R=p}break}case 98:{g=m;m=n;r=J;n=p;ee=671;break d}case 99:{g=m;m=n;r=J;n=p;ee=672;break d}case 100:{r=c[o+(p*20|0)+8>>2]|0;z=v+(r*40|0)|0;g=c[(c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0)+56>>2]|0;if(!(a[g+56>>0]|0)){w=c[g+36>>2]|0;g=w;w=w+8|0}else{S=c[g+20>>2]|0;w=c[(c[S+8>>2]|0)+4>>2]|0;S=c[S+12>>2]|0;g=S+(w*56|0)+20|0;w=c[S+(w*56|0)+32>>2]|0}g=c[g>>2]|0;if(!(bh(z,g)|0)){c[v+(r*40|0)+12>>2]=g;S=v+(r*40|0)+8|0;b[S>>1]=e[S>>1]&48640|16;gw(c[v+(r*40|0)+16>>2]|0,w|0,g|0)|0;r=0}else r=7;c[(c[(c[Fb>>2]|0)+(c[o+(p*20|0)+12>>2]<<2)>>2]|0)+60>>2]=0;R=p;break}case 102:case 101:{s=c[o+(p*20|0)+8>>2]|0;G=v+(s*40|0)|0;x=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;z=c[x>>2]|0;x=x+27|0;if(a[x>>0]&4){hm(z,bd);g=c[bd>>2]|0;if(g>>>0>(c[wb>>2]|0)>>>0){g=m;m=n;q=t;ee=1316;break c}}else{gm(z,ed);Q=ed;g=c[Q>>2]|0;Q=c[Q+4>>2]|0;S=c[wb>>2]|0;R=((S|0)<0)<<31>>31;if((Q|0)>(R|0)|(Q|0)==(R|0)&g>>>0>S>>>0){g=m;m=n;q=t;ee=1316;break c}c[bd>>2]=g}if(bh(G,g>>>0>32?g:32)|0){u=ce;v=fe;g=m;m=t;ee=1317;break a}c[v+(s*40|0)+12>>2]=g;w=v+(s*40|0)+8|0;b[w>>1]=e[w>>1]&48640|16;w=c[bd>>2]|0;g=c[v+(s*40|0)+16>>2]|0;if(!(a[x>>0]&4))r=Hm(z,0,w,g,0)|0;else r=zh(z,0,w,g)|0;a[v+(s*40|0)+10>>0]=1;z=G;R=p;break}case 103:{r=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;s=r+25|0;if(a[s>>0]|0){g=m;m=n;r=J;n=p;ee=700;break d}do if(!(a[r+26>>0]|0)){g=c[r+32>>2]|0;if(g){S=c[g>>2]|0;r=nc[c[(c[S>>2]|0)+48>>2]&127](g,Od)|0;Im(f,S);break}if((a[(c[r>>2]|0)+73>>0]|0)!=1){z=fm(r)|0;if(z){g=m;m=n;q=z;ee=1318;break c}if(a[s>>0]|0){g=m;m=n;r=J;n=p;ee=708;break d}}gm(c[r>>2]|0,Od);r=0}else{R=r+48|0;S=c[R+4>>2]|0;r=Od;c[r>>2]=c[R>>2];c[r+4>>2]=S;r=0}while(0);S=Od;R=c[S+4>>2]|0;z=J;c[z>>2]=c[S>>2];c[z+4>>2]=R;z=J;R=p;break}case 108:{ee=715;break}case 104:{g=m;m=n;r=J;n=p;ee=711;break d}case 107:case 106:{c[gc>>2]=(c[gc>>2]|0)+1;ee=715;break}case 105:{R=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=c[R>>2]|0;c[Bd>>2]=0;r=Dm(r,Bd)|0;S=c[Bd>>2]|0;a[R+25>>0]=S;a[R+26>>0]=0;c[R+60>>2]=0;R=c[o+(p*20|0)+8>>2]|0;z=J;R=(R|0)>0&(S|0)!=0?R+-1|0:p;break}case 7:case 6:{if(!(c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0)){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}else ee=765;break}case 5:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;c[Cd>>2]=0;w=c[g+56>>2]|0;if(a[w+56>>0]|0){r=Sm(c[w+20>>2]|0,Cd)|0;ee=766;break e}r=w+36|0;s=c[r>>2]|0;S=s+4|0;c[r>>2]=c[S>>2];c[S>>2]=0;if(!((c[w+40>>2]|0)!=0|(s|0)==0))ig(he,s);c[Cd>>2]=(c[r>>2]|0)==0&1;r=0;ee=766;break}case 9:case 8:{ee=765;break}case 110:case 109:{x=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;Q=c[o+(p*20|0)+8>>2]|0;g=c[x>>2]|0;z=o+(p*20|0)+3|0;if(a[z>>0]&1)c[rb>>2]=(c[rb>>2]|0)+1;if((b[v+(Q*40|0)+8>>1]&16384)!=0?(Rd=Ng(v+(Q*40|0)|0)|0,(Rd|0)!=0):0){g=m;m=n;o=Rd;q=t;ee=1309;break c}B=c[x+56>>2]|0;R=v+(Q*40|0)+12|0;P=c[R>>2]|0;if(!B){if(!(a[z>>0]&16))w=0;else w=c[x+12>>2]|0;r=Em(g,c[v+(Q*40|0)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[o+(p*20|0)+12>>2]|0,w)|0;c[x+60>>2]=0;z=J;R=p;break e}z=P;w=((P|0)<0)<<31>>31;x=0;do{x=x+1|0;z=iw(z|0,w|0,7)|0;w=C}while(((z|0)!=0|(w|0)!=0)&(x|0)<9);s=P+8|0;F=x+P|0;K=B+4|0;x=c[K>>2]|0;do if(!x)r=0;else{if(!(c[B+40>>2]|0)){z=B+44|0;S=c[z>>2]|0;if((S|0)<=(x|0)?!((c[2265]|0)!=0?(S|0)>(c[B>>2]|0):0):0){r=0;break}}else{S=c[B+48>>2]|0;if(!((S|0)!=0&(S+s|0)>(x|0))){r=0;break}z=B+44|0}r=Km(B)|0;c[z>>2]=0;c[B+48>>2]=0}while(0);z=B+36|0;G=B+44|0;c[G>>2]=(c[G>>2]|0)+F;G=B+8|0;if((F|0)>(c[G>>2]|0))c[G>>2]=F;I=B+40|0;G=c[I>>2]|0;if(!G){w=mg(s,((s|0)<0)<<31>>31)|0;if(!w){g=m;m=n;o=7;q=t;ee=1309;break c}c[w+4>>2]=c[z>>2]}else{w=B+48|0;F=c[w>>2]|0;s=F+s|0;g=B+52|0;E=c[g>>2]|0;if((s|0)>(E|0)){F=E;do F=F<<1;while((F|0)<(s|0));S=c[K>>2]|0;F=(F|0)>(S|0)?S:F;F=(F|0)<(s|0)?s:F;G=ng(G,F,((F|0)<0)<<31>>31)|0;if(!G){g=m;m=n;o=7;q=t;ee=1309;break c}x=G+((c[z>>2]|0)-(c[I>>2]|0))|0;c[z>>2]=x;c[I>>2]=G;c[g>>2]=F;F=c[w>>2]|0}else x=c[z>>2]|0;c[w>>2]=F+(P+15&-8);c[G+(F+4)>>2]=x-G;w=G+F|0}gw(w+8|0,c[v+(Q*40|0)+16>>2]|0,c[R>>2]|0)|0;c[w>>2]=c[R>>2];c[z>>2]=w;z=J;R=p;break}case 112:{g=m;m=n;n=p;ee=801;break d}case 111:{w=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;g=c[w>>2]|0;c[vd>>2]=c[w+8>>2];b[jc>>1]=c[o+(p*20|0)+12>>2];a[kc>>0]=0;c[mc>>2]=v+((c[o+(p*20|0)+8>>2]|0)*40|0);r=ym(g,vd,0,0,0,Dd)|0;if(!(c[Dd>>2]|r))r=Fm(g)|0;c[w+60>>2]=0;z=J;R=p;break}case 116:case 115:case 114:case 113:{w=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;c[wd>>2]=c[w+8>>2];b[uc>>1]=c[o+(p*20|0)+16>>2];a[V>>0]=((G&255)<115)<<31>>31;c[W>>2]=v+((c[o+(p*20|0)+12>>2]|0)*40|0);S=Pd;c[S>>2]=0;c[S+4>>2]=0;gm(c[w>>2]|0,Pd);S=Pd;g=c[S>>2]|0;S=fw(g|0,c[S+4>>2]|0,-1,-1)|0;R=C;if(!(R>>>0>0|(R|0)==0&S>>>0>2147483646)){b[X>>1]=0;c[Y>>2]=he;c[aa>>2]=0;g=jm(c[w>>2]|0,0,g,1,nd)|0;if(!g){r=Gm(c[ca>>2]|0,c[da>>2]|0,wd,0)|0;if((b[X>>1]&9312)==0&(c[aa>>2]|0)==0)g=0;else{Mg(nd);g=0}}else r=0}else{c[ge>>2]=68730;c[ge+4>>2]=10788;Zc(11,13600,ge);g=11;r=0}if((((a[z>>0]&1)==0?r+1|0:0-r|0)|0)>0){z=J;R=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=g}else{z=J;R=p;r=g}break}case 117:{O=J+8|0;b[O>>1]=1;if((c[Wb>>2]|0)>((c[ea>>2]|0)+1|0)){g=m;m=n;q=t;ee=832;break c}L=c[o+(p*20|0)+12>>2]|0;K=c[(c[Td>>2]|0)+(L<<4)+4>>2]|0;P=o+(p*20|0)+4|0;F=c[P>>2]|0;z=K+4|0;s=c[z>>2]|0;c[s+4>>2]=c[K>>2];c[ge>>2]=0;do if(!(c[s+8>>2]|0)){r=$k(s,F,ge,0)|0;if(!r){r=Tm(K,F,0)|0;if(r){w=c[ge>>2]|0;if(!w){x=0;break}xg(c[w+68>>2]|0);x=0;break}if(F>>>0<=1){w=c[ge>>2]|0;ll(w,9);if(!w){r=0;x=0;break}xg(c[w+68>>2]|0);r=0;x=0;break}if(!(a[s+17>>0]|0)){w=c[ge>>2]|0;r=Um(c[w+52>>2]|0,w,c[w+72>>2]|0)|0;if(!w){x=0;break}xg(c[w+68>>2]|0);x=0;break}G=c[z>>2]|0;c[G+4>>2]=c[K>>2];G=c[(c[G+12>>2]|0)+56>>2]|0;G=d[G+53>>0]<<16|d[G+52>>0]<<24|d[G+54>>0]<<8|d[G+55>>0];z=c[ge>>2]|0;if((G|0)==(F|0)){r=Um(c[z+52>>2]|0,z,c[z+72>>2]|0)|0;if(z)xg(c[z+68>>2]|0);if(!r)x=0;else{x=0;break}}else{if(z)xg(c[z+68>>2]|0);r=$k(s,G,Pd,0)|0;if(r){x=0;break}z=c[Pd>>2]|0;r=Vm(s,z,1,0,F,0)|0;if(z)xg(c[z+68>>2]|0);if(r){x=0;break}c[Pd>>2]=0;r=$k(s,G,Pd,0)|0;z=c[Pd>>2]|0;if(r){if(!z){x=0;break}}else r=Um(c[z+52>>2]|0,z,c[z+72>>2]|0)|0;xg(c[z+68>>2]|0);if(!r)x=G;else{x=0;break}}E=((c[2514]|0)>>>0)/((c[s+32>>2]|0)>>>0)|0;D=E+1|0;F=s+36|0;while(1){z=G+-1|0;if((z|0)==(D|0)){G=z;continue}if(z>>>0<2)B=0;else{B=G+-3|0;B=B-((B>>>0)%(((((c[F>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;B=((B+1|0)==(E|0)?3:2)+B|0}if((B|0)==(z|0))G=z;else break}r=zg(K,4,z)|0}else x=0}else{r=262;x=0}while(0);b[O>>1]=4;S=J;c[S>>2]=x;c[S+4>>2]=((x|0)<0)<<31>>31;if((r|0)==0&(x|0)!=0){g=m;K=L;z=P;m=n;r=J;n=p;ee=865;break d}else{z=J;R=p}break}case 118:{c[gd>>2]=0;g=o+(p*20|0)+12|0;r=Tm(c[(c[Td>>2]|0)+(c[o+(p*20|0)+8>>2]<<4)+4>>2]|0,c[o+(p*20|0)+4>>2]|0,(c[g>>2]|0)!=0?gd:0)|0;g=c[g>>2]|0;if((g|0)!=0?(Fc=c[gd>>2]|0,c[rb>>2]=(c[rb>>2]|0)+Fc,(g|0)>0):0){z=v+(g*40|0)|0;R=z;R=fw(c[R>>2]|0,c[R+4>>2]|0,Fc|0,((Fc|0)<0)<<31>>31|0)|0;c[z>>2]=R;c[z+4>>2]=C;z=J;R=p}else{z=J;R=p}break}case 121:case 120:{c[sd>>2]=0;r=wm(c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0,sd,G<<24>>24==121?1:2)|0;R=c[sd>>2]|0;z=J;c[z>>2]=R;c[z+4>>2]=((R|0)<0)<<31>>31;z=J;R=p;break}case 119:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=c[g+56>>2]|0;if(r){g=m;m=n;G=J;n=p;ee=878;break d}r=c[g>>2]|0;z=J;R=p;r=Tm(c[r>>2]|0,c[r+60>>2]|0,0)|0;break}case 123:{z=J;R=p;r=Ym(he,c[o+(p*20|0)+4>>2]|0)|0;break}case 124:{g=m;m=n;r=J;n=p;ee=886;break d}case 122:{g=m;m=n;G=J;n=p;ee=881;break d}case 126:{g=m;m=n;r=J;n=p;ee=895;break d}case 125:{g=m;m=n;G=J;n=p;ee=887;break d}case 127:{g=m;m=n;r=J;ee=903;break d}case 128:{g=m;m=n;G=J;ee=947;break d}case 129:{s=c[o+(p*20|0)+4>>2]|0;r=v+(s*40|0)|0;s=v+(s*40|0)+8|0;g=b[s>>1]|0;do if(g&32){B=c[r>>2]|0;g=B+26|0;w=b[g>>1]|0;if(!(w&2)){if(!(w&1)){w=B+8|0;c[w>>2]=fn(c[w>>2]|0)|0;w=b[g>>1]|0}b[g>>1]=w&65535|2}z=B+8|0;x=c[z>>2]|0;if(!x){g=b[s>>1]|0;break}s=x;w=c[s>>2]|0;s=c[s+4>>2]|0;S=c[x+8>>2]|0;c[z>>2]=S;if(!S)Vk(B);r=c[o+(p*20|0)+12>>2]|0;g=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(!(b[r>>1]&9312)){ee=g;c[ee>>2]=w;c[ee+4>>2]=s;b[r>>1]=4;r=0;ee=19;break e}else{Vg(g,w,s);r=0;ee=19;break e}}while(0);if(!(g&9312))b[s>>1]=1;else rg(r);p=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=0;ee=19;break}case 130:{g=m;m=n;r=J;ee=966;break d}case 131:{g=m;m=n;r=J;n=p;ee=993;break d}case 132:{g=m;m=n;r=J;n=p;ee=1009;break d}case 134:{g=m;m=n;G=J;n=p;ee=1010;break d}case 135:{g=m;m=n;r=J;n=p;ee=1015;break d}case 136:{g=m;m=n;n=p;ee=1022;break d}case 137:{g=m;m=n;r=J;n=p;ee=1028;break d}case 138:{g=m;m=n;r=J;n=p;ee=1030;break d}case 139:{g=m;m=n;G=J;n=p;ee=1032;break d}case 140:{g=m;m=n;r=J;n=p;ee=1034;break d}case 141:{g=m;m=n;r=J;n=p;ee=1036;break d}case 10:{S=a[o+(p*20|0)+3>>0]|0;w=S&255;g=c[yb>>2]|0;if(S<<24>>24){r=0;s=v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0;while(1){c[g+(r<<2)>>2]=s;r=r+1|0;if((r|0)>=(w|0))break;else s=s+40|0}}S=c[o+(p*20|0)+16>>2]|0;c[Da>>2]=S;R=c[o+(p*20|0)+12>>2]|0;c[Ea>>2]=v+(R*40|0);R=v+(R*40|0)+12|0;c[R>>2]=(c[R>>2]|0)+1;b[Fa>>1]=1;c[Ga>>2]=he;c[Ha>>2]=0;c[Tc>>2]=Jd;c[Ia>>2]=0;c[Ja>>2]=f;c[Ka>>2]=p;a[La>>0]=0;ic[c[S+16>>2]&63](Tc,w,g);if(!(c[Ia>>2]|0))r=0;else{c[ge>>2]=Og(Jd,1)|0;$g(fe,he,10344,ge);r=c[Ia>>2]|0}do if((a[La>>0]|0)!=0?(Jc=c[o+((p+-1|0)*20|0)+4>>2]|0,(Jc|0)!=0):0){g=v+(Jc*40|0)|0;s=v+(Jc*40|0)+8|0;if(!(b[s>>1]&9312)){S=g;c[S>>2]=1;c[S+4>>2]=0;b[s>>1]=4;break}else{Vg(g,1,0);break}}while(0);if((b[Fa>>1]&9312)==0&(c[Ha>>2]|0)==0){z=J;R=p}else{Mg(Jd);z=J;R=p}break}case 11:{c[Oc>>2]=0;c[Ma>>2]=-1;c[Na>>2]=-1;g=Sh(he,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+8>>2]|0,Na,Ma)|0;if((g|0)==5){c[Oc>>2]=1;g=0}r=0;s=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;while(1){z=c[Oc+(r<<2)>>2]|0;x=((z|0)<0)<<31>>31;w=s+8|0;if(!(b[w>>1]&9312)){S=s;c[S>>2]=z;c[S+4>>2]=x;b[w>>1]=4}else Vg(s,z,x);r=r+1|0;if((r|0)==3){z=J;R=p;r=g;break}else s=s+40|0}break}case 142:{z=c[o+(p*20|0)+4>>2]|0;w=v+(z*40|0)|0;r=Uk(w,c[o+(p*20|0)+16>>2]|0)|0;if(r){c[ge>>2]=Og(w,1)|0;$g(fe,he,10344,ge)}Ul(w,ub)|0;s=e[v+(z*40|0)+8>>1]|0;if(s&18){g=c[v+(z*40|0)+12>>2]|0;if(s&16384)g=(c[w>>2]|0)+g|0;if((g|0)>(c[(c[v+(z*40|0)+32>>2]|0)+88>>2]|0)){g=m;m=n;q=t;ee=1316;break c}else{z=J;R=p}}else{z=J;R=p}break}case 12:{g=c[o+(p*20|0)+12>>2]|0;J=c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0;I=c[c[J+4>>2]>>2]|0;G=a[I+5>>0]|0;w=G&255;g=(g|0)==-1?w:g;do if((d[I+16>>0]|0)>2)g=w;else if((c[c[I+64>>2]>>2]|0)!=0?(S=I+72|0,R=c[S+4>>2]|0,(R|0)>0|(R|0)==0&(c[S>>2]|0)>>>0>0):0){g=w;break}while(0);if(!(a[I+15>>0]|0))x=c[I+168>>2]|0;else x=10360;s=(g|0)==5;if(s)if(x){z=x;while(1)if(!(a[z>>0]|0))break;else z=z+1|0;if(z-x&1073741823){z=c[c[I+60>>2]>>2]|0;if(!(a[I+4>>0]|0))if((c[z>>2]|0)>1?!((c[z+52>>2]|0)==0|(g|0)==(w|0)):0)ee=1077;else{g=w;r=0}else ee=1076}else{g=w;r=0}}else{g=w;r=0}else ee=1076;if((ee|0)==1076){ee=0;if((g|0)==(w|0)){g=w;r=0}else ee=1077}do if((ee|0)==1077){ee=0;z=G<<24>>24==5;if(z|s){if(!(a[ae>>0]|0)){g=m;o=s;m=n;q=t;ee=1080;break c}if((c[Wb>>2]|0)>1){g=m;o=s;m=n;q=t;ee=1080;break c}if(!z){if(G<<24>>24==4)on(I,2)|0}else{G=I+208|0;if(!(c[G>>2]|0)){c[Xc>>2]=0;r=bl(I,1)|0;if(r)break;r=c[I>>2]|0;r=lc[c[r+32>>2]&31](r,c[I+212>>2]|0,0,Xc)|0;if((r|0)==0&(c[Xc>>2]|0)!=0)r=ln(I)|0;if(r)break;if(c[G>>2]|0)ee=1088}else ee=1088;if((ee|0)==1088){ee=0;r=mn(I)|0;if(r)break;r=nn(c[G>>2]|0,d[I+9>>0]|0,c[I+152>>2]|0,c[I+200>>2]|0)|0;c[G>>2]=0;if(r)break}on(I,g)|0}r=Bg(J,s?2:1)|0}else r=0}while(0);g=on(I,(r|0)==0?g:w)|0;z=c[o+(p*20|0)+8>>2]|0;G=v+(z*40|0)|0;b[v+(z*40|0)+8>>1]=2562;if((g|0)==6){c[v+(z*40|0)+16>>2]=0;g=0}else{g=c[32216+(g<<2)>>2]|0;c[v+(z*40|0)+16>>2]=g;w=g;while(1)if(!(a[w>>0]|0))break;else w=w+1|0;g=w-g&1073741823}c[v+(z*40|0)+12>>2]=g;a[v+(z*40|0)+10>>0]=1;Ul(G,ub)|0;z=G;R=p;break}case 13:{if(!(a[ae>>0]|0)){g=m;m=n;q=t;ee=1101;break c}if((c[Oa>>2]|0)>1){g=m;m=n;q=t;ee=1103;break c}Q=c[Qb>>2]|0;L=c[sb>>2]|0;s=c[tb>>2]|0;g=c[Pa>>2]|0;c[Qb>>2]=Q&-2762753|2107392;c[Pa>>2]=0;I=c[(c[Td>>2]|0)+4>>2]|0;P=I+4|0;F=a[(c[c[P>>2]>>2]|0)+15>>0]|0;S=c[Rb>>2]|0;r=pn(he,fe,(a[Xb>>0]|0)==2?42432:42464)|0;G=c[Rb>>2]|0;if((G|0)>(S|0))w=(c[Td>>2]|0)+(G+-1<<4)|0;else w=0;i:do if(!r){O=c[(c[Td>>2]|0)+(G+-1<<4)+4>>2]|0;qn(O)|0;R=c[P>>2]|0;c[R+4>>2]=c[I>>2];R=(c[R+32>>2]|0)-(c[R+36>>2]|0)|0;r=pn(he,fe,42488)|0;if(!r){r=pn(he,fe,42528)|0;if(!r){r=ug(I,2)|0;if(!r){G=c[P>>2]|0;if((a[(c[G>>2]|0)+5>>0]|0)==5)c[Qa>>2]=0;if(!(tg(O,c[G+32>>2]|0,R,0)|0)){if(F<<24>>24==0?(tg(O,c[Qa>>2]|0,R,0)|0)!=0:0){r=7;break}if(a[ce>>0]|0){r=7;break}G=a[Ra>>0]|0;do if(G<<24>>24>-1)G=G<<24>>24;else{G=c[P>>2]|0;c[G+4>>2]=c[I>>2];if(!(a[G+17>>0]|0)){G=0;break}G=(a[G+18>>0]|0)==0?1:2}while(0);rn(O,G)|0;r=sn(he,fe,42536)|0;if(r)break;r=sn(he,fe,42688)|0;if(r)break;r=sn(he,fe,42792)|0;if(r)break;r=sn(he,fe,42912)|0;if(r)break;r=sn(he,fe,43112)|0;if(r)break;r=sn(he,fe,43232)|0;if(r)break;r=pn(he,fe,43392)|0;if(!r)G=0;else break;do{r=d[43576+G>>0]|0;sm(I,r,ad);r=zg(O,r,(d[43576+(G|1)>>0]|0)+(c[ad>>2]|0)|0)|0;G=G+2|0;if(r)break i}while((G|0)<10);E=c[P>>2]|0;c[E+4>>2]=c[I>>2];G=c[O>>2]|0;K=O+4|0;F=c[K>>2]|0;c[F+4>>2]=G;E=c[(c[E>>2]|0)+60>>2]|0;D=c[E>>2]|0;if(D){S=c[F+32>>2]|0;S=ow(c[F+44>>2]|0,0,S|0,((S|0)<0)<<31>>31|0)|0;r=fd;c[r>>2]=S;c[r+4>>2]=C;r=Yb[c[D+40>>2]&63](E,11,fd)|0;r=(r|0)==12?0:r;if(r)break;G=c[O>>2]|0}S=Qc+0|0;D=S+48|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));c[Sa>>2]=G;c[Ta>>2]=O;c[Ua>>2]=I;c[Va>>2]=1;cd(Qc,2147483647)|0;r=dd(Qc)|0;if(r){z=c[c[(c[Ua>>2]|0)+4>>2]>>2]|0;if(a[z+15>>0]|0)break;if(a[z+12>>0]|0)break;tn(z);break}r=(c[P>>2]|0)+22|0;b[r>>1]=e[r>>1]&65533;r=qn(O)|0;if(r)break;G=c[K>>2]|0;c[G+4>>2]=c[O>>2];if(!(a[G+17>>0]|0))B=0;else B=(a[G+18>>0]|0)==0?1:2;rn(I,B)|0;r=tg(I,c[(c[K>>2]|0)+32>>2]|0,R,1)|0}else r=7}}}}while(0);c[Qb>>2]=Q;c[sb>>2]=L;c[tb>>2]=s;c[Pa>>2]=g;tg(I,-1,-1,1)|0;a[ae>>0]=1;if(w){S=w+4|0;Il(c[S>>2]|0);c[S>>2]=0;c[w+12>>2]=0}Ag(he);z=J;R=p;break}case 143:{S=c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0;F=c[S+4>>2]|0;c[F+4>>2]=c[S>>2];if(!(a[F+17>>0]|0)){g=m;m=n;r=J;ee=1157;break d}B=F+44|0;E=c[B>>2]|0;x=F+12|0;z=c[(c[x>>2]|0)+56>>2]|0;z=d[z+37>>0]<<16|d[z+36>>0]<<24|d[z+38>>0]<<8|d[z+39>>0];D=Al(F,E,z)|0;if(E>>>0<D>>>0){g=m;m=n;q=t;ee=1145;break c}if(!z){g=m;m=n;r=J;ee=1157;break d}G=F+8|0;w=c[G>>2]|0;do if(w){z=w;do{if(z){ee=1150;break}z=c[2]|0}while((z|0)!=0);if((ee|0)==1150){ee=0;r=Bl(z,0,0)|0;if(r)break;w=c[G>>2]|0}if(w){do{S=w+72|0;a[S>>0]=d[S>>0]&251;w=c[w+8>>2]|0}while((w|0)!=0);ee=1154}else ee=1154}else ee=1154;while(0);if((ee|0)==1154){ee=0;r=Cl(F,D,E,0)|0;if(!r){r=Cg(c[(c[x>>2]|0)+68>>2]|0)|0;S=c[(c[x>>2]|0)+56>>2]|0;R=c[B>>2]|0;a[S+28>>0]=R>>>24;a[S+29>>0]=R>>>16;a[S+30>>0]=R>>>8;a[S+31>>0]=R}}if((r|0)==101){g=m;m=n;r=J;ee=1157;break d}else{z=J;R=p}break}case 145:{g=c[o+(p*20|0)+12>>2]|0;if((g&255|0)==0?(c[Qb>>2]&16384|0)!=0:0){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}z=c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0;x=c[o+(p*20|0)+8>>2]|0;if(!(a[z+9>>0]|0)){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}w=g+1&255;s=z+4|0;c[(c[s>>2]|0)+4>>2]=c[z>>2];r=Zk(z,x,w)|0;if(!r){g=m;m=n;r=J;n=p;ee=1166;break d}if((r&255|0)!=6){g=m;m=n;o=r;q=t;ee=1309;break c}c[ge>>2]=c[o+(p*20|0)+16>>2];$g(fe,he,42224,ge);z=J;R=p;break}case 144:{g=m;m=n;r=J;n=p;ee=1158;break d}case 146:{G=c[o+(p*20|0)+16>>2]|0;r=c[Wa>>2]|0;w=(r|0)>0;if(w?(c[Xa>>2]|0)==0:0){r=6;ee=1188}else ee=1179;j:do if((ee|0)==1179){ee=0;if(!G){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}g=G+8|0;s=(c[c[g>>2]>>2]|0)+56|0;if(c[s>>2]|0){if(w){z=c[Xa>>2]|0;x=0;do{if((c[z+(x<<2)>>2]|0)==(G|0)){r=0;ee=1188;break j}x=x+1|0}while((x|0)<(r|0))}r=un(he)|0;if(!r){r=hc[c[s>>2]&127](c[g>>2]|0)|0;if(!r){r=c[Wa>>2]|0;c[Wa>>2]=r+1;c[(c[Xa>>2]|0)+(r<<2)>>2]=G;r=G+12|0;c[r>>2]=(c[r>>2]|0)+1;r=0}}else ee=1188}else r=0}while(0);if((ee|0)==1188){ee=0;if(!G){z=J;R=p;break e}g=G+8|0}Im(f,c[g>>2]|0);z=J;R=p;break}case 147:{S=Hd+0|0;D=S+40|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));c[Ya>>2]=he;g=Wg(Hd,v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0)|0;r=Og(Hd,1)|0;k:do if(r){w=Wh(he,r,c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)>>2]|0)|0;g=c[c[w+56>>2]>>2]|0;r=Zm($a,g,Uc)|0;if((r|0)!=0?(Lc=c[r+8>>2]|0,(Lc|0)!=0):0){g=vn(he,w,Lc,c[(c[Lc>>2]|0)+4>>2]|0,fe)|0;if(g)break;w=w+60|0;g=c[w>>2]|0;if(!g){g=0;break}while(1){if((c[g>>2]|0)==(he|0))break;g=c[g+24>>2]|0;if(!g){g=0;break k}}g=un(he)|0;if(g)break;g=c[w>>2]|0;l:do if(!g)g=0;else while(1){if((c[g>>2]|0)==(he|0))break l;g=c[g+24>>2]|0;if(!g){g=0;break}}while(0);S=c[Wa>>2]|0;c[Wa>>2]=S+1;c[(c[Xa>>2]|0)+(S<<2)>>2]=g;g=g+12|0;c[g>>2]=(c[g>>2]|0)+1;g=0;break}c[ge>>2]=g;c[fe>>2]=qh(he,28320,ge)|0;g=1}while(0);if((b[Za>>1]&9312)==0&(c[_a>>2]|0)==0){z=J;R=p;r=g}else{Mg(Hd);z=J;R=p;r=g}break}case 148:{c[ea>>2]=(c[ea>>2]|0)+1;g=Wh(he,c[o+(p*20|0)+16>>2]|0,c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)>>2]|0)|0;m:do if((g|0)!=0?(Mc=g+60|0,Nc=c[Mc>>2]|0,(Nc|0)!=0):0){r=Nc;do{if((c[(c[r+8>>2]|0)+4>>2]|0)>0){r=6;break m}r=c[r+24>>2]|0}while((r|0)!=0);g=Kk(he,g)|0;s=g+8|0;r=hc[c[(c[c[g+4>>2]>>2]|0)+20>>2]&127](c[s>>2]|0)|0;if(!r){c[s>>2]=0;c[Mc>>2]=0;wn(g);r=0}}else r=0;while(0);c[ea>>2]=(c[ea>>2]|0)+-1;z=J;R=p;break}case 149:{g=m;m=n;r=J;n=p;ee=1213;break d}case 150:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;z=c[o+(p*20|0)+12>>2]|0;x=v+(z*40|0)|0;if(a[g+25>>0]|0){g=m;m=n;r=J;n=p;ee=1226;break d}S=g+32|0;r=c[c[S>>2]>>2]|0;R=c[r>>2]|0;c[Fd+0>>2]=0;c[Fd+4>>2]=0;c[Fd+8>>2]=0;c[Fd+12>>2]=0;c[Fd+16>>2]=0;c[Fd+20>>2]=0;c[Fd+24>>2]=0;c[Fd>>2]=x;w=v+(z*40|0)+8|0;b[w>>1]=e[w>>1]&48640|1;S=Yb[c[R+44>>2]&63](c[S>>2]|0,Fd,c[o+(p*20|0)+8>>2]|0)|0;Im(f,r);r=c[ab>>2]|0;r=(r|0)==0?S:r;Ul(x,ub)|0;w=e[w>>1]|0;if(w&18){g=c[v+(z*40|0)+12>>2]|0;if(w&16384)g=(c[x>>2]|0)+g|0;if((g|0)>(c[(c[v+(z*40|0)+32>>2]|0)+88>>2]|0)){g=m;m=n;q=t;ee=1316;break c}else{z=J;R=p}}else{z=J;R=p}break}case 14:{x=c[o+(p*20|0)+12>>2]|0;z=x+1|0;D=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;G=c[D+32>>2]|0;F=c[G>>2]|0;E=c[F>>2]|0;B=c[v+(z*40|0)>>2]|0;x=c[v+(x*40|0)>>2]|0;w=c[yb>>2]|0;if((B|0)>0){g=0;do{S=g;g=g+1|0;c[w+(S<<2)>>2]=v+((g+z|0)*40|0)}while((g|0)!=(B|0))}r=pc[c[E+32>>2]&31](G,x,c[o+(p*20|0)+16>>2]|0,B,w)|0;Im(f,F);if((r|0)==0?(hc[c[E+40>>2]&127](G)|0)!=0:0)p=(c[o+(p*20|0)+8>>2]|0)+-1|0;a[D+25>>0]=0;z=J;R=p;break}case 151:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;if(a[g+25>>0]|0){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}g=g+32|0;s=c[g>>2]|0;S=c[s>>2]|0;r=c[S>>2]|0;s=hc[c[r+36>>2]&127](s)|0;Im(f,S);if((s|0)==0?(hc[c[r+40>>2]&127](c[g>>2]|0)|0)!=0:0){r=0;ee=19;break e}p=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=s;ee=19;break}case 15:{D=o+(p*20|0)+16|0;g=c[(c[D>>2]|0)+8>>2]|0;if(!g){g=m;m=n;o=6;q=t;ee=1309;break c}w=c[g>>2]|0;if(!w){g=m;m=n;o=6;q=t;ee=1309;break c}F=c[o+(p*20|0)+8>>2]|0;B=w+52|0;z=c[B>>2]|0;if(!z){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}E=a[bb>>0]|0;G=c[yb>>2]|0;if((F|0)>0){z=0;x=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;while(1){c[G+(z<<2)>>2]=x;z=z+1|0;if((z|0)==(F|0))break;else x=x+40|0}z=c[B>>2]|0}x=o+(p*20|0)+3|0;a[bb>>0]=a[x>>0]|0;r=lc[z&31](g,F,G,Ed)|0;a[bb>>0]=E;Im(f,g);if(!r){if(c[o+(p*20|0)+4>>2]|0){l=Ed;n=c[l>>2]|0;l=c[l+4>>2]|0;S=je;c[S>>2]=n;c[S+4>>2]=l}}else if((r&255|0)==19?(a[(c[D>>2]|0)+16>>0]|0)!=0:0){g=a[x>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}a[be>>0]=g;z=J;R=p;break e}c[rb>>2]=(c[rb>>2]|0)+1;z=J;R=p;break}case 152:{g=c[(c[o+(p*20|0)+16>>2]|0)+8>>2]|0;r=c[o+(p*20|0)+4>>2]|0;s=v+(r*40|0)|0;if(((b[v+(r*40|0)+8>>1]&2)!=0?(a[v+(r*40|0)+10>>0]|0)!=1:0)?(Sd=xn(s,1)|0,(Sd|0)!=0):0){g=m;m=n;o=Sd;q=t;ee=1309;break c}r=nc[c[(c[g>>2]|0)+76>>2]&127](g,c[v+(r*40|0)+16>>2]|0)|0;Im(f,g);b[Ud>>1]=b[Ud>>1]&-9;z=J;R=p;break}case 153:{g=m;m=n;r=J;n=p;ee=1257;break d}case 155:{g=m;m=n;ee=1264;break d}case 154:{g=m;m=n;G=J;n=p;ee=1258;break d}default:{g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}}while(0);n:do if((ee|0)==57){ee=0;w=J+8|0;b[w>>1]=2562;c[J+16>>2]=s;c[J+12>>2]=g;a[J+10>>0]=Gc;if((a[o+(p*20|0)+3>>0]|0)!=0?(S=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0,!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)):0){b[w>>1]=2576;z=J;R=p}else{z=J;R=p}}else if((ee|0)==536){if(b[Ud>>1]&8){g=m;m=n;o=516;q=t;ee=1309;break c}z=c[o+(p*20|0)+8>>2]|0;F=c[o+(p*20|0)+12>>2]|0;g=c[Td>>2]|0;E=c[g+(F<<4)+4>>2]|0;if(G<<24>>24==55){g=a[(c[g+(F<<4)+12>>2]|0)+76>>0]|0;if((g&255)<(d[Jb>>0]|0)){a[Jb>>0]=g;G=1}else G=1}else G=0;w=o+(p*20|0)+3|0;if(a[w>>0]&4){S=v+(z*40|0)|0;g=Rg(S)|0;c[S>>2]=g;c[S+4>>2]=C;S=v+(z*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;if((g|0)<2){g=m;m=n;o=t;ee=542;break c}else B=g}else B=z;r=o+(p*20|0)+1|0;z=a[r>>0]|0;if(z<<24>>24==-6){x=c[o+(p*20|0)+16>>2]|0;z=(e[x+8>>1]|0)+(e[x+6>>1]|0)|0}else if(z<<24>>24==-14){z=c[o+(p*20|0)+16>>2]|0;x=0}else{z=0;x=0}g=tm(f,c[o+(p*20|0)+4>>2]|0,z,F,1)|0;if(!g){u=ce;v=fe;g=m;m=t;ee=1317;break a}a[g+25>>0]=1;S=g+27|0;a[S>>0]=a[S>>0]|8;c[g+28>>2]=B;ee=um(E,B,G,x,c[g>>2]|0)|0;c[g+8>>2]=x;a[S>>0]=((a[r>>0]|0)!=-6&1)<<2&255|a[S>>0]&-5;r=ee;ee=548}else if((ee|0)==715){ee=0;H=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;x=c[H+56>>2]|0;do if(!x){r=c[H>>2]|0;g=mm(r)|0;if(!g)if(!(a[r+73>>0]|0)){w=1;g=0}else{w=0;g=Rm(r)|0}else w=1;a[H+26>>0]=0;c[H+60>>2]=0;a[H+25>>0]=w;if(!w){z=J;R=p;r=g;break n}}else{do if(!(a[x+56>>0]|0)){g=x+36|0;if(!(c[g>>2]|0)){g=0;ee=756}else{g=Jm(x+64|0,g)|0;ee=755}}else{g=Km(x)|0;if(!g){S=x+59|0;o:do if(!(a[S>>0]|0)){r=0;g=0}else{I=0;w=0;p:while(1){R=x+(I<<6)+64|0;c[ge>>2]=0;Q=x+(I<<6)+92|0;z=c[Q>>2]|0;G=((z|0)<0)<<31>>31;do if((z|0)>16){F=16;E=0;B=0;while(1){F=ew(F|0,E|0,4)|0;E=C;D=B+1|0;if(!((E|0)<(G|0)|(E|0)==(G|0)&F>>>0<z>>>0)){E=B;break}else B=D}P=Pd;c[P>>2]=0;c[P+4>>2]=0;if((z|0)<17){ee=726;break}r=Mm(16)|0;c[ge>>2]=r;G=(r|0)==0;F=c[Q>>2]|0;if(!((F|0)>0&(G^1))){g=G?7:0;break}L=(E|0)>0;P=0;O=0;do{c[nd>>2]=0;g=F-P|0;g=Lm(R,(g|0)<16?g:16,Pd,nd)|0;if(g){ee=747;break p}g=Nm(R,c[nd>>2]|0,md)|0;do if(L){F=1;G=1;do{G=G<<4;F=F+1|0}while((F|0)!=(D|0));if(!g){K=1;F=r}else{G=c[md>>2]|0;ee=743;break}while(1){s=(c[F+12>>2]|0)+((((O|0)/(G|0)|0|0)%16|0)*56|0)+48|0;F=c[s>>2]|0;if(!F){F=Mm(16)|0;if(!F){g=7;ee=738;break}g=Nm(R,F,s)|0;if(g){ee=738;break}F=c[s>>2]|0}F=c[F+4>>2]|0;K=K+1|0;if((K|0)>=(D|0)){ee=740;break}else G=(G|0)/16|0}if((ee|0)==738){G=c[md>>2]|0;ee=743;break}else if((ee|0)==740){G=c[md>>2]|0;ee=742;break}}else{G=c[md>>2]|0;if(!g){F=r;ee=742}else ee=743}while(0);if((ee|0)==742){ee=0;c[(c[F+12>>2]|0)+(((O|0)%16|0)*56|0)+48>>2]=G;g=0}else if((ee|0)==743){ee=0;Om(G)}O=O+1|0;P=P+16|0;F=c[Q>>2]|0}while((P|0)<(F|0)&(g|0)==0)}else{ee=Pd;c[ee>>2]=0;c[ee+4>>2]=0;ee=726}while(0);if((ee|0)==726){ee=0;g=Lm(R,z,Pd,ge)|0;r=c[ge>>2]|0}I=I+1|0;if(g){ee=746;break}if((I|0)>=(d[S>>0]|0)){g=0;break o}else w=r}if((ee|0)==746)Pm(r);else if((ee|0)==747)Pm(r);Pm(w);r=0}while(0);if(!g){g=Qm(x+64|0,r)|0;c[x+20>>2]=r;if(!g){g=0;ee=755;break}else r=0}Pm(r);ee=755}else ee=756}while(0);if((ee|0)==755){ee=0;a[H+25>>0]=0;z=J;R=p;r=g;break n}else if((ee|0)==756){ee=0;a[H+25>>0]=1;break}}while(0);z=J;R=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=g}else if((ee|0)==765){r=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;c[Cd>>2]=c[o+(p*20|0)+12>>2];g=r;r=nc[c[o+(p*20|0)+16>>2]&127](c[r>>2]|0,Cd)|0;ee=766}while(0);do if((ee|0)==548){ee=0;a[(c[g>>2]|0)+74>>0]=d[w>>0]&3;z=J;R=p}else if((ee|0)==766){c[g+60>>2]=0;g=g+25|0;if(!(c[Cd>>2]|0)){a[g>>0]=0;ee=(c[o+(p*20|0)+8>>2]|0)+-1|0;p=f+(d[o+(p*20|0)+3>>0]<<2)+108|0;c[p>>2]=(c[p>>2]|0)+1;p=ee;ee=19;break}else{a[g>>0]=1;ee=19;break}}while(0);if((ee|0)==19){ee=0;if(c[zc>>2]|0){q=fe;g=m;m=t;break b}g=c[Zd>>2]|0;if(!((g|0)==0|m>>>0<u>>>0)){u=c[vc>>2]|0;if(!(hc[g&127](c[Vd>>2]|0)|0)){u=u+m-((m>>>0)%(u>>>0)|0)|0;z=J;R=p}else{g=m;o=9;m=t;ee=1311;break a}}else{z=J;R=p}}p=R+1|0;if(!r){g=m;r=z}else{g=m;o=r;m=t;ee=1311;break a}}q:switch(ee|0){case 22:{ee=0;Q=c[o+(p*20|0)+4>>2]|0;b[v+(Q*40|0)+8>>1]=4;Q=v+(Q*40|0)|0;c[Q>>2]=p;c[Q+4>>2]=((p|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break}case 23:{ee=0;Q=c[o+(p*20|0)+4>>2]|0;n=c[v+(Q*40|0)>>2]|0;b[v+(Q*40|0)+8>>1]=128;Q=v;w=o;R=T;S=U;break}case 24:{ee=0;n=c[o+(p*20|0)+4>>2]|0;r=v+(n*40|0)|0;w=(c[o+(p*20|0)+12>>2]|0)+-1|0;Q=r;c[Q>>2]=w;c[Q+4>>2]=((w|0)<0)<<31>>31;b[v+(n*40|0)+8>>1]=4;n=c[o+(p*20|0)+8>>2]|0;Q=v;w=o;R=T;S=U;n=(n|0)==0?p:n+-1|0;break}case 25:{ee=0;Q=c[o+(p*20|0)+4>>2]|0;n=(c[o+((c[v+(Q*40|0)>>2]|0)*20|0)+8>>2]|0)+-1|0;b[v+(Q*40|0)+8>>1]=128;Q=v;w=o;R=T;S=U;break}case 26:{ee=0;Q=c[o+(p*20|0)+4>>2]|0;b[v+(Q*40|0)+8>>1]=4;Q=v+(Q*40|0)|0;n=c[Q>>2]|0;c[Q>>2]=p;c[Q+4>>2]=((p|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;break}case 27:{ee=0;if(!(b[v+((c[o+(n*20|0)+12>>2]|0)*40|0)+8>>1]&1)){Q=v;w=o;R=T;S=U}else ee=28;break}case 44:{ee=0;w=c[o+(n*20|0)+4>>2]|0;Q=r;c[Q>>2]=w;c[Q+4>>2]=((w|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;break}case 45:{ee=0;R=c[o+(n*20|0)+16>>2]|0;w=c[R+4>>2]|0;Q=r;c[Q>>2]=c[R>>2];c[Q+4>>2]=w;Q=v;w=o;R=T;S=U;break}case 46:{ee=0;b[r+8>>1]=8;h[r>>3]=+h[c[o+(n*20|0)+16>>2]>>3];Q=v;w=o;R=T;S=U;break}case 60:{ee=0;G=(c[o+(n*20|0)+12>>2]|0)-(c[o+(n*20|0)+8>>2]|0)|0;w=(c[o+(n*20|0)+4>>2]|0)!=0?257:1;b[r+8>>1]=w;if((G|0)>0){s=G;x=r;do{p=x+48|0;x=x+40|0;if(!(b[p>>1]&9312))b[p>>1]=1;else rg(x);b[p>>1]=w;s=s+-1|0}while((s|0)>0);Q=v;w=o;R=T;S=U;r=r+(G*40|0)|0}else{Q=v;w=o;R=T;S=U}break}case 65:{ee=0;r=c[o+(n*20|0)+4>>2]|0;Q=v+(r*40|0)+8|0;b[Q>>1]=e[Q>>1]&65406|1;Q=v;w=o;R=T;S=U;r=v+(r*40|0)|0;break}case 66:{ee=0;Tg(r,c[o+(n*20|0)+16>>2]|0,c[o+(n*20|0)+4>>2]|0,0,0)|0;a[r+10>>0]=Gc;Q=v;w=o;R=T;S=U;break}case 67:{ee=0;z=(c[o+(n*20|0)+4>>2]|0)+-1|0;x=c[xb>>2]|0;s=x+(z*40|0)|0;p=e[x+(z*40|0)+8>>1]|0;if(p&18){w=c[x+(z*40|0)+12>>2]|0;if(p&16384)w=(c[s>>2]|0)+w|0;if((w|0)>(c[(c[x+(z*40|0)+32>>2]|0)+88>>2]|0)){p=n;q=t;ee=1316;break c}}Vl(r,s,2048);Q=v;w=o;R=T;S=U;break}case 72:{ee=0;p=c[o+(n*20|0)+12>>2]|0;s=c[o+(n*20|0)+8>>2]|0;G=p+s|0;r=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;s=v+(s*40|0)|0;while(1){Wl(s,r);p=p+-1|0;if(!p)break;else{r=r+40|0;s=s+40|0}}Q=v;w=o;R=T;S=U;r=v+(G*40|0)|0;break}case 74:{ee=0;n=c[o+(p*20|0)+12>>2]|0;r=v+((c[o+(p*20|0)+4>>2]|0)*40|0)|0;G=v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0;while(1){Vl(G,r,4096);if((b[G+8>>1]&4096)!=0?(Rl(G)|0)!=0:0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if(!n){Q=v;w=o;R=T;S=U;r=G;n=p;break q}n=n+-1|0;r=r+40|0;G=G+40|0}}case 79:{ee=0;r=v+((c[o+(n*20|0)+8>>2]|0)*40|0)|0;Vl(r,v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0,4096);Q=v;w=o;R=T;S=U;break}case 94:{ee=0;H=c[o+(p*20|0)+4>>2]|0;G=v+(H*40|0)|0;I=c[o+(p*20|0)+8>>2]|0;F=v+(I*40|0)|0;J=c[o+(p*20|0)+12>>2]|0;r=v+(J*40|0)|0;E=v+(H*40|0)+8|0;B=b[E>>1]|0;D=v+(I*40|0)+8|0;z=b[D>>1]|0;if((z|B)&1){n=v+(J*40|0)+8|0;if(!(b[n>>1]&9312)){b[n>>1]=1;Q=v;w=o;R=T;S=U;n=p;break}else{rg(r);Q=v;w=o;R=T;S=U;n=p;break}}if(B&16384){if(Ng(G)|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}z=b[D>>1]|0}if((z&16384)!=0?(Ng(F)|0)!=0:0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if((b[E>>1]&18)==0?(Zl(G,Gc,0)|0)!=0:0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if((b[D>>1]&18)==0?(Zl(F,Gc,0)|0)!=0:0){u=ce;v=fe;n=m;m=t;ee=1317;break a}B=v+(H*40|0)+12|0;x=v+(I*40|0)+12|0;w=(c[x>>2]|0)+(c[B>>2]|0)|0;if((w|0)>(c[wb>>2]|0)){q=t;ee=1316;break c}n=(J|0)==(I|0);if(ah(r,w+2|0,n&1)|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}s=v+(J*40|0)+8|0;b[s>>1]=e[s>>1]&48640|2;z=v+(J*40|0)+16|0;if(!n)gw(c[z>>2]|0,c[v+(I*40|0)+16>>2]|0,c[x>>2]|0)|0;gw((c[z>>2]|0)+(c[x>>2]|0)|0,c[v+(H*40|0)+16>>2]|0,c[B>>2]|0)|0;a[(c[z>>2]|0)+w>>0]=0;a[(c[z>>2]|0)+(w+1)>>0]=0;b[s>>1]=e[s>>1]|512;c[v+(J*40|0)+12>>2]=w;a[v+(J*40|0)+10>>0]=Gc;Q=v;w=o;R=T;S=U;n=p;break}case 112:{ee=0;K=c[o+(n*20|0)+4>>2]|0;L=v+(K*40|0)|0;Q=_l(L)|0;J=c[o+(n*20|0)+8>>2]|0;O=v+(J*40|0)|0;R=_l(O)|0;S=c[o+(n*20|0)+12>>2]|0;r=v+(S*40|0)|0;r:do if(!((b[v+(J*40|0)+8>>1]|b[v+(K*40|0)+8>>1])&1)){s:do if(!((Q&4&R)<<16>>16))J=0;else{p=L;z=c[p>>2]|0;p=c[p+4>>2]|0;D=O;w=c[D>>2]|0;D=c[D+4>>2]|0;G=d[P>>0]|0;t:do if((G|0)==89){if((p|0)>-1|(p|0)==-1&z>>>0>4294967295){K=$v(-1,2147483647,w|0,D|0)|0;J=C;if(((D|0)>0|(D|0)==0&w>>>0>0)&((J|0)<(p|0)|(J|0)==(p|0)&K>>>0<z>>>0)){J=1;break s}}else if((D|0)<0?(J=$v(1,-2147483648,w|0,D|0)|0,I=C,K=fw(z|0,p|0,1,0)|0,s=C,(I|0)>(s|0)|(I|0)==(s|0)&J>>>0>K>>>0):0){J=1;break s}w=fw(w|0,D|0,z|0,p|0)|0;p=C}else if((G|0)==90){if((z|0)==0&(p|0)==-2147483648){if((D|0)>-1|(D|0)==-1&w>>>0>4294967295){J=1;break s}p=D^-2147483648;break}if((p|0)<0|(p|0)==0&z>>>0<1){K=$v(0,0,z|0,p|0)|0;s=C;J=$v(-1,2147483647,w|0,D|0)|0;I=C;if(((D|0)>0|(D|0)==0&w>>>0>0)&((I|0)<(s|0)|(I|0)==(s|0)&J>>>0<K>>>0)){J=1;break s}}else if((D|0)<0?(J=$v(1,-2147483648,w|0,D|0)|0,I=C,K=$v(1,0,z|0,p|0)|0,s=C,(I|0)>(s|0)|(I|0)==(s|0)&J>>>0>K>>>0):0){J=1;break s}w=$v(w|0,D|0,z|0,p|0)|0;p=C}else if((G|0)==91){J=mw(w|0,D|0,0,1)|0;s=C;F=nw(w|0,D|0,0,1)|0;G=C;I=mw(z|0,p|0,0,1)|0;x=C;H=nw(z|0,p|0,0,1)|0;K=C;E=fw(w|0,D|0,-1,0)|0;le=C;B=fw(z|0,p|0,-1,0)|0;me=C;B=me>>>0<1|(me|0)==1&B>>>0<4294967295;do if(le>>>0<1|(le|0)==1&E>>>0<4294967295)if(B){w=ow(w|0,D|0,z|0,p|0)|0;p=C;break t}else{E=ow(I|0,x|0,F|0,G|0)|0;D=C;break}else{if(!B){J=1;break s}E=ow(H|0,K|0,J|0,s|0)|0;D=C}while(0);J=fw(E|0,D|0,-2147483648,0)|0;s=C;if(s>>>0>0|(s|0)==0&J>>>0>4294967295){J=1;break s}G=ow(H|0,K|0,F|0,G|0)|0;F=C;if((F|0)>-1|(F|0)==-1&G>>>0>4294967295){K=$v(-1,2147483647,0,E|0)|0;J=C;if(((D|0)>0|(D|0)==0&E>>>0>0)&((J|0)<(F|0)|(J|0)==(F|0)&K>>>0<G>>>0)){J=1;break s}}else if((D|0)<0?(J=$v(1,-2147483648,0,E|0)|0,p=C,K=fw(G|0,F|0,1,0)|0,s=C,(p|0)>(s|0)|(p|0)==(s|0)&J>>>0>K>>>0):0){J=1;break s}w=fw(0,E|0,G|0,F|0)|0;p=C}else if((G|0)==92){if((z|0)==0&(p|0)==0)break r;if((z|0)==-1&(p|0)==-1&((w|0)==0&(D|0)==-2147483648)){J=1;break s}w=mw(w|0,D|0,z|0,p|0)|0;p=C}else{if((z|0)==-1){if((p|0)==-1){z=1;p=0}}else if((z|0)==0?(p|0)==0:0)break r;w=nw(w|0,D|0,z|0,p|0)|0;p=C}while(0);Q=r;c[Q>>2]=w;c[Q+4>>2]=p;Q=v+(S*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|4;Q=v;w=o;R=T;S=U;break q}while(0);A=+Qg(L);y=+Qg(O);z=d[P>>0]|0;if((z|0)==89)y=A+y;else if((z|0)==90)y=y-A;else if((z|0)==91)y=A*y;else if((z|0)==92){if(A==0.0)break;y=y/A}else{B=~~A>>>0;z=+N(A)>=1.0?(A>0.0?~~+$(+M(A/4294967296.0),4294967295.0)>>>0:~~+Z((A-+(~~A>>>0))/4294967296.0)>>>0):0;F=~~y>>>0;G=+N(y)>=1.0?(y>0.0?~~+$(+M(y/4294967296.0),4294967295.0)>>>0:~~+Z((y-+(~~y>>>0))/4294967296.0)>>>0):0;if(!B){if(!z)break}else if((B|0)==-1?(z|0)==-1:0){B=1;z=0}P=nw(F|0,G|0,B|0,z|0)|0;y=+(P>>>0)+4294967296.0*+(C|0)}h[ge>>3]=y;h[Pd>>3]=+h[ge>>3];if(!(+h[ge>>3]!=+h[Pd>>3])){h[r>>3]=y;S=v+(S*40|0)+8|0;b[S>>1]=e[S>>1]&48640|8;if(((R|Q)&8)!=0|J<<24>>24!=0){Q=v;w=o;R=T;S=U;break q}$l(r);Q=v;w=o;R=T;S=U;break q}}while(0);p=v+(S*40|0)+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;Q=v;w=o;R=T;S=U;break}else{rg(r);Q=v;w=o;R=T;S=U;break}}case 166:{ee=0;p=c[o+(n*20|0)+4>>2]|0;if(p){r=v+(p*40|0)|0;p=v+(p*40|0)+8|0;if(!(b[p>>1]&9312)){Q=r;c[Q>>2]=0;c[Q+4>>2]=0;b[p>>1]=4;Q=v;w=o;R=T;S=U;r=G;break}else{Vg(r,0,0);Q=v;w=o;R=T;S=U;r=G;break}}else{Q=v;w=o;R=T;S=U;r=G}break}case 184:{ee=0;z=c[o+(n*20|0)+4>>2]|0;w=c[o+(n*20|0)+8>>2]|0;s=c[o+(n*20|0)+12>>2]|0;r=v+(s*40|0)|0;if((b[v+(w*40|0)+8>>1]|b[v+(z*40|0)+8>>1])&1){p=v+(s*40|0)+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;Q=v;w=o;R=T;S=U;break}else{rg(r);Q=v;w=o;R=T;S=U;break}}x=Rg(v+(w*40|0)|0)|0;J=C;G=Rg(v+(z*40|0)|0)|0;F=C;w=a[E>>0]|0;z=w&255;do if(w<<24>>24==86){x=G|x;p=F|J}else if(w<<24>>24!=85)if(!((G|0)==0&(F|0)==0)){if((F|0)<0){w=175-z&255;z=$v(0,0,G|0,F|0)|0;if((F|0)>-1|(F|0)==-1&G>>>0>4294967232){F=C;ee=194}}else{z=G;ee=194}if((ee|0)==194){ee=0;if(!((F|0)>0|(F|0)==0&z>>>0>63)){if(w<<24>>24==87){x=ew(x|0,J|0,z|0)|0;p=C;break}x=iw(x|0,J|0,z|0)|0;p=C;if((J|0)>=0)break;S=$v(64,0,z|0,F|0)|0;S=ew(-1,-1,S|0)|0;x=S|x;p=C|p;break}}if((J|0)>-1|(J|0)==-1&x>>>0>4294967295){x=0;p=0}else{p=(w<<24>>24!=87)<<31>>31;x=p;p=((p|0)<0)<<31>>31}}else p=J;else{x=G&x;p=F&J}while(0);Q=r;c[Q>>2]=x;c[Q+4>>2]=p;Q=v+(s*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|4;Q=v;w=o;R=T;S=U;break}case 202:{ee=0;w=c[o+(n*20|0)+4>>2]|0;Q=v+(w*40|0)|0;R=Rg(Q)|0;w=v+(w*40|0)+8|0;b[w>>1]=e[w>>1]&48640|4;w=c[o+(n*20|0)+8>>2]|0;w=fw(R|0,C|0,w|0,((w|0)<0)<<31>>31|0)|0;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;break}case 203:{ee=0;r=c[o+(n*20|0)+4>>2]|0;w=v+(r*40|0)+8|0;p=b[w>>1]|0;if(!(p&4)){bm(v+(r*40|0)|0,67,Gc);p=b[w>>1]|0;if(!(p&4)){B=c[o+(n*20|0)+8>>2]|0;if(!B){p=n;q=20;ee=1318;break c}Q=v;w=o;R=T;S=U;r=G;n=B+-1|0;break}}b[w>>1]=p&48640|4;Q=v;w=o;R=T;S=U;r=G;break}case 208:{ee=0;p=c[o+(n*20|0)+4>>2]|0;r=v+(p*40|0)+8|0;if(!(b[r>>1]&4)){Q=v;w=o;R=T;S=U;r=G}else{Q=v+(p*40|0)|0;h[Q>>3]=+Qg(Q);b[r>>1]=e[r>>1]&48640|8;Q=v;w=o;R=T;S=U;r=G}break}case 213:{ee=0;L=c[o+(p*20|0)+4>>2]|0;J=v+(L*40|0)|0;H=c[o+(p*20|0)+12>>2]|0;s=v+(H*40|0)|0;L=v+(L*40|0)+8|0;I=b[L>>1]|0;H=v+(H*40|0)+8|0;K=b[H>>1]|0;E=I&65535;w=K&65535;D=o+(p*20|0)+3|0;G=d[D>>0]|0;do if(!((K|I)&1)){G=G&71;if(G>>>0>66){if((E&14|0)==2){nh(J,0);x=b[H>>1]|0}else x=K;if((x&14)==2){nh(s,0);G=I;B=K}else{G=I;B=K}}else if((G|0)==66){if((E&2|0)!=0|(E&12|0)==0){F=K;G=I}else{Zl(J,Gc,1)|0;F=b[H>>1]|0;G=(e[L>>1]&65024|E&511)&65535}S=F&65535;if((S&2|0)!=0|(S&12|0)==0)B=K;else{Zl(s,Gc,1)|0;B=(e[H>>1]&65024|w&511)&65535}}else{G=I;B=K}if(b[L>>1]&16384){Ng(J)|0;G=G&49151}if(b[H>>1]&16384){Ng(s)|0;B=B&49151}if(a[ce>>0]|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}S=dm(s,J,c[o+(p*20|0)+16>>2]|0)|0;F=a[z>>0]|0;n=p;z=S}else{if(G&128){G=I;B=K;n=p;z=(I&1&K)<<16>>16!=0&(w&256|0)==0&1^1;break}if(G&32){r=c[o+(p*20|0)+8>>2]|0;Q=v+(r*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|1;Q=v;w=o;R=T;S=U;r=v+(r*40|0)|0;n=p;break q}if(!(G&16)){Q=v;w=o;R=T;S=U;n=p;break q}Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break q}while(0);switch(F&255|0){case 79:{z=(z|0)==0&1;break}case 78:{z=(z|0)!=0&1;break}case 82:{z=z>>>31;break}case 81:{z=(z|0)<1&1;break}case 80:{z=(z|0)>0&1;break}default:z=z>>>31^1}if(!(a[D>>0]&32)){if(z)n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{S=c[o+(n*20|0)+8>>2]|0;r=v+(S*40|0)|0;S=v+(S*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;S=r;c[S>>2]=z;c[S+4>>2]=0}b[L>>1]=G;b[H>>1]=B;Q=v;w=o;R=T;S=U;break}case 248:{ee=0;Q=v;w=o;R=c[o+(n*20|0)+16>>2]|0;S=U;break}case 249:{ee=0;s=(a[o+(n*20|0)+3>>0]&1)==0?0:T;D=c[o+(n*20|0)+12>>2]|0;E=c[o+(n*20|0)+16>>2]|0;F=c[o+(n*20|0)+4>>2]|0;G=c[o+(n*20|0)+8>>2]|0;if((D|0)>0){w=(s|0)==0;p=E+16|0;B=0;while(1){if(w)x=B;else x=c[s+(B<<2)>>2]|0;z=a[(c[p>>2]|0)+B>>0]|0;x=dm(v+((x+F|0)*40|0)|0,v+((x+G|0)*40|0)|0,c[E+(B<<2)+20>>2]|0)|0;B=B+1|0;if(x)break;if((B|0)>=(D|0)){Q=v;w=o;R=0;S=0;break q}}Q=v;w=o;R=0;S=z<<24>>24==0?x:0-x|0}else{Q=v;w=o;R=0;S=U}break}case 256:{ee=0;if((U|0)<0){Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+4>>2]|0)+-1|0;break}if(!U){Q=v;w=o;R=T;S=0;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break}else{Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+12>>2]|0)+-1|0;break}}case 261:{ee=0;p=c[o+(n*20|0)+4>>2]|0;if(!(b[v+(p*40|0)+8>>1]&1)){r=Rg(v+(p*40|0)|0)|0;r=(r|0)!=0|(C|0)!=0?3:0}else r=6;p=c[o+(n*20|0)+8>>2]|0;if(!(b[v+(p*40|0)+8>>1]&1)){p=Rg(v+(p*40|0)|0)|0;p=((p|0)!=0|(C|0)!=0)&1}else p=2;p=a[((a[z>>0]|0)==72?41680:41696)+(p+r)>>0]|0;r=c[o+(n*20|0)+12>>2]|0;G=v+(r*40|0)|0;if(p<<24>>24==2){Q=v+(r*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|1;Q=v;w=o;R=T;S=U;r=G;break}else{Q=G;c[Q>>2]=p&255;c[Q+4>>2]=0;Q=v+(r*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|4;Q=v;w=o;R=T;S=U;r=G;break}}case 268:{ee=0;p=c[o+(n*20|0)+4>>2]|0;r=c[o+(n*20|0)+8>>2]|0;G=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(!(b[r>>1]&9312))b[r>>1]=1;else rg(G);if(!(b[v+(p*40|0)+8>>1]&1)){b[r>>1]=4;w=Rg(v+(p*40|0)|0)|0;Q=G;c[Q>>2]=(w|0)==0&(C|0)==0&1;c[Q+4>>2]=0;Q=v;w=o;R=T;S=U;r=G}else{Q=v;w=o;R=T;S=U;r=G}break}case 273:{ee=0;p=c[o+(n*20|0)+4>>2]|0;r=c[o+(n*20|0)+8>>2]|0;G=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(!(b[r>>1]&9312))b[r>>1]=1;else rg(G);if(!(b[v+(p*40|0)+8>>1]&1)){b[r>>1]=4;w=Rg(v+(p*40|0)|0)|0;Q=G;c[Q>>2]=~w;c[Q+4>>2]=~C;Q=v;w=o;R=T;S=U;r=G}else{Q=v;w=o;R=T;S=U;r=G}break}case 278:{ee=0;p=(c[Eb>>2]|0)+(c[o+(n*20|0)+4>>2]|0)|0;if(!(a[p>>0]|0)){a[p>>0]=1;Q=v;w=o;R=T;S=U;break}else{Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}}case 281:{ee=0;p=c[o+(n*20|0)+4>>2]|0;if(!(b[v+(p*40|0)+8>>1]&1)){p=+Qg(v+(p*40|0)|0)!=0.0;p=(p^(a[z>>0]|0)==46)&1}else p=c[o+(n*20|0)+12>>2]|0;if(!p){Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 286:{ee=0;if(!(b[v+((c[o+(n*20|0)+4>>2]|0)*40|0)+8>>1]&1)){Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 288:{ee=0;if(!(b[v+((c[o+(n*20|0)+4>>2]|0)*40|0)+8>>1]&1)){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 290:{ee=0;R=c[o+(p*20|0)+8>>2]|0;x=c[o+(p*20|0)+12>>2]|0;B=v+(x*40|0)|0;Q=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;I=c[Q+80>>2]|0;w=c[Q>>2]|0;if(!(a[Q+26>>0]|0)){if((w|0)!=0?(a[w+73>>0]|0)!=1:0){Qd=fm(Q)|0;ee=295}}else{Qd=em(Q)|0;ee=295}if((ee|0)==295?(ee=0,(Qd|0)!=0):0){q=Qd;ee=1318;break c}J=Q+60|0;z=c[Xd>>2]|0;u:do if((c[J>>2]|0)==(z|0)){z=b[Q+22>>1]|0;if((z&65535|0)>(R|0))ee=350;else{F=Q+72|0;ee=318}}else{do if(a[Q+25>>0]|0){if(!w){G=c[Q+16>>2]|0;D=c[v+(G*40|0)+12>>2]|0;c[Q+68>>2]=D;c[Q+64>>2]=D;G=c[v+(G*40|0)+16>>2]|0;s=Q+76|0;c[s>>2]=G;break}n=v+(x*40|0)+8|0;if(!(b[n>>1]&9312)){b[n>>1]=1;break u}else{rg(B);break u}}else{if(!(a[Q+27>>0]&4)){gm(w,qd);F=e[w+40>>1]|0;G=c[w+32>>2]|0;c[Q+76>>2]=G;z=c[qd>>2]|0;c[Q+64>>2]=z}else{z=Q+64|0;hm(w,z);F=e[w+40>>1]|0;G=c[w+32>>2]|0;c[Q+76>>2]=G;z=c[z>>2]|0}c[Q+68>>2]=z>>>0>F>>>0?F:z;if(z>>>0>(c[wb>>2]|0)>>>0){q=t;ee=1316;break c}s=Q+76|0;z=c[Xd>>2]|0;D=F}while(0);c[J>>2]=z;z=a[G>>0]|0;if(z<<24>>24>-1){E=z&255;c[hd>>2]=E;G=1}else{G=im(G,hd)|0;E=c[hd>>2]|0}F=Q+72|0;c[F>>2]=G&255;b[Q+22>>1]=0;c[I>>2]=E;if(E>>>0>98307){q=t;ee=313;break c}if(E>>>0>(c[Q+64>>2]|0)>>>0){q=t;ee=313;break c}if(D>>>0<E>>>0){c[s>>2]=0;c[Q+68>>2]=0;z=0;ee=318}else{z=0;ee=318}}while(0);do if((ee|0)==318){ee=0;G=c[F>>2]|0;E=c[I>>2]|0;if(G>>>0<E>>>0){P=Q+76|0;D=c[P>>2]|0;if(!D){S=Gd+0|0;D=S+40|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));G=jm(w,0,c[I>>2]|0,((d[Q+27>>0]|0)>>>2&1^1)&255,Gd)|0;if(G){o=G;q=t;ee=1309;break c}z=Q+22|0;O=z;z=b[z>>1]|0;G=c[F>>2]|0;E=c[I>>2]|0;L=c[Gb>>2]|0}else{O=Q+22|0;L=D}s=z&65535;K=c[I+(s<<2)>>2]|0;c[hd>>2]=K;n=L+E|0;G=L+G|0;while(1){D=a[G>>0]|0;if(D<<24>>24>-1){J=D&255;c[Id>>2]=J;G=G+1|0}else{G=G+((im(G,Id)|0)&255)|0;J=c[Id>>2]|0}c[Q+(s<<2)+84>>2]=J;if(J>>>0>11)D=(J+-12|0)>>>1;else D=d[34336+J>>0]|0;J=K+D|0;c[hd>>2]=J;if(J>>>0<K>>>0){G=J;D=s;ee=331;break}D=s+1|0;c[I+(D<<2)>>2]=J;if((s|0)<(R|0)&G>>>0<n>>>0){K=J;s=D}else break}if((ee|0)==331){ee=0;J=G;G=L+(E+1)|0}b[O>>1]=D;c[F>>2]=G-L;if(!(c[P>>2]|0)){if(!((b[Hb>>1]&9312)==0&(c[Ib>>2]|0)==0))Mg(Gd);b[Hb>>1]=1}if(G>>>0>=n>>>0){if(G>>>0>n>>>0){q=t;ee=343;break c}if((J|0)==(c[Q+64>>2]|0))z=J;else{q=t;ee=343;break c}}else z=c[Q+64>>2]|0;if(J>>>0>z>>>0){q=t;ee=343;break c}z=b[O>>1]|0}if((z&65535|0)<=(R|0)){if((a[o+(p*20|0)+1>>0]|0)==-8){Vl(B,c[o+(p*20|0)+16>>2]|0,2048);n=v+(x*40|0)+8|0;break}n=v+(x*40|0)+8|0;if(!(b[n>>1]&9312)){b[n>>1]=1;break}else{rg(B);break}}else ee=350}while(0);if((ee|0)==350){ee=0;n=v+(x*40|0)+8|0;if(b[n>>1]&9312)rg(B);G=c[Q+(R<<2)+84>>2]|0;c[Id>>2]=G;do if((c[Q+68>>2]|0)>>>0<(c[I+(R+1<<2)>>2]|0)>>>0){S=a[o+(p*20|0)+3>>0]|0;if(!((S&255)>63?G>>>0>11&(G&1|0)==0|S<<24>>24<0:0)){if(G>>>0>11)z=(G+-12|0)>>>1;else z=d[34336+G>>0]|0;if(z){z=jm(w,c[I+(R<<2)>>2]|0,z,((d[Q+27>>0]|0)>>>2&1^1)&255,B)|0;if(z){o=z;q=t;ee=1309;break c}km(c[v+(x*40|0)+16>>2]|0,G,B)|0;b[n>>1]=e[n>>1]&61439;break}}km(G>>>0<14?qd:0,G,B)|0}else km((c[Q+76>>2]|0)+(c[I+(R<<2)>>2]|0)|0,G,B)|0;while(0);a[v+(x*40|0)+10>>0]=Gc}w=e[n>>1]|0;if((w&4096|0)!=0?(xc=v+(x*40|0)+16|0,yc=c[xc>>2]|0,(yc|0)!=0):0){s=c[v+(x*40|0)+12>>2]|0;if(bh(B,s+2|0)|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}gw(c[xc>>2]|0,yc|0,s|0)|0;a[(c[xc>>2]|0)+s>>0]=0;a[(c[xc>>2]|0)+(s+1)>>0]=0;b[n>>1]=w&18|512;Q=v;w=o;R=T;S=U;n=p}else{Q=v;w=o;R=T;S=U;n=p}break}case 368:{ee=0;s=c[o+(n*20|0)+16>>2]|0;p=a[s>>0]|0;if(!(p<<24>>24)){Q=v;w=o;R=T;S=U}else{w=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;while(1){s=s+1|0;bm(w,p,Gc);p=a[s>>0]|0;if(!(p<<24>>24)){Q=v;w=o;R=T;S=U;break}else w=w+40|0}}break}case 371:{ee=0;R=c[o+(p*20|0)+4>>2]|0;z=c[o+(p*20|0)+16>>2]|0;S=v+(R*40|0)|0;R=v+((R+-1+(c[o+(p*20|0)+8>>2]|0)|0)*40|0)|0;x=a[Jb>>0]|0;Q=c[o+(p*20|0)+12>>2]|0;r=v+(Q*40|0)|0;if(z){w=a[z>>0]|0;n=S;while(1){z=z+1|0;bm(n,w,Gc);w=a[z>>0]|0;if(!(w<<24>>24))break;else n=n+40|0}}L=(x&255)>3;J=0;s=0;O=0;n=0;I=R;while(1){K=b[I+8>>1]|0;F=K&65535;v:do if(!(F&1)){do if(!(F&4)){if(F&8){G=7;ee=388;break v}G=c[I+12>>2]|0;if(F&16384)G=(c[I>>2]|0)+G|0;G=(G<<1)+12|F>>>1&1}else{F=I;G=c[F>>2]|0;F=c[F+4>>2]|0;E=aw(G|0,F|0,63)|0;E=E^G;D=C^F;if(D>>>0<0|(D|0)==0&E>>>0<128){if(!((G&1|0)==(G|0)&0==(F|0)&L)){G=1;ee=388;break v}G=E+8|0;break}if(D>>>0<0|(D|0)==0&E>>>0<32768){G=2;ee=388;break v}if(D>>>0<0|(D|0)==0&E>>>0<8388608){G=3;ee=388;break v}if(D>>>0<0|(D|0)==0&E>>>0<2147483648){G=4;ee=388;break v}G=D>>>0<32768|(D|0)==32768&E>>>0<0?5:6;ee=388;break v}while(0);c[I+28>>2]=G;if(G>>>0>11){F=G;G=(G+-12|0)>>>1}else ee=391}else{G=0;ee=388}while(0);if((ee|0)==388){c[I+28>>2]=G;ee=391}if((ee|0)==391){ee=0;F=G;G=d[34336+G>>0]|0}do if(K&16384)if((J|0)==0&(s|0)==0){K=c[I>>2]|0;G=G-K|0;K=K+n|0;break}else{Ng(I)|0;K=n;break}else K=n;while(0);J=fw(G|0,((G|0)<0)<<31>>31|0,J|0,s|0)|0;s=C;if(F>>>0<128)G=1;else{E=0;G=0;do{G=G+1|0;F=iw(F|0,E|0,7)|0;E=C}while(((F|0)!=0|(E|0)!=0)&(G|0)<9)}G=G+O|0;I=I+-40|0;if(I>>>0<S>>>0){D=G;break}else{O=G;n=K}}if((D|0)<127)F=D+1|0;else{F=D;E=((D|0)<0)<<31>>31;G=0;do{G=G+1|0;F=iw(F|0,E|0,7)|0;E=C}while(((F|0)!=0|(E|0)!=0)&(G|0)<9);D=G+D|0;F=D;E=((D|0)<0)<<31>>31;z=0;do{z=z+1|0;F=iw(F|0,E|0,7)|0;E=C}while(((F|0)!=0|(E|0)!=0)&(z|0)<9);F=((G|0)<(z|0)&1)+D|0}G=((F|0)<0)<<31>>31;n=fw(F|0,G|0,J|0,s|0)|0;L=C;P=c[wb>>2]|0;O=((P|0)<0)<<31>>31;if((L|0)>(O|0)|(L|0)==(O|0)&n>>>0>P>>>0){q=t;ee=1316;break c}if(bh(r,n)|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}I=c[v+(Q*40|0)+16>>2]|0;if(F>>>0<128){a[I>>0]=F;s=1;J=S}else{s=(lm(I,F,G)|0)&255;J=S}while(1){E=c[J+28>>2]|0;if(E>>>0<128){a[I+s>>0]=E;G=1}else G=(lm(I+s|0,E,0)|0)&255;s=G+s|0;G=I+F|0;if(!(E>>>0<8&(E|0)!=0))if(E>>>0>11){z=c[J+12>>2]|0;gw(G|0,c[J+16>>2]|0,z|0)|0}else z=0;else{G=J;if(E>>>0>11)z=(E+-12|0)>>>1;else z=d[34336+E>>0]|0;D=c[G>>2]|0;G=c[G+4>>2]|0;E=z;while(1){E=E+-1|0;a[I+(E+F)>>0]=D;D=iw(D|0,G|0,8)|0;if(!E)break;else G=C}}J=J+40|0;if(J>>>0>R>>>0)break;else F=z+F|0}c[v+(Q*40|0)+12>>2]=n;n=v+(Q*40|0)+8|0;b[n>>1]=16;if(K){c[r>>2]=K;b[n>>1]=16400}a[v+(Q*40|0)+10>>0]=1;Q=v;w=o;R=T;S=U;n=p;break}case 446:{ee=0;if((c[Yd>>2]|0)>0){q=t;ee=447;break c}if(!s)w=0;else{p=s;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;w=p-s&1073741823}z=om(he,0,(c[Lb>>2]|0)+(c[Kb>>2]|0)|0)|0;if(z){p=n;q=z;ee=1318;break c}p=ih(he,w+33|0,0)|0;if(!p){Q=v;w=o;R=T;S=U}else{S=p+32|0;c[p>>2]=S;gw(S|0,s|0,w+1|0)|0;if(!(a[ae>>0]|0))c[Lb>>2]=(c[Lb>>2]|0)+1;else{a[ae>>0]=0;a[Pb>>0]=1}c[p+24>>2]=c[Mb>>2];c[Mb>>2]=p;Q=Nb;w=c[Q+4>>2]|0;R=p+8|0;c[R>>2]=c[Q>>2];c[R+4>>2]=w;R=Ob;w=c[R+4>>2]|0;Q=p+16|0;c[Q>>2]=c[R>>2];c[Q+4>>2]=w;Q=v;w=o;R=T;S=U}break}case 486:{c[Lb>>2]=(c[Lb>>2]|0)+-1;ee=488;break}case 525:{ee=0;sm(c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+4>>2]|0,c[o+(n*20|0)+12>>2]|0,Vc);w=c[Vc>>2]|0;Q=r;c[Q>>2]=w;c[Q+4>>2]=((w|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;break}case 558:{ee=0;r=tm(f,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+8>>2]|0,-1,1)|0;if(!r){u=ce;v=fe;n=m;m=t;ee=1317;break a}w=c[o+(p*20|0)+16>>2]|0;z=r+8|0;c[z>>2]=w;x=c[o+(p*20|0)+12>>2]|0;w=e[w+6>>1]<<2;n=w+148|0;s=ih(he,n,0)|0;if(!s){o=r;q=t;ee=560;break c}bw(s|0,0,n|0)|0;c[r+56>>2]=s;S=s+128|0;c[s+28>>2]=S;gw(S|0,c[z>>2]|0,w+20|0)|0;c[s+140>>2]=0;if(x)b[s+134>>1]=x;n=c[Td>>2]|0;r=c[(c[(c[n+4>>2]|0)+4>>2]|0)+32>>2]|0;c[s+12>>2]=r;a[s+59>>0]=1;a[s+57>>0]=0;c[s+24>>2]=he;c[s+72>>2]=s;if(((a[Xb>>0]|0)!=2?(Ac=c[2242]|0,c[s>>2]=_(Ac,r)|0,S=c[(c[n+12>>2]|0)+80>>2]|0,S=(S|0)<(Ac|0)?Ac:S,Ac=((r|0)<0)<<31>>31,S=ow(S|0,((S|0)<0)<<31>>31|0,r|0,Ac|0)|0,R=C,c[s+4>>2]=(R|0)<0|(R|0)==0&S>>>0<536870912?S:536870912,(c[2234]|0)==0):0)?(c[s+52>>2]=r,S=mg(r,Ac)|0,c[s+40>>2]=S,(S|0)==0):0){o=7;q=t;ee=1309;break c}else{Q=v;w=o;R=T;S=U;r=J;n=p}break}case 566:{ee=0;Q=(c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0)+40|0;S=Q;R=c[S>>2]|0;S=c[S+4>>2]|0;P=fw(R|0,S|0,1,0)|0;c[Q>>2]=P;c[Q+4>>2]=C;if((R|0)==0&(S|0)==0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 568:{ee=0;n=tm(f,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+12>>2]|0,-1,0)|0;if(!n){u=ce;v=fe;n=m;m=t;ee=1317;break a}a[n+25>>0]=1;c[n+16>>2]=c[o+(p*20|0)+8>>2];Q=n+27|0;a[Q>>0]=a[Q>>0]|4;Q=v;w=o;R=T;S=U;n=p;break}case 570:{ee=0;Q=o+(n*20|0)+4|0;xm(f,c[(c[Fb>>2]|0)+(c[Q>>2]<<2)>>2]|0);c[(c[Fb>>2]|0)+(c[Q>>2]<<2)>>2]=0;Q=v;w=o;R=T;S=U;break}case 571:{ee=0;J=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;a[J+25>>0]=0;if(!(a[J+27>>0]&4)){S=c[o+(n*20|0)+16>>2]|0;c[td>>2]=c[J+8>>2];b[_b>>1]=S;a[$b>>0]=(w<<1&2^2)+255;S=c[o+(n*20|0)+12>>2]|0;p=v+(S*40|0)|0;c[ac>>2]=p;if(b[v+(S*40|0)+8>>1]&16384)Ng(p)|0;z=ym(c[J>>2]|0,td,0,0,0,xd)|0;if(z){p=n;q=z;ee=1318;break c}}else{z=c[o+(n*20|0)+12>>2]|0;x=v+(z*40|0)|0;z=v+(z*40|0)+8|0;if((b[z>>1]&14)==2)nh(x,0);G=Rg(x)|0;F=C;z=e[z>>1]|0;do if(!(z&4)){if(!(z&8)){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break q}y=+h[x>>3];A=+(G>>>0)+4294967296.0*+(F|0);if(y<A){w=(w<<31>>31)+w|0;break}else{w=(y>A&(w&1|0)==0&1)+w|0;break}}while(0);z=ym(c[J>>2]|0,0,G,F,0,xd)|0;S=J+48|0;c[S>>2]=G;c[S+4>>2]=F;if(z){p=n;q=z;ee=1318;break c}}a[J+26>>0]=0;c[J+60>>2]=0;p=c[xd>>2]|0;do if((w|0)>63){if((p|0)>=0?!((p|0)==0&(w|0)==65):0){c[xd>>2]=0;Q=v;w=o;R=T;S=U;break q}c[xd>>2]=0;s=zm(c[J>>2]|0,xd)|0;if(!s)ee=593;else{p=n;q=s;ee=1318;break c}}else{if((p|0)<=0?!((p|0)==0&(w|0)==62):0){p=(a[(c[J>>2]|0)+73>>0]|0)!=1&1;c[xd>>2]=p;break}c[xd>>2]=0;s=Am(c[J>>2]|0,xd)|0;if(!s)ee=593;else{p=n;q=s;ee=1318;break c}}while(0);if((ee|0)==593){ee=0;p=c[xd>>2]|0}if(!p){Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 596:{ee=0;Q=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;a[Q+25>>0]=0;R=Rg(v+((c[o+(n*20|0)+8>>2]|0)*40|0)|0)|0;w=Q+48|0;c[w>>2]=R;c[w+4>>2]=C;a[Q+26>>0]=1;Q=v;w=o;R=T;S=U;break}case 597:{ee=0;K=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;w=c[o+(p*20|0)+12>>2]|0;G=v+(w*40|0)|0;c[ld>>2]=0;s=o+(p*20|0)+16|0;z=c[s>>2]|0;n=K+8|0;x=c[n>>2]|0;w:do if((z|0)>0){c[ud>>2]=x;z=z&65535;b[bc>>1]=z;c[cc>>2]=G;if(!(z<<16>>16))w=ud;else{w=G;x=0;while(1){if(b[w+(x*40|0)+8>>1]&16384){Ng(w+(x*40|0)|0)|0;z=b[bc>>1]|0}x=x+1|0;if((x|0)>=(z&65535|0)){w=ud;break w}w=c[cc>>2]|0}}}else{z=Bm(x,Pc,191,ld)|0;if(!z){u=ce;v=fe;n=m;m=t;ee=1317;break a}if(b[v+(w*40|0)+8>>1]&16384)Ng(G)|0;Cm(c[n>>2]|0,c[v+(w*40|0)+12>>2]|0,c[v+(w*40|0)+16>>2]|0,z);w=z}while(0);a[w+6>>0]=0;x:do if((a[I>>0]|0)==67?(Bc=b[w+4>>1]|0,Bc<<16>>16!=0):0){z=c[w+8>>2]|0;x=0;while(1){if(b[z+(x*40|0)+8>>1]&1)break;x=x+1|0;if((x|0)>=(Bc&65535|0)){J=p;n=p;break x}}J=p;n=(c[o+(p*20|0)+8>>2]|0)+-1|0}else{J=p;n=p}while(0);z=ym(c[K>>2]|0,w,0,0,0,yd)|0;if(!(c[s>>2]|0))ig(he,c[ld>>2]|0);if(z){p=n;o=z;q=t;ee=1309;break c}p=c[yd>>2]|0;c[K+12>>2]=p;p=(p|0)==0;a[K+25>>0]=p&1^1;a[K+26>>0]=0;c[K+60>>2]=0;if((a[I>>0]|0)==69){if(!p){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(J*20|0)+8>>2]|0)+-1|0;break}else{if(p){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(J*20|0)+8>>2]|0)+-1|0;break}}case 624:{ee=0;Q=(c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0)+40|0;w=Q;R=c[w>>2]|0;w=c[w+4>>2]|0;S=fw(R|0,w|0,1,0)|0;c[Q>>2]=S;c[Q+4>>2]=C;Q=r;c[Q>>2]=R;c[Q+4>>2]=w;Q=v;w=o;R=T;S=U;break}case 647:{ee=0;F=c[o+(n*20|0)+8>>2]|0;p=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;w=c[o+(n*20|0)+12>>2]|0;if(z<<24>>24==75){D=v+(w*40|0)|0;B=c[D>>2]|0;D=c[D+4>>2]|0}else{B=w;D=((w|0)<0)<<31>>31}E=o+(n*20|0)+3|0;G=a[E>>0]|0;if(G&1)c[rb>>2]=(c[rb>>2]|0)+1;if(G&2){m=je;c[m>>2]=B;c[m+4>>2]=D;m=B;l=D}z=b[v+(F*40|0)+8>>1]|0;if(z&1){c[v+(F*40|0)+16>>2]=0;c[v+(F*40|0)+12>>2]=0}if(!(G&16))x=0;else x=c[p+12>>2]|0;if(!(z&16384))z=0;else z=c[v+(F*40|0)>>2]|0;z=Em(c[p>>2]|0,0,B,D,c[v+(F*40|0)+16>>2]|0,c[v+(F*40|0)+12>>2]|0,z,(G&255)>>>3&1,x)|0;a[p+26>>0]=0;c[p+60>>2]=0;if(z){p=n;o=z;q=t;ee=1309;break c}w=c[dc>>2]|0;if((w|0)!=0?(Cc=c[o+(n*20|0)+16>>2]|0,(Cc|0)!=0):0){Zb[w&1](c[ec>>2]|0,(a[E>>0]&4)!=0?23:18,c[(c[Td>>2]|0)+(a[p+24>>0]<<4)>>2]|0,Cc,B,D);Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U}break}case 671:{ee=0;Q=c[rb>>2]|0;c[sb>>2]=Q;c[tb>>2]=(c[tb>>2]|0)+Q;c[rb>>2]=0;Q=v;w=o;R=T;S=U;break}case 672:{ee=0;G=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;F=c[o+(n*20|0)+12>>2]|0;E=c[o+(n*20|0)+16>>2]|0;w=c[G+56>>2]|0;x=w+32|0;z=c[x>>2]|0;G=c[G+8>>2]|0;if(!z){z=Bm(G,0,0,jd)|0;c[x>>2]=z;if(!z){p=n;o=7;q=t;ee=1309;break c}b[z+4>>1]=E}if(!(a[w+56>>0]|0)){w=c[w+36>>2]|0;x=w;w=w+8|0}else{S=c[w+20>>2]|0;w=c[(c[S+8>>2]|0)+4>>2]|0;S=c[S+12>>2]|0;x=S+(w*56|0)+20|0;w=c[S+(w*56|0)+32>>2]|0}Cm(G,c[x>>2]|0,w,z);y:do if((E|0)>0){w=c[z+8>>2]|0;p=0;while(1){if(b[w+(p*40|0)+8>>1]&1)break y;p=p+1|0;if((p|0)>=(E|0)){ee=682;break}}}else ee=682;while(0);if((ee|0)==682){ee=0;if(!(Gm(c[v+(F*40|0)+12>>2]|0,c[v+(F*40|0)+16>>2]|0,z,0)|0)){Q=v;w=o;R=T;S=U;break}}Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}case 700:{ee=0;b[r+8>>1]=1;Q=v;w=o;R=T;S=U;break}case 708:{ee=0;b[r+8>>1]=1;Q=v;w=o;R=T;S=U;break}case 711:{ee=0;p=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;a[p+25>>0]=1;c[p+60>>2]=0;p=c[p>>2]|0;if(!p){Q=v;w=o;R=T;S=U}else{Q=p+56|0;Sc(c[Q>>2]|0);c[Q>>2]=0;a[p+73>>0]=0;Q=v;w=o;R=T;S=U}break}case 801:{ee=0;p=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;r=c[p>>2]|0;s=J+8|0;b[s>>1]=1;if((a[r+73>>0]|0)!=1?(q=fm(p)|0,(q|0)!=0):0){p=n;ee=1318;break c}if(!(a[p+25>>0]|0)){p=Pd;c[p>>2]=0;c[p+4>>2]=0;gm(r,Pd);b[oc>>1]=0;c[qc>>2]=he;c[rc>>2]=0;p=jm(r,0,c[Pd>>2]|0,1,Yc)|0;do if(!p){p=c[sc>>2]|0;r=a[p>>0]|0;if(r<<24>>24>-1){z=r&255;c[nd>>2]=z}else{im(p,nd)|0;z=c[nd>>2]|0}if(!(z>>>0<3?1:(z|0)>(c[tc>>2]|0))){w=(c[sc>>2]|0)+(z+-1)|0;p=a[w>>0]|0;if(p<<24>>24>-1){p=p&255;c[Kd>>2]=p}else{im(w,Kd)|0;p=c[Kd>>2]|0}if(!((p+-1|0)>>>0>8|(p|0)==7)){if(p>>>0>11)w=(p+-12|0)>>>1;else w=d[34336+p>>0]|0;r=c[tc>>2]|0;if(r>>>0>=(w+z|0)>>>0){km((c[sc>>2]|0)+(r-w)|0,p,Nd)|0;p=Nd;w=c[p>>2]|0;p=c[p+4>>2]|0;if((b[oc>>1]&9312)==0&(c[rc>>2]|0)==0){B=0;break}Mg(Yc);B=0;break}}}if(!((b[oc>>1]&9312)==0&(c[rc>>2]|0)==0))Mg(Yc);c[ge>>2]=68698;c[ge+4>>2]=10788;Zc(11,13600,ge);B=11;w=0;p=0}else{B=p;w=0;p=0}while(0);if(B){p=n;q=B;ee=1318;break c}Q=J;c[Q>>2]=w;c[Q+4>>2]=p;b[s>>1]=4;Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}case 865:{ee=0;s=c[z>>2]|0;z=c[(c[Td>>2]|0)+(K<<4)+12>>2]|0;w=c[z+16>>2]|0;if(w)do{p=(c[w+8>>2]|0)+32|0;if((c[p>>2]|0)==(x|0))c[p>>2]=s;w=c[w>>2]|0}while((w|0)!=0);p=c[z+32>>2]|0;if(p)do{w=(c[p+8>>2]|0)+40|0;if((c[w>>2]|0)==(x|0))c[w>>2]=s;p=c[p>>2]|0}while((p|0)!=0);Q=v;w=o;R=T;S=U;t=K+1&255;break}case 878:{ee=0;Wm(he,r);Q=v;w=o;R=T;S=U;r=G;break}case 881:{ee=0;S=c[o+(n*20|0)+4>>2]|0;c[Wc>>2]=he;c[fa>>2]=S;c[ga>>2]=fe;r=c[o+(n*20|0)+16>>2]|0;c[ge>>2]=c[(c[Td>>2]|0)+(S<<4)>>2];c[ge+4>>2]=(S|0)==1?13184:13208;c[ge+8>>2]=r;r=qh(he,42048,ge)|0;if(!r){p=n;q=t;ee=882;break c}a[ha>>0]=1;c[ia>>2]=0;p=Me(he,r,22,Wc,0)|0;p=(p|0)==0?c[ia>>2]|0:p;ig(he,r);a[ha>>0]=0;if(!p){Q=v;w=o;R=T;S=U;r=G}else{o=p;p=n;q=t;ee=884;break c}break}case 886:{ee=0;gg(he,Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+8|0,c[o+(n*20|0)+16>>2]|0,0)|0);c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U;break}case 887:{ee=0;z=Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+24|0,c[o+(n*20|0)+16>>2]|0,0)|0;if(z){p=(c[z+12>>2]|0)+8|0;r=c[p>>2]|0;z:do if((r|0)==(z|0))c[p>>2]=c[z+20>>2];else{do{if(!r)break z;p=r+20|0;r=c[p>>2]|0}while((r|0)!=(z|0));c[p>>2]=c[z+20>>2]}while(0);Fk(he,z)}c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U;r=G;break}case 895:{ee=0;z=Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+40|0,c[o+(n*20|0)+16>>2]|0,0)|0;if(!z){Q=v;w=o;R=T;S=U}else{p=c[z+20>>2]|0;if((p|0)==(c[z+24>>2]|0)){p=Zm(p+8|0,c[z+4>>2]|0,ge)|0;if(!p)p=0;else p=c[p+8>>2]|0;s=p+64|0;while(1){S=c[s>>2]|0;p=S+32|0;if((S|0)==(z|0))break;else s=p}c[s>>2]=c[p>>2]}fg(he,z);c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U}break}case 903:{ee=0;K=c[o+(p*20|0)+8>>2]|0;n=ih(he,(K<<2)+4|0,0)|0;if(!n){u=ce;v=fe;n=m;m=t;ee=1317;break a}x=c[o+(p*20|0)+12>>2]|0;I=c[o+(p*20|0)+4>>2]|0;H=v+(I*40|0)|0;if((K|0)>0){z=0;do{S=Rg(v+((z+I|0)*40|0)|0)|0;c[n+(z<<2)>>2]=S;z=z+1|0}while((z|0)!=(K|0));z=K}else z=0;c[n+(z<<2)>>2]=0;F=c[(c[Td>>2]|0)+(d[o+(p*20|0)+3>>0]<<4)+4>>2]|0;P=v+(x*40|0)|0;S=c[P>>2]|0;O=c[F+4>>2]|0;c[O+4>>2]=c[F>>2];F=c[O>>2]|0;s=c[(c[F+204>>2]|0)+12>>2]|0;c[Pd>>2]=O;c[ja>>2]=F;F=c[O+44>>2]|0;c[ka>>2]=F;c[la>>2]=S;c[ma+0>>2]=0;c[ma+4>>2]=0;c[ma+8>>2]=0;c[ma+12>>2]=0;c[ma+16>>2]=0;do if(!F){x=0;z=0}else{G=(F>>>3)+1|0;E=mg(G,0)|0;if(!E){c[pa>>2]=0;x=0;z=1;break}bw(E|0,0,G|0)|0;c[pa>>2]=E;L=O+32|0;G=(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0)+1|0;if(G>>>0<=F>>>0){S=E+(G>>>3)|0;a[S>>0]=d[S>>0]|1<<(G&7)}c[ra>>2]=Kd;c[sa>>2]=Kd;c[qa>>2]=0;c[ta>>2]=0;c[ua>>2]=100;c[va>>2]=1e9;a[xa>>0]=0;a[wa>>0]=2;c[oa>>2]=43592;z=c[(c[O+12>>2]|0)+56>>2]|0;_m(Pd,1,d[z+33>>0]<<16|d[z+32>>0]<<24|d[z+34>>0]<<8|d[z+35>>0],d[z+37>>0]<<16|d[z+36>>0]<<24|d[z+38>>0]<<8|d[z+39>>0]);c[oa>>2]=0;z=c[la>>2]|0;if(!((K|0)<1|(z|0)==0)){D=O+17|0;E=0;do{F=n+(E<<2)|0;G=c[F>>2]|0;if(G){if((a[D>>0]|0)!=0&(G|0)>1){$m(Pd,G,1,0);G=c[F>>2]|0}c[oa>>2]=43608;an(Pd,G,0,0)|0;c[oa>>2]=0;z=c[la>>2]|0}E=E+1|0}while(!((E|0)>=(K|0)|(z|0)==0))}if(!((c[ka>>2]|0)==0|(z|0)==0)){B=O+17|0;z=O+36|0;J=1;do{E=J>>>3;G=a[(c[pa>>2]|0)+E>>0]|0;D=1<<(J&7);do if(!(G&255&D)){if(J>>>0<2)F=0;else{F=J+-2|0;F=F-((F>>>0)%(((((c[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;F=((F+1|0)==(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0|0)?3:2)+F|0}if((F|0)==(J|0)?(a[B>>0]|0)!=0:0)break;c[ge>>2]=J;bn(Pd,43632,ge);G=a[(c[pa>>2]|0)+E>>0]|0}while(0);do if(G&255&D){if(J>>>0<2)G=0;else{G=J+-2|0;G=G-((G>>>0)%(((((c[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;G=((G+1|0)==(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0|0)?3:2)+G|0}if((G|0)!=(J|0))break;if(!(a[B>>0]|0))break;c[ge>>2]=J;bn(Pd,43656,ge)}while(0);J=J+1|0}while(!((c[la>>2]|0)==0?1:J>>>0>(c[ka>>2]|0)>>>0))}z=c[(c[(c[O>>2]|0)+204>>2]|0)+12>>2]|0;if((s|0)!=(z|0)){c[ge>>2]=s;c[ge+4>>2]=z;bn(Pd,43696,ge)}Sc(c[pa>>2]|0);if(c[na>>2]|0){cn(qa);x=0;z=(c[ma>>2]|0)+1|0;break}z=c[ma>>2]|0;if(!z)cn(qa);x=pg(qa)|0}while(0);ig(he,n);S=P;S=$v(c[S>>2]|0,c[S+4>>2]|0,z|0,((z|0)<0)<<31>>31|0)|0;w=P;c[w>>2]=S;c[w+4>>2]=C;w=v+(I*40|0)+8|0;if(!(b[w>>1]&9312))b[w>>1]=1;else rg(H);if(z){if(!x){u=ce;v=fe;n=m;m=t;ee=1317;break a}Tg(H,x,-1,1,1)|0}Ul(H,ub)|0;Q=v;w=o;R=T;S=U;n=p;break}case 947:{ee=0;s=c[o+(p*20|0)+4>>2]|0;n=v+(s*40|0)|0;r=c[o+(p*20|0)+8>>2]|0;s=v+(s*40|0)+8|0;if((b[s>>1]&32)==0?(dn(n),(b[s>>1]&32)==0):0){u=ce;v=fe;n=m;m=t;ee=1317;break a}Q=v+(r*40|0)|0;en(c[n>>2]|0,c[Q>>2]|0,c[Q+4>>2]|0);Q=v;w=o;R=T;S=U;r=G;n=p;break}case 966:{ee=0;w=c[o+(p*20|0)+4>>2]|0;P=v+(w*40|0)|0;O=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;L=c[o+(p*20|0)+16>>2]|0;w=v+(w*40|0)+8|0;if((b[w>>1]&32)==0?(dn(P),(b[w>>1]&32)==0):0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if(L){J=c[P>>2]|0;H=O;K=c[H>>2]|0;H=c[H+4>>2]|0;s=J+28|0;if((c[s>>2]|0)!=(L|0)){n=J+8|0;G=c[n>>2]|0;if(G){F=J+20|0;I=J+26|0;if(!(b[I>>1]&1))G=fn(G)|0;E=c[F>>2]|0;A:do if(!E){id=G;od=F;ee=978}else{while(1){F=E+12|0;D=c[F>>2]|0;if(!D)break;B=E+8|0;gn(D,ge,Pd);c[F>>2]=0;G=hn(c[ge>>2]|0,G)|0;E=c[B>>2]|0;if(!E){id=G;od=B;ee=978;break A}}c[F>>2]=jn(G)|0}while(0);if((ee|0)==978?(ee=0,Hc=kn(J)|0,c[od>>2]=Hc,(Hc|0)!=0):0){S=Hc;c[S>>2]=0;c[S+4>>2]=0;c[Hc+8>>2]=0;c[Hc+12>>2]=jn(id)|0}c[n>>2]=0;c[J+12>>2]=0;b[I>>1]=e[I>>1]|1}c[s>>2]=L}z=c[J+20>>2]|0;B:do if(z){C:while(1){x=c[z+12>>2]|0;if(x)do{w=x;B=c[w>>2]|0;w=c[w+4>>2]|0;if((w|0)<(H|0)|(w|0)==(H|0)&B>>>0<K>>>0)x=x+8|0;else{if(!((w|0)>(H|0)|(w|0)==(H|0)&B>>>0>K>>>0))break C;x=x+12|0}x=c[x>>2]|0}while((x|0)!=0);z=c[z+8>>2]|0;if(!z)break B}Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break q}while(0);if((L|0)>-1)z=O;else{Q=v;w=o;R=T;S=U;n=p;break}}else z=O;Q=z;en(c[P>>2]|0,c[Q>>2]|0,c[Q+4>>2]|0);Q=v;w=o;R=T;S=U;n=p;break}case 993:{ee=0;s=c[o+(n*20|0)+16>>2]|0;F=c[o+(n*20|0)+12>>2]|0;J=v+(F*40|0)|0;if((a[o+(n*20|0)+3>>0]|0)!=0?(Ic=c[s+20>>2]|0,kd=c[pb>>2]|0,(kd|0)!=0):0){w=kd;while(1){if((c[w+28>>2]|0)==(Ic|0)){Q=v;w=o;R=T;S=U;break q}w=c[w+4>>2]|0;if(!w){p=n;break}}}else p=n;n=c[qb>>2]|0;if((n|0)>=(c[ya>>2]|0)){q=t;ee=998;break c}B=v+(F*40|0)+8|0;if(!(b[B>>1]&64)){z=s+12|0;x=c[z>>2]|0;w=x+(c[s+8>>2]|0)|0;o=s+16|0;x=(x<<2)+80+(c[o>>2]|0)+(w*40|0)|0;G=ih(he,x,((x|0)<0)<<31>>31)|0;if(!G){u=ce;v=fe;n=m;m=t;ee=1317;break a}bw(G|0,0,x|0)|0;if(!((b[B>>1]&9312)==0?(c[v+(F*40|0)+24>>2]|0)==0:0))Mg(J);b[B>>1]=64;c[J>>2]=G;c[G>>2]=f;c[G+60>>2]=w;c[G+64>>2]=c[z>>2];c[G+44>>2]=p;c[G+16>>2]=c[Kc>>2];c[G+52>>2]=c[za>>2];c[G+24>>2]=c[Fb>>2];c[G+40>>2]=c[Aa>>2];c[G+8>>2]=c[wc>>2];c[G+48>>2]=c[Ba>>2];c[G+28>>2]=c[s+20>>2];c[G+20>>2]=c[Eb>>2];c[G+56>>2]=c[Ca>>2];v=G+80|0;n=v+(w*40|0)|0;if((v|0)!=(n|0))do{b[v+8>>1]=128;c[v+32>>2]=he;v=v+40|0}while((v|0)!=(n|0));n=c[qb>>2]|0;v=G}else{o=s+16|0;v=c[J>>2]|0}c[qb>>2]=n+1;c[v+4>>2]=c[pb>>2];Q=v+32|0;c[Q>>2]=m;c[Q+4>>2]=l;c[v+68>>2]=c[rb>>2];c[v+72>>2]=c[(c[f>>2]|0)+80>>2];c[rb>>2]=0;c[pb>>2]=v;Q=v+40|0;c[Kc>>2]=Q;R=c[v+60>>2]|0;c[za>>2]=R;S=c[v+64>>2]&65535;c[Aa>>2]=S;R=Q+((R+1|0)*40|0)|0;c[Fb>>2]=R;w=c[s>>2]|0;c[wc>>2]=w;c[Ba>>2]=c[s+4>>2];S=R+(S<<2)|0;c[Eb>>2]=S;R=c[o>>2]|0;c[Ca>>2]=R;bw(S|0,0,R|0)|0;R=T;S=U;n=-1;break}case 1009:{ee=0;Q=c[pb>>2]|0;Vl(r,(c[Q+16>>2]|0)+(((c[(c[Q+8>>2]|0)+((c[Q+44>>2]|0)*20|0)+4>>2]|0)+(c[o+(n*20|0)+4>>2]|0)|0)*40|0)|0,4096);Q=v;w=o;R=T;S=U;break}case 1010:{ee=0;if(c[Qb>>2]&16777216){w=c[o+(n*20|0)+8>>2]|0;Q=Ob;w=fw(c[Q>>2]|0,c[Q+4>>2]|0,w|0,((w|0)<0)<<31>>31|0)|0;Q=Ob;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}p=c[o+(n*20|0)+8>>2]|0;r=((p|0)<0)<<31>>31;if(!(c[o+(n*20|0)+4>>2]|0)){w=Wd;w=fw(c[w>>2]|0,c[w+4>>2]|0,p|0,r|0)|0;Q=Wd;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}else{w=Nb;w=fw(c[w>>2]|0,c[w+4>>2]|0,p|0,r|0)|0;Q=Nb;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}}case 1015:{ee=0;if(!(c[o+(n*20|0)+4>>2]|0)){S=Wd;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}S=Ob;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}else{S=Nb;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}S=Ob;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}}case 1022:{ee=0;p=c[pb>>2]|0;if(!p)s=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;else{while(1){r=c[p+4>>2]|0;if(!r)break;else p=r}s=(c[p+16>>2]|0)+((c[o+(n*20|0)+4>>2]|0)*40|0)|0}R=Rg(s)|0;S=s;c[S>>2]=R;c[S+4>>2]=C;S=s+8|0;b[S>>1]=e[S>>1]&48640|4;S=c[o+(n*20|0)+8>>2]|0;R=v+(S*40|0)|0;p=Rg(R)|0;r=C;c[R>>2]=p;c[R+4>>2]=r;S=v+(S*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;S=s;R=c[S+4>>2]|0;if((R|0)<(r|0)|((R|0)==(r|0)?(c[S>>2]|0)>>>0<p>>>0:0)){Q=s;c[Q>>2]=p;c[Q+4>>2]=r;Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}case 1028:{ee=0;S=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;R=c[S+4>>2]|0;if((R|0)>0|(R|0)==0&(c[S>>2]|0)>>>0>0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1030:{ee=0;Q=c[o+(n*20|0)+12>>2]|0;R=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;S=R;Q=fw(c[S>>2]|0,c[S+4>>2]|0,Q|0,((Q|0)<0)<<31>>31|0)|0;S=C;c[R>>2]=Q;c[R+4>>2]=S;if((S|0)<0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1032:{ee=0;p=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;s=p;r=c[s>>2]|0;s=c[s+4>>2]|0;if((r|0)==0&(s|0)==0){Q=v;w=o;R=T;S=U;r=G}else{w=c[o+(n*20|0)+12>>2]|0;w=fw(w|0,((w|0)<0)<<31>>31|0,r|0,s|0)|0;Q=p;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 1034:{ee=0;Q=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;R=Q;R=fw(c[R>>2]|0,c[R+4>>2]|0,-1,-1)|0;S=C;c[Q>>2]=R;c[Q+4>>2]=S;if((R|0)==0&(S|0)==0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1036:{ee=0;Q=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;S=Q;R=c[S>>2]|0;S=c[S+4>>2]|0;P=fw(R|0,S|0,1,0)|0;c[Q>>2]=P;c[Q+4>>2]=C;if((R|0)==0&(S|0)==0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1157:{ee=0;Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break}case 1158:{ee=0;if(c[o+(n*20|0)+4>>2]|0){b[Ud>>1]=b[Ud>>1]|8;Q=v;w=o;R=T;S=U;break}p=c[Sb>>2]|0;if(!p){Q=v;w=o;R=T;S=U}else{do{S=p+88|0;b[S>>1]=b[S>>1]|8;p=c[p+52>>2]|0}while((p|0)!=0);Q=v;w=o;R=T;S=U}break}case 1166:{ee=0;G=(c[s>>2]|0)+72|0;p=c[G>>2]|0;D:do if(p){while(1){if((c[p+4>>2]|0)==(x|0)?(c[p>>2]|0)==(z|0):0)break;p=c[p+12>>2]|0;if(!p){ee=1171;break D}}if(!p)ee=1171}else ee=1171;while(0);if((ee|0)==1171){ee=0;p=mg(16,0)|0;if(!p){p=n;o=7;q=t;ee=1309;break c}S=p+0|0;D=S+12|0;do{a[S>>0]=0;S=S+1|0}while((S|0)<(D|0));c[p+4>>2]=x;c[p>>2]=z;c[p+12>>2]=c[G>>2];c[G>>2]=p}p=p+8|0;if((d[p>>0]|0)<(w&255)){a[p>>0]=w;Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U}break}case 1213:{ee=0;c[pd>>2]=0;w=c[(c[o+(n*20|0)+16>>2]|0)+8>>2]|0;if(!w){p=n;o=6;q=t;ee=1309;break c}s=c[w>>2]|0;if(!s){p=n;o=6;q=t;ee=1309;break c}z=nc[c[s+24>>2]&127](w,pd)|0;Im(f,w);if(z){p=n;o=z;q=t;ee=1309;break c}c[c[pd>>2]>>2]=w;p=tm(f,c[o+(n*20|0)+4>>2]|0,0,-1,0)|0;if(!p){a[ce>>0]=1;hc[c[s+28>>2]&127](c[pd>>2]|0)|0;Q=v;w=o;R=T;S=U;break}else{c[p+32>>2]=c[pd>>2];Q=w+4|0;c[Q>>2]=(c[Q>>2]|0)+1;Q=v;w=o;R=T;S=U;break}}case 1226:{ee=0;p=v+(z*40|0)+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;Q=v;w=o;R=T;S=U;break}else{rg(x);Q=v;w=o;R=T;S=U;break}}case 1257:{ee=0;Q=r;c[Q>>2]=c[(c[(c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+4>>2]|0)+4>>2]|0)+44>>2];c[Q+4>>2]=0;Q=v;w=o;R=T;S=U;break}case 1258:{ee=0;w=c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+4>>2]|0;p=c[o+(n*20|0)+12>>2]|0;r=c[w+4>>2]|0;if(!p)p=0;else{S=c[r+44>>2]|0;p=S>>>0<p>>>0?p:S}c[r+4>>2]=c[w>>2];r=(c[r>>2]|0)+156|0;if((p|0)>0)c[r>>2]=p;else p=c[r>>2]|0;Q=G;c[Q>>2]=p;c[Q+4>>2]=((p|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;r=G;break}case 1264:{ee=0;n=c[o+(p*20|0)+8>>2]|0;n=(n|0)==0?p:n+-1|0;if((c[Pa>>2]|0)!=0?(b[Ud>>1]&512)==0:0){p=c[o+(p*20|0)+16>>2]|0;if(!p){p=c[_d>>2]|0;if(!p){Q=v;w=o;R=T;S=U;r=J;break}}c[Pd>>2]=0;r=c[f>>2]|0;z=c[r+88>>2]|0;c[cb>>2]=Kd;c[db>>2]=Kd;c[eb>>2]=0;c[fb>>2]=100;c[gb>>2]=z;a[hb>>0]=1;a[ib>>0]=0;c[nd>>2]=r;z=a[p>>0]|0;w=z<<24>>24==0;E:do if((c[r+160>>2]|0)>1){if(!w){w=z;while(1){r=p;do{r=r+1|0;if(w<<24>>24==10)break;w=a[r>>0]|0}while(w<<24>>24!=0);Ok(nd,42288,3);Ok(nd,p,r-p|0);w=a[r>>0]|0;if(!(w<<24>>24))break;else p=r}}}else if(!w){s=r+62|0;w=z;K=1;do{F:do if(!(w<<24>>24)){x=0;w=0}else{z=p;w=0;while(1){x=yn(z,ge)|0;if((c[ge>>2]|0)==135)break F;w=x+w|0;z=z+x|0;if(!(a[z>>0]|0)){x=0;break}}}while(0);Ok(nd,p,w);z=p+w|0;if(!x)break E;do if((a[z>>0]|0)==63)if((x|0)>1){zn(p+(w+1)|0,Pd)|0;z=c[Pd>>2]|0;break}else{c[Pd>>2]=K;z=K;break}else{z=mh(f,z,x)|0;c[Pd>>2]=z}while(0);p=p+(w+x)|0;K=z+1|0;G=z+-1|0;F=c[xb>>2]|0;z=F+(G*40|0)|0;x=e[F+(G*40|0)+8>>1]|0;do if(!(x&1)){if(x&4){Q=z;R=c[Q+4>>2]|0;S=ge;c[S>>2]=c[Q>>2];c[S+4>>2]=R;An(nd,0,19920,ge);break}if(x&8){h[k>>3]=+h[z>>3];c[ge>>2]=c[k>>2];c[ge+4>>2]=c[k+4>>2];An(nd,0,20272,ge);break}if(!(x&2)){if(x&16384){c[ge>>2]=c[z>>2];An(nd,0,42304,ge);break}Ok(nd,42320,2);B=c[F+(G*40|0)+12>>2]|0;if((B|0)>0){z=F+(G*40|0)+16|0;x=0;do{c[ge>>2]=d[(c[z>>2]|0)+x>>0];An(nd,0,42328,ge);x=x+1|0}while((x|0)!=(B|0))}Ok(nd,42336,1);break}else{B=a[s>>0]|0;if(B<<24>>24==1){S=c[F+(G*40|0)+16>>2]|0;c[ge>>2]=c[F+(G*40|0)+12>>2];c[ge+4>>2]=S;An(nd,0,42296,ge);break}S=Ld+0|0;D=S+40|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));c[kb>>2]=r;Tg(Ld,c[F+(G*40|0)+16>>2]|0,c[F+(G*40|0)+12>>2]|0,B,0)|0;S=c[lb>>2]|0;if(!((S&2|0)==0|(S&16711680|0)==65536))xn(Ld,1)|0;S=c[nb>>2]|0;c[ge>>2]=c[mb>>2];c[ge+4>>2]=S;An(nd,0,42296,ge);if((b[lb>>1]&9312)==0&(c[ob>>2]|0)==0)break;Mg(Ld);break}}else Ok(nd,20304,4);while(0);w=a[p>>0]|0}while(w<<24>>24!=0)}while(0);Q=pg(nd)|0;fc[c[Pa>>2]&15](c[jb>>2]|0,Q);ig(he,Q);Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}}if((ee|0)==28){ee=0;v=o+(n*20|0)+4|0;p=c[v>>2]|0;if(p){u=v;ee=34;break}v=c[pb>>2]|0;if(!v){ee=30;break}c[pb>>2]=c[v+4>>2];c[qb>>2]=(c[qb>>2]|0)+-1;l=c[rb>>2]|0;c[sb>>2]=l;c[tb>>2]=(c[tb>>2]|0)+l;v=Tl(v)|0;l=je;w=c[wc>>2]|0;if((c[o+(n*20|0)+8>>2]|0)==4)n=(c[w+(v*20|0)+8>>2]|0)+-1|0;else n=v;m=c[l>>2]|0;l=c[l+4>>2]|0;Q=c[Kc>>2]|0;R=T;S=U}else if((ee|0)==488){ee=0;w=om(he,z,x)|0;if(!w){Q=v;w=o;R=T;S=U}else{p=n;q=w;ee=1318;break}}v=Q;o=w;T=R;U=S;p=n+1|0}switch(ee|0){case 30:{c[ie>>2]=p;a[be>>0]=c[o+(n*20|0)+8>>2];c[de>>2]=n;ee=41;break}case 34:{c[ie>>2]=p;a[be>>0]=c[o+(n*20|0)+8>>2];c[de>>2]=n;p=a[o+(n*20|0)+3>>0]|0;if(!(p<<24>>24)){o=c[o+(n*20|0)+16>>2]|0;if(!o){o=0;ee=39}else{c[ge>>2]=o;$g(fe,he,10344,ge)}}else{q=c[41536+((p&255)+-1<<2)>>2]|0;p=c[o+(n*20|0)+16>>2]|0;if(!p){o=q;ee=39}else{c[ge>>2]=q;c[ge+4>>2]=p;$g(fe,he,41624,ge)}}if((ee|0)==39){c[ge>>2]=o;$g(fe,he,41656,ge)}ee=c[u>>2]|0;md=c[_d>>2]|0;nd=c[fe>>2]|0;c[ge>>2]=n;c[ge+4>>2]=md;c[ge+8>>2]=nd;Zc(ee,41600,ge);ee=41;break}case 80:{t=c[Zd>>2]|0;if(!((t|0)==0|g>>>0<u>>>0)?(hc[t&127](c[Vd>>2]|0)|0)!=0:0){n=m;o=9;m=q;ee=1311;break a}nd=Wd;md=c[nd+4>>2]|0;if((md|0)>0|(md|0)==0&(c[nd>>2]|0)>>>0>0){o=c[f>>2]|0;c[ie>>2]=787;a[be>>0]=2;$g(fe,o,34376,ge);o=1;ee=1309;break}t=Xl(f,1)|0;if(!t){c[Xd>>2]=(c[Xd>>2]|0)+2|1;u=c[o+(p*20|0)+4>>2]|0;c[$d>>2]=v+(u*40|0);n=o+(p*20|0)+8|0;if((c[n>>2]|0)>0){t=0;do{r=t+u|0;s=v+(r*40|0)|0;r=v+(r*40|0)+8|0;o=b[r>>1]|0;if(o&4096){if(Rl(s)|0){u=ce;v=fe;n=m;m=q;ee=1317;break a}o=b[r>>1]|0}if((o&514)==2)Yl(s)|0;t=t+1|0}while((t|0)<(c[n>>2]|0))}if(a[ce>>0]|0){u=ce;v=fe;n=m;m=q;ee=1317;break a}c[de>>2]=p+1;n=m;m=g;g=100;break a}else{o=t;ee=1309}break}case 313:{c[ge>>2]=73058;c[ge+4>>2]=10788;Zc(11,13600,ge);o=11;ee=1309;break}case 343:{c[ge>>2]=73142;c[ge+4>>2]=10788;Zc(11,13600,ge);o=11;ee=1309;break}case 447:{$g(fe,he,41712,ge);p=n;o=5;ee=1309;break}case 460:{c[ge>>2]=o;$g(fe,he,41768,ge);o=1;ee=1309;break}case 462:{$g(fe,he,41792,ge);o=5;ee=1309;break}case 467:{c[de>>2]=g;a[ae>>0]=0;c[ie>>2]=5;g=5;break a}case 489:{r=c[o+(p*20|0)+4>>2]|0;o=c[o+(p*20|0)+8>>2]|0;g=(r|0)!=0;if(g){o=(o|0)!=0;if(!(o|(a[ae>>0]|0)!=0))if((c[Yd>>2]|0)>0){$g(fe,he,41848,ge);g=m;m=n;o=5;ee=1309;break}else o=0}else o=(o|0)!=0;if((r|0)==(d[ae>>0]|0)){if(g)g=o?41952:42e3;else g=41904;$g(fe,he,g,ge);g=m;m=n;o=1;ee=1309;break}if(!o){g=pm(f,1)|0;if(g)break a;a[ae>>0]=r;if((Nl(f)|0)==5){c[de>>2]=p;a[ae>>0]=1-r;c[ie>>2]=5;g=5;break a}}else{Gl(he,516);a[ae>>0]=1}Hl(he);g=(c[ie>>2]|0)==0?101:1;break a}case 508:{c[de>>2]=g;c[ie>>2]=5;g=5;break a}case 522:{ig(he,c[fe>>2]|0);c[fe>>2]=gh(he,16040)|0;o=c[o>>2]|0;if((c[c[(c[Td>>2]|0)+(o<<4)+12>>2]>>2]|0)!=(r|0))rm(he,o);b[Ud>>1]=b[Ud>>1]|8;o=17;ee=1309;break}case 542:{c[ge>>2]=73997;c[ge+4>>2]=10788;Zc(11,13600,ge);q=11;t=o;ee=1318;break}case 560:{c[o+56>>2]=0;o=7;ee=1309;break}case 832:{a[be>>0]=2;o=6;ee=1309;break}case 882:{Ag(he);u=ce;v=fe;n=m;m=q;ee=1317;break a}case 884:{Ag(he);if((o|0)==7){u=ce;v=fe;n=m;m=q;ee=1317;break a}else ee=1309;break}case 998:{$g(fe,he,42112,ge);o=1;ee=1309;break}case 1080:{c[ge>>2]=o?42208:42216;$g(fe,he,42152,ge);o=1;ee=1309;break}case 1101:{$g(fe,he,42344,ge);o=1;ee=1309;break}case 1103:{$g(fe,he,42384,ge);o=1;ee=1309;break}case 1145:{c[ge>>2]=56343;c[ge+4>>2]=10788;Zc(11,13600,ge);o=11;ee=1309;break}case 1316:{$g(fe,he,10096,ge);n=m;o=18;m=q;ee=1311;break a}}if((ee|0)==41)if((Nl(f)|0)==5){c[ie>>2]=5;n=m;m=g;g=5;break a}else{n=m;m=g;g=(c[ie>>2]|0)!=0?1:101;break a}else if((ee|0)==1309){n=m;p=p+1|0;m=q;ee=1311;break a}else if((ee|0)==1318){q=(a[ce>>0]|0)==0?q:7;if((q|0)==3082){n=m;o=3082;m=t;ee=1311;break a}else if((q|0)!=516){n=q&255;if(n>>>0>26|(n|0)==2)o=16328;else o=c[15488+(n<<2)>>2]|0}else o=16344;c[ge>>2]=o;$g(fe,he,10344,ge);n=m;o=q;m=t;ee=1311;break a}}else{q=f+44|0;n=m;g=0;p=0;m=0}while(0);c[ie>>2]=9;c[ge>>2]=15832;$g(q,he,10344,ge);o=9;ee=1311}while(0);if((ee|0)==1317){a[u>>0]=1;$g(v,he,15776,ge);o=7;ee=1311}if((ee|0)==1311){c[ie>>2]=o;md=c[f+168>>2]|0;nd=c[f+44>>2]|0;c[ge>>2]=p;c[ge+4>>2]=md;c[ge+8>>2]=nd;Zc(o,42256,ge);Nl(f)|0;if((o|0)==3082)a[he+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{rm(he,(m&255)+-1|0);m=g;g=1}}nd=je;c[nd>>2]=n;c[nd+4>>2]=l;nd=f+124|0;c[nd>>2]=(c[nd>>2]|0)+m;i=ke;return g|0}
function Av(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=e+20|0;r=e+14|0;f=a[r>>0]|0;w=e+13|0;g=a[w>>0]|0;a:do if((f&255)>(g&255))f=0;else{y=e+4|0;z=e+16|0;s=e+8|0;t=e+12|0;u=e+24|0;v=e+28|0;i=f&255;j=c[y>>2]|0;h=c[A>>2]|0;b:while(1){q=c[e+(i+-2<<2)+24>>2]|0;p=c[e+(i+-1<<2)+24>>2]|0;if(j){while(1){o=j+12|0;if((h|0)<(c[o>>2]|0)){g=h;f=(c[j+20>>2]|0)+(h*48|0)|0;while(1){do if((c[f+8>>2]|0)==(q|0)?(c[f+12>>2]|0)==(p|0):0){if((d[r>>0]|0)>=3?(c[(c[f>>2]|0)+4>>2]&1|0)!=0:0)break;n=f+18|0;h=b[n>>1]|0;if((h&1024)!=0?(x=a[w>>0]|0,(x&255)<22):0){i=c[(c[f>>2]|0)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[i+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[(c[i+20>>2]|0)+4>>2]|0;i=c[i>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;k=0}else{l=c[i+28>>2]|0;m=i+32|0;k=0;while(1){if((c[e+(k<<2)+24>>2]|0)==(l|0)?(c[e+((k|1)<<2)+24>>2]|0)==(b[m>>1]|0):0){m=x;break d}k=k+2|0;if((k|0)>=(x&255|0)){m=x;break}}}while(0);if((k|0)==(m&255|0)){c[e+(k<<2)+24>>2]=c[i+28>>2];c[e+((k|1)<<2)+24>>2]=b[i+32>>1];a[w>>0]=(d[w>>0]|0)+2}}i=h&65535;if(i&c[z>>2]){if((c[s>>2]|0)!=0&(i&128|0)==0){l=c[c[j>>2]>>2]|0;k=c[f>>2]|0;i=a[t>>0]|0;h=(jv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ku(l,c[k+12>>2]|0,c[k+16>>2]|0)|0;if(!h)h=c[(c[l>>2]|0)+8>>2]|0;if($c(c[h>>2]|0,c[s>>2]|0)|0)break;h=b[n>>1]|0}if(!(h&2))break b;h=c[(c[f>>2]|0)+16>>2]|0;if((a[h>>0]|0)!=-102)break b;if((c[h+28>>2]|0)!=(c[u>>2]|0))break b;if((b[h+32>>1]|0)!=(c[v>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[o>>2]|0))break;else f=f+48|0}g=c[y>>2]|0}else g=j;j=c[g+4>>2]|0;c[y>>2]=j;if(!j)break;else h=0}f=a[r>>0]|0;g=a[w>>0]|0}j=c[e>>2]|0;c[y>>2]=j;h=(f&255)+2|0;f=h&255;a[r>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[A>>2]=g+1}while(0);return f|0}function Bv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[d>>2]|0;l=c[c[g>>2]>>2]|0;d=c[d+16>>2]|0;a:do if(!d){g=g+16|0;i=c[g>>2]|0;k=f+36|0;if((c[k>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[f+16>>0]|0;do{do if((a[i+16>>0]|0)==h<<24>>24?(c[i+36>>2]&512|0)!=0:0){if(Pv(i,f)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+65535;break}if(Pv(f,i)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+1}}while(0);i=c[i+52>>2]|0}while((i|0)!=0)}d=Qv(g,f)|0;if(d){g=c[d>>2]|0;b:do if(g){d=g+52|0;if(c[d>>2]|0)do{d=Qv(d,f)|0;if(!d)break b;h=c[d>>2]|0;if(!h)break b;c[d>>2]=c[h+52>>2];Fu(l,h);ig(l,h)}while((c[d>>2]|0)!=0)}else{g=ih(l,72,0)|0;c[d>>2]=g;if(!g){d=7;break a}c[g+48>>2]=g+56;b[g+40>>1]=0;b[g+44>>1]=3;c[g+36>>2]=0;c[g+52>>2]=0}while(0);Hv(l,g);do if(!(Ju(l,g,e[f+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[h>>2]=c[d>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));gw(c[g+48>>2]|0,c[f+48>>2]|0,e[g+40>>1]<<2|0)|0;d=c[k>>2]|0;if(d&1024){a[f+28>>0]=0;break}if(d&16384)c[f+28>>2]=0}else{d=g+24|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0}while(0);if(((c[g+36>>2]&1024|0)==0?(m=g+28|0,n=c[m>>2]|0,(n|0)!=0):0)?(c[n+40>>2]|0)==0:0){c[m>>2]=0;d=0}else d=0}else d=0}else{g=f;Gv(d,c[g>>2]|0,c[g+4>>2]|0,b[f+20>>1]|0,b[f+22>>1]|0);d=0}while(0);return d|0}function Cv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[34032+(e-c)>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[34032+(c-e)>>0]|0)+c&65535;break}while(0);return a|0}function Dv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(yu(b,d,e)|0))f=1;else{f=a[d>>0]|0;if(f<<24>>24==77)g=6;else if(f<<24>>24==71){if(Dv(b,c[d+12>>2]|0,e)|0){f=1;break}if(Dv(b,c[d+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}if(((g|0)==6?(yu(c[b+12>>2]|0,c[d+12>>2]|0,e)|0)==0:0)?(f=a[b>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Ev(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;s=d;t=d+8|0;g=t;r=~(c[g>>2]|c[s>>2]);s=~(c[g+4>>2]|c[s+4>>2]);g=c[a+12>>2]|0;p=a+20|0;a:do if((g|0)>0){q=d+40|0;a=d+22|0;o=d+48|0;d=0;n=c[p>>2]|0;while(1){if(b[n+20>>1]&2)break a;m=n+40|0;l=c[m>>2]|0;m=c[m+4>>2]|0;k=t;b:do if(((c[k>>2]&l|0)!=0?1:(c[k+4>>2]&m|0)!=0)&((l&r|0)==0&(m&s|0)==0)){h=b[q>>1]|0;c:do if(h<<16>>16){m=c[o>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[m+(l<<2)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[k+4>>2]|0;if((k|0)>-1?((c[p>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[n+16>>1]|0;if(h<<16>>16<1){b[a>>1]=(e[a>>1]|0)+(h&65535);break}b[a>>1]=(b[a>>1]|0)+-1<<16>>16;if(b[n+18>>1]&2){l=(Is(c[(c[n>>2]|0)+16>>2]|0,u)|0)!=0;m=c[u>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[u>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[a>>1]|0)>(d|0))b[a>>1]=d;i=v;return}function Fv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0;ea=i;i=i+112|0;if((i|0)>=(j|0))ba();O=ea;S=c[c[c[d>>2]>>2]>>2]|0;ca=c[d+12>>2]|0;if(!(a[S+65>>0]|0)){da=ca+36|0;if(!(c[da>>2]&32))if((c[g+40>>2]|0)<1)k=63;else k=(a[f+36>>0]&8)<<4^191;else k=24;T=g+51|0;$=ca+24|0;l=b[(c[g+4>>2]|0)+(e[$>>1]<<1)>>1]|0;K=l<<16>>16;L=d+4|0;k=zv(O,c[L>>2]|0,c[f+40>>2]|0,K,(a[T>>0]&4)==0?k:k&131,g)|0;U=b[$>>1]|0;V=ca+42|0;Q=b[V>>1]|0;W=ca+40|0;R=b[W>>1]|0;X=c[da>>2]|0;N=ca;M=c[N>>2]|0;N=c[N+4>>2]|0;Y=ca+22|0;Z=b[Y>>1]|0;b[ca+18>>1]=0;_=g+8|0;A=b[c[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((bs(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{B=l<<16>>16<0;C=f+16|0;D=ca+8|0;E=(R&65535)+1|0;F=ca+48|0;G=h<<16>>16==0;H=g+46|0;t=l<<16>>16>-1;u=g+50|0;v=g+44|0;w=ca+20|0;x=h<<16>>16;y=g+48|0;o=0;r=k;p=0;while(1){l=b[r+18>>1]|0;q=l&65535;if(l<<16>>16==128)if(!B?(a[(c[(c[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{m=o;l=p;k=0}else P=12;if((P|0)==12){P=0;m=r+32|0;s=m;n=D;if(((c[n>>2]&c[s>>2]|0)==0?(c[n+4>>2]&c[s+4>>2]|0)==0:0)?(I=r+20|0,!((b[I>>1]&256)!=0&l<<16>>16==16)):0){c[da>>2]=X;b[$>>1]=U;b[W>>1]=R;if(Ju(S,ca,E)|0){k=0;break a}k=b[W>>1]|0;n=k+1<<16>>16;b[W>>1]=n;c[(c[F>>2]|0)+((k&65535)<<2)>>2]=r;k=m;l=D;m=(c[k+4>>2]|N)&~c[l+4>>2];s=ca;c[s>>2]=(c[k>>2]|M)&~c[l>>2];c[s+4>>2]=m;b:do if(!(q&1)){if(q&2){k=c[da>>2]|0;l=k|1;c[da>>2]=l;do if(!B){if(!G){s=0;break b}if((e[$>>1]|0)!=((e[H>>1]|0)+-1|0)){s=0;break b}if(!t)break;if(a[u>>0]|0)break;l=k|65537;c[da>>2]=l;s=0;break b}while(0);l=k|4097;c[da>>2]=l;s=0;break}if(q&128){l=c[da>>2]|8;c[da>>2]=l;s=0;break}k=c[da>>2]|0;if(!(q&36)){l=k|18;c[da>>2]=l;if(!(k&32)){s=0;o=0;p=r;break}s=0;o=c[(c[F>>2]|0)+((n&65535)+-2<<2)>>2]|0;p=r;break}l=k|34;c[da>>2]=l;if(!(b[I>>1]&256)){s=0;o=r;p=0}else{k=r+48|0;if(Ju(S,ca,(n&65535)+1|0)|0){k=0;break a}l=b[W>>1]|0;b[W>>1]=l+1<<16>>16;c[(c[F>>2]|0)+((l&65535)<<2)>>2]=k;l=c[da>>2]|16;c[da>>2]=l;s=0;o=r;p=k}}else{k=c[r>>2]|0;l=c[da>>2]|4;c[da>>2]=l;if(!(c[k+4>>2]&2048)){k=c[k+20>>2]|0;if((k|0)!=0?(J=c[k>>2]|0,(J|0)!=0):0)s=(bs(J,((J|0)<0)<<31>>31)|0)<<16>>16;else s=0}else s=46}while(0);do if(!(l&2)){k=(b[$>>1]|0)+1<<16>>16;b[$>>1]=k;k=k&65535;m=b[r+16>>1]|0;if(m<<16>>16<1&t){n=(m&65535)-s+(e[Y>>1]|0)&65535;b[Y>>1]=n;break}m=c[_>>2]|0;m=(e[Y>>1]|0)+((e[m+(k<<1)>>1]|0)-(e[m+(k+-1<<1)>>1]|0))|0;k=m&65535;b[Y>>1]=k;if(!(q&128))n=k;else{n=m+10&65535;b[Y>>1]=n}}else{k=b[Y>>1]|0;n=k<<16>>16;do if(o){m=b[o+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(p){m=b[p+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(o|0)!=0;do if(m?(b[o+16>>1]|0)>0&(p|0)!=0:0){if((b[p+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);n=(((p|0)!=0)<<31>>31)+(m<<31>>31)+n|0;r=k<<16>>16<10?10:k<<16>>16;n=((r|0)<(n|0)?r:n)&65535;b[Y>>1]=n}while(0);k=n&65535;m=Cv(z,k+1+(((b[v>>1]|0)*15|0)/(b[(c[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Cv(m,k+16&65535)|0;l=s+x|0;b[w>>1]=(m&65535)+l;b[Y>>1]=k+l;Ev(c[L>>2]|0,ca,A);k=Bv(d,ca)|0;s=c[da>>2]|0;b[Y>>1]=(s&2|0)==0?n:Z;if((s&16|0)==0?(e[$>>1]|0)<(e[y>>1]|0):0)Fv(d,f,g,l&65535)|0;b[Y>>1]=Z;m=o;l=p}else{m=o;l=p;k=0}}r=Av(O)|0;if(!((k|0)==0&(r|0)!=0))break;else{o=m;p=l}}}while(0);l=ca;c[l>>2]=M;c[l+4>>2]=N;b[$>>1]=U;b[V>>1]=Q;c[da>>2]=X;b[Y>>1]=Z;b[W>>1]=R;l=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=l+1|0,aa>>>0<(e[g+46>>1]|0)>>>0):0)?(a[T>>0]&64)==0:0)?(b[(c[_>>2]|0)+(aa<<1)>>1]|0)>41:0){k=Ju(S,ca,(R&65535)+1|0)|0;if(!k){b[$>>1]=(b[$>>1]|0)+1<<16>>16;b[V>>1]=(b[V>>1]|0)+1<<16>>16;k=b[W>>1]|0;b[W>>1]=k+1<<16>>16;c[(c[ca+48>>2]|0)+((k&65535)<<2)>>2]=0;c[da>>2]=c[da>>2]|32768;k=c[_>>2]|0;k=(e[k+(l<<1)>>1]|0)-(e[k+(aa<<1)>>1]|0)|0;b[Y>>1]=(e[Y>>1]|0)-k;Fv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[Y>>1]=Z;b[$>>1]=U;b[V>>1]=U;c[da>>2]=X;k=0}}}else k=7;i=ea;return k|0}function Gv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=b[a>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[k+8>>1]|0;if(i<<16>>16>=f<<16>>16?(p=k,(c[p>>2]&d|0)==(d|0)?(c[p+4>>2]&e|0)==(e|0):0):0){n=k;o=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,p=c[i>>2]|0,i=c[i+4>>2]|0,(p&d|0)==(p|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[a+16>>1]|0;k=1;do{if(i<<16>>16>(b[a+(k<<4)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[h+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;b[a>>1]=l+1<<16>>16;b[a+(n<<4)+18>>1]=g;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,c[m>>2]=d,c[m+4>>2]=e,b[n+8>>1]=f,m=n+10|0,(b[m>>1]|0)>g<<16>>16):0)b[m>>1]=g;return}function Hv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[d+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[h>>0]|0)!=0):0){e=d+32|0;Sc(c[e>>2]|0);a[h>>0]=0;c[e>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[f>>2]|0,(g|0)!=0):0){ig(b,c[g+16>>2]|0);ig(b,c[f>>2]|0);c[f>>2]=0}}while(0);return}function Iv(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;qa=i;i=i+32|0;if((i|0)>=(j|0))ba();la=qa;p=c[c[f>>2]>>2]|0;ka=l&65535;if(l<<16>>16!=0?(b[p+60>>1]&128)!=0:0)o=0;else ma=3;a:do if((ma|0)==3){pa=c[g>>2]|0;o=pa&65535;if(o>>>0<=63){na=ew(1,0,o|0)|0;na=fw(na|0,C|0,-1,-1)|0;oa=C;b:do if((na|0)==0&(oa|0)==0){g=0;h=0;p=1}else{ea=h+24|0;fa=f+4|0;ga=(o|0)==0;ca=g+4|0;da=(k&768)==0;aa=p+8|0;T=(k&256)==0;U=f+68|0;V=la+20|0;W=la+4|0;Z=la+24|0;_=f+328|0;X=0;Y=0;g=0;h=0;k=0;q=0;$=0;p=1;l=0;while(1){if(($|0)>0){R=l+8|0;S=c[R>>2]|k;q=c[R+4>>2]|q}else S=k;if(($|0)<(ka|0))l=c[(c[ea>>2]|0)+($<<2)>>2]|0;else l=m;y=l+36|0;k=c[y>>2]|0;if(k&1024)break;R=c[(c[fa>>2]|0)+((d[l+16>>0]|0)*72|0)+48>>2]|0;if(!ga){k=~S;s=~q;v=0;do{x=ew(1,0,v|0)|0;w=C;c:do if((x&g|0)==0&(w&h|0)==0){r=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;u=c[r+4>>2]|0;if(u&4096)do{if(!(u&262144))r=r+12|0;else r=c[(c[r+20>>2]|0)+4>>2]|0;r=c[r>>2]|0;u=c[r+4>>2]|0}while((u&4096|0)!=0);if(((a[r>>0]|0)==-102?(c[r+28>>2]|0)==(R|0):0)?(ha=r+32|0,ia=Bu(_,R,b[ha>>1]|0,k,s,130,0)|0,(ia|0)!=0):0){do if(b[ia+18>>1]&2){if((b[ha>>1]|0)<=-1)break;r=_t(c[f>>2]|0,c[(c[ca>>2]|0)+(v*20|0)>>2]|0)|0;if(!r)r=c[aa>>2]|0;u=c[r>>2]|0;t=_t(c[f>>2]|0,c[ia>>2]|0)|0;if(!t)t=c[aa>>2]|0;if($c(u,c[t>>2]|0)|0)break c}while(0);g=x|g;h=w|h}}while(0);v=v+1|0}while((v|0)<(o|0));k=c[y>>2]|0}do if(!(k&4096)){if(!(k&256)){r=c[l+28>>2]|0;if(!r){o=0;break a}if(a[r+51>>0]&4){o=0;break a}k=b[r+48>>1]|0;p=(a[r+50>>0]|0)!=0&1;if(!(k<<16>>16)){ma=71;break}else{P=k&65535;Q=b[r+46>>1]|0}}else{P=1;Q=0;r=0}G=l+24|0;H=l+42|0;I=l+48|0;J=(r|0)==0;K=r+32|0;L=ew(1,0,$|0)|0;M=C;N=r+4|0;O=r+28|0;F=r+12|0;k=0;r=0;x=0;E=0;d:while(1){w=(r|0)<(e[G>>1]|0);if((w?(b[H>>1]|0)==0:0)?(ja=e[(c[(c[I>>2]|0)+(r<<2)>>2]|0)+18>>1]|0,(ja&130|0)!=0):0){p=(ja&128|0)==0?p:0;w=E}else{if(!J){u=b[(c[N>>2]|0)+(r<<1)>>1]|0;t=a[(c[O>>2]|0)+r>>0]|0;s=c[F>>2]|0;u=u<<16>>16==(b[s+36>>1]|0)?-1:u<<16>>16;v=(u|0)>-1;if(p<<24>>24!=0&v)if(w){v=1;D=u}else{v=1;D=u;p=(a[(c[s+4>>2]|0)+(u*24|0)+20>>0]|0)==0?0:p}else D=u}else{v=0;D=-1;t=0}if(ga){ma=68;break}else{w=1;B=0}e:while(1){z=ew(1,0,B|0)|0;A=C;do if((z&g|0)==0&(A&h|0)==0){s=c[(c[ca>>2]|0)+(B*20|0)>>2]|0;u=c[s+4>>2]|0;if(!(u&4096))y=s;else{y=s;do{if(!(u&262144))u=y+12|0;else u=c[(c[y+20>>2]|0)+4>>2]|0;y=c[u>>2]|0;u=c[y+4>>2]|0}while((u&4096|0)!=0)}w=da?0:w;if((a[y>>0]|0)!=-102)break;if((c[y+28>>2]|0)!=(R|0))break;if((b[y+32>>1]|0)!=(D|0))break;if(!v){y=z;v=A;w=B;break e}u=_t(c[f>>2]|0,s)|0;if(!u)u=c[aa>>2]|0;if(!($c(c[u>>2]|0,c[(c[K>>2]|0)+(r<<2)>>2]|0)|0)){y=z;v=A;w=B;break e}}while(0);B=B+1|0;if(!(w<<24>>24!=0&(B|0)<(o|0))){ma=68;break d}}do if(T){if(E<<24>>24)if((t^x)<<24>>24==(a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0)){w=E;break}else{ma=68;break d}s=a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0;x=s^t;if(t<<24>>24==s<<24>>24){w=1;break}s=n;t=c[s+4>>2]|M;w=n;c[w>>2]=c[s>>2]|L;c[w+4>>2]=t;w=1}else w=E;while(0);g=y|g;h=v|h;k=(D|0)<0?1:k}r=r+1|0;if((r|0)>=(P|0))break;else E=w}if((ma|0)==68){ma=0;p=(r|0)==0|(r|0)<(Q&65535|0)?0:p}if(!(k<<24>>24))ma=71;else p=1}else ma=71;while(0);if((ma|0)==71){ma=0;if(!(p<<24>>24)){p=0;break b}}R=l+8|0;X=c[R>>2]|X;Y=c[R+4>>2]|Y;if(!ga){w=~X;x=~Y;v=0;do{r=ew(1,0,v|0)|0;u=C;do if((r&g|0)==0&(u&h|0)==0){k=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;s=wv(U,k)|0;t=C;if((s|0)==0&(t|0)==0?(c[la+0>>2]=0,c[la+4>>2]=0,c[la+8>>2]=0,c[la+12>>2]=0,c[la+16>>2]=0,c[la+20>>2]=0,a[V>>0]=1,c[la>>2]=78,c[W>>2]=79,c[Z>>2]=0,ns(la,k)|0,(a[V>>0]|0)==0):0)break;R=(s&w|0)==0&(t&x|0)==0;g=(R?r:0)|g;h=(R?u:0)|h}while(0);v=v+1|0}while((v|0)<(o|0))}if(h>>>0>oa>>>0|(h|0)==(oa|0)&g>>>0>=na>>>0|p<<24>>24==0|($|0)>=(ka|0))break b;else{k=S;$=$+1|0}}da=(a[l+29>>0]|0)==0;g=da?g:na;h=da?h:oa}while(0);if((g|0)==(na|0)&(h|0)==(oa|0)){o=pa&255;break}if(!(p<<24>>24)){do{o=o+-1|0;if((o|0)<=0){o=0;break a}ca=ew(1,0,o|0)|0;ca=fw(ca|0,C|0,-1,-1)|0;da=C}while(!((ca&g|0)==(ca|0)&(da&h|0)==(da|0)));o=o&255}else o=-1}else o=0}while(0);i=qa;return o|0}function Jv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Ok(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[c>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Ok(b,d,c);Ok(b,e,1);Ok(b,13552,1);return}function Kv(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[c[c[a>>2]>>2]>>2]|0;d=c[a+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[g>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[f>>1]|0;if(e&1){Ck(i,c[h>>2]|0);e=b[f>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[h+12>>2]|0;Kv(e);ig(i,e)}}else{e=c[h+12>>2]|0;Kv(e);ig(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[g>>2]|0;if((d|0)!=(a+24|0))ig(i,d);return}function Lv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();r=s;h=c[b+8>>2]|0;k=c[b>>2]|0;if(e){l=(f|0)==10;m=b+437|0;n=r+4|0;o=r+1|0;p=r+8|0;q=r+12|0;g=f&255;do{if(l)f=a[e+1>>0]|0;else f=g;a[m>>0]=f;f=d[e>>0]|0;if((f|0)==108){u=Rv(b,e)|0;t=cr(k,c[e+8>>2]|0,0)|0;f=Jr(k,c[e+28>>2]|0)|0;pr(b,u,t,f,d[m>>0]|0)}else if((f|0)==109){f=Rv(b,e)|0;nr(b,f,Ir(k,c[e+20>>2]|0,0,0)|0)}else if((f|0)==110){u=Rv(b,e)|0;t=Lr(k,c[e+24>>2]|0,0)|0;f=Ir(k,c[e+20>>2]|0,0,0)|0;or(b,u,t,f,d[m>>0]|0)}else{f=cr(k,c[e+8>>2]|0,0)|0;a[r>>0]=4;c[n>>2]=0;a[o>>0]=0;c[p>>2]=0;c[q>>2]=0;er(b,f,r)|0;Ik(k,f,1)}if((a[e>>0]|0)!=119)sh(h,98,0,0,0)|0;e=c[e+32>>2]|0}while((e|0)!=0)}i=s;return}function Mv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m;l=c[d>>2]|0;c[h>>2]=0;c[h+4>>2]=0;h=jr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[e+36>>1]|0)!=g<<16>>16:0){g=c[e+4>>2]|0;c[h+28>>2]=f+1+k;a[h+1>>0]=a[g+(k*24|0)+21>>0]|0;k=c[g+(k*24|0)+16>>2]|0;if(!k)k=c[c[l+8>>2]>>2]|0;h=tv(d,h,k)|0;break}c[h+28>>2]=f;a[h+1>>0]=68}while(0);i=m;return h|0}function Nv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=ih(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(i|0));a[d>>0]=-102;b[d+34>>1]=-1;c[d+24>>2]=1;h=c[e+(f*72|0)+24>>2]|0;c[d+44>>2]=h;c[d+28>>2]=c[e+(f*72|0)+48>>2];if((b[h+36>>1]|0)==(g|0))b[d+32>>1]=-1;else{b[d+32>>1]=g;j=(g|0)>63;g=ew(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[f+4>>2]|(j?-2147483648:C);c[h>>2]=c[f>>2]|(j?0:g);c[h+4>>2]=i}h=d+4|0;c[h>>2]=c[h>>2]|4}return d|0}function Ov(b,e){b=b|0;e=e|0;if((a[e>>0]|0)==-101){e=e+38|0;a[e>>0]=(d[e>>0]|0)+(c[b+24>>2]|0)}return 0}function Pv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[a+40>>1]|0;i=f&65535;h=b[a+42>>1]|0;k=e[d+40>>1]|0;g=b[d+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[a+20>>1]|0;h=b[d+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[a+22>>1]|0)>(b[d+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[a+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[j+(a<<2)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[(c[d>>2]|0)+(g<<2)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Qv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=c[d>>2]|0;a:do if(f){k=a[e+16>>0]|0;l=e+17|0;m=e+18|0;n=e+20|0;o=e+22|0;p=e+42|0;q=e+36|0;do{if((a[f+16>>0]|0)==k<<24>>24?(a[f+17>>0]|0)==(a[l>>0]|0):0){if((((c[f+36>>2]&16384|0)!=0?(b[p>>1]|0)==0:0)?(c[q>>2]&513|0)==513:0)?(i=f,j=e,h=c[j>>2]|0,j=c[j+4>>2]|0,(h&c[i>>2]|0)==(h|0)?(j&c[i+4>>2]|0)==(j|0):0):0)break a;r=f;s=c[r>>2]|0;r=c[r+4>>2]|0;h=e;g=c[h>>2]|0;h=c[h+4>>2]|0;i=g&s;j=h&r;if((((i|0)==(s|0)&(j|0)==(r|0)?(b[f+18>>1]|0)<=(b[m>>1]|0):0)?(b[f+20>>1]|0)<=(b[n>>1]|0):0)?(b[f+22>>1]|0)<=(b[o>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[f+20>>1]|0)>=(b[n>>1]|0):0)?(b[f+22>>1]|0)>=(b[o>>1]|0):0)break a}d=f+52|0;f=c[d>>2]|0}while((f|0)!=0)}while(0);return d|0}function Rv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=lr(c[a>>2]|0,0,b+12|0,0)|0;do if(h){g=c[a>>2]|0;f=c[(c[b+4>>2]|0)+20>>2]|0;a:do if(f){e=c[g+20>>2]|0;if((e|0)>0){b=c[g+16>>2]|0;d=0;while(1){a=d+1|0;if((c[b+(d<<4)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=gh(g,c[(c[g+16>>2]|0)+(a<<4)>>2]|0)|0;c[h+(((c[h>>2]|0)+-1|0)*72|0)+12>>2]=a}while(0);return h|0}function Sv(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;do if(a>>>0<245){if(a>>>0<11)p=16;else p=a+11&-8;a=p>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[f>>2]|0;h=g+8|0;i=c[h>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Kb();d=i+12|0;if((c[d>>2]|0)==(g|0)){c[d>>2]=b;c[f>>2]=i;break}else Kb()}else c[12266]=l&~(1<<e);while(0);w=e<<3;c[g+4>>2]=w|3;w=g+(w|4)|0;c[w>>2]=c[w>>2]|1;w=h;return w|0}k=c[12268]|0;if(p>>>0>k>>>0){if(i){f=2<<a;f=i<<a&(f|0-f);f=(f&0-f)+-1|0;a=f>>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[f>>2]|0;a=d+8|0;e=c[a>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Kb();i=e+12|0;if((c[i>>2]|0)==(d|0)){c[i>>2]=g;c[f>>2]=e;m=c[12268]|0;break}else Kb()}else{c[12266]=l&~(1<<h);m=k}while(0);w=h<<3;b=w-p|0;c[d+4>>2]=p|3;j=d+p|0;c[d+(p|4)>>2]=b|1;c[d+w>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<<g;if(h&g){h=49104+(i+2<<2)|0;i=c[h>>2]|0;if(i>>>0<(c[12270]|0)>>>0)Kb();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[n>>2]=e;c[o+12>>2]=e;c[e+8>>2]=o;c[e+12>>2]=f}c[12268]=b;c[12271]=j;w=a;return w|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;v=h>>>12&16;h=h>>>v;u=h>>>5&8;h=h>>>u;w=h>>>2&4;h=h>>>w;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[49368+((u|v|w|i|g)+(h>>>g)<<2)>>2]|0;h=(c[g+4>>2]&-8)-p|0;i=g;while(1){d=c[i+16>>2]|0;if(!d){d=c[i+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[d+4>>2]&-8)-p|0;w=i>>>0<h>>>0;h=w?i:h;i=d;g=w?d:g}a=c[12270]|0;if(k>>>0<a>>>0)Kb();b=k+p|0;if(k>>>0>=b>>>0)Kb();j=c[k+24>>2]|0;g=c[k+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[h>>2]|0;if(!i){h=k+16|0;i=c[h>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[g>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[g>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0<a>>>0)Kb();else{c[h>>2]=0;e=i;break}}else{f=c[k+8>>2]|0;if(f>>>0<a>>>0)Kb();i=f+12|0;if((c[i>>2]|0)!=(k|0))Kb();h=g+8|0;if((c[h>>2]|0)==(k|0)){c[i>>2]=g;c[h>>2]=f;e=g;break}else Kb()}while(0);do if(j){i=c[k+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[h>>2]|0)){c[h>>2]=e;if(!e){c[12267]=c[12267]&~(1<<i);break}}else{if(j>>>0<(c[12270]|0)>>>0)Kb();i=j+16|0;if((c[i>>2]|0)==(k|0))c[i>>2]=e;else c[j+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0<h>>>0)Kb();c[e+24>>2]=j;i=c[k+16>>2]|0;do if(i)if(i>>>0<h>>>0)Kb();else{c[e+16>>2]=i;c[i+24>>2]=e;break}while(0);i=c[k+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Kb();else{c[e+20>>2]=i;c[i+24>>2]=e;break}}while(0);if(l>>>0<16){w=l+p|0;c[k+4>>2]=w|3;w=k+(w+4)|0;c[w>>2]=c[w>>2]|1}else{c[k+4>>2]=p|3;c[k+(p|4)>>2]=l|1;c[k+(l+p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<<g;if(h&g){i=49104+(i+2<<2)|0;h=c[i>>2]|0;if(h>>>0<(c[12270]|0)>>>0)Kb();else{q=i;r=h}}else{c[12266]=h|g;q=49104+(i+2<<2)|0;r=f}c[q>>2]=e;c[r+12>>2]=e;c[e+8>>2]=r;c[e+12>>2]=f}c[12268]=l;c[12271]=b}w=k+8|0;return w|0}else r=p}else r=p}else if(a>>>0<=4294967231){a=a+11|0;r=a&-8;k=c[12267]|0;if(k){h=0-r|0;a=a>>>8;if(a)if(r>>>0>16777215)d=31;else{p=(a+1048320|0)>>>16&8;q=a<<p;o=(q+520192|0)>>>16&4;q=q<<o;d=(q+245760|0)>>>16&2;d=14-(o|p|d)+(q<<d>>>15)|0;d=r>>>(d+7|0)&1|d<<1}else d=0;f=c[49368+(d<<2)>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=r<<i;i=0;while(1){e=c[f+4>>2]&-8;h=e-r|0;if(h>>>0<l>>>0)if((e|0)==(r|0)){a=f;i=f;break a}else i=f;else h=l;q=c[f+20>>2]|0;f=c[f+(b>>>31<<2)+16>>2]|0;a=(q|0)==0|(q|0)==(f|0)?a:q;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<<d;a=k&(a|0-a);if(!a)break;q=(a&0-a)+-1|0;n=q>>>12&16;q=q>>>n;m=q>>>5&8;q=q>>>m;o=q>>>2&4;q=q>>>o;p=q>>>1&2;q=q>>>p;a=q>>>1&1;a=c[49368+((m|n|o|p|a)+(q>>>a)<<2)>>2]|0}if(!a){o=h;p=i}else while(1){q=(c[a+4>>2]&-8)-r|0;f=q>>>0<h>>>0;h=f?q:h;i=f?a:i;f=c[a+16>>2]|0;if(f){a=f;continue}a=c[a+20>>2]|0;if(!a){o=h;p=i;break}}if((p|0)!=0?o>>>0<((c[12268]|0)-r|0)>>>0:0){a=c[12270]|0;if(p>>>0<a>>>0)Kb();m=p+r|0;if(p>>>0>=m>>>0)Kb();j=c[p+24>>2]|0;g=c[p+12>>2]|0;do if((g|0)==(p|0)){h=p+20|0;i=c[h>>2]|0;if(!i){h=p+16|0;i=c[h>>2]|0;if(!i){t=0;break}}while(1){g=i+20|0;f=c[g>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[g>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0<a>>>0)Kb();else{c[h>>2]=0;t=i;break}}else{f=c[p+8>>2]|0;if(f>>>0<a>>>0)Kb();i=f+12|0;if((c[i>>2]|0)!=(p|0))Kb();h=g+8|0;if((c[h>>2]|0)==(p|0)){c[i>>2]=g;c[h>>2]=f;t=g;break}else Kb()}while(0);do if(j){i=c[p+28>>2]|0;h=49368+(i<<2)|0;if((p|0)==(c[h>>2]|0)){c[h>>2]=t;if(!t){c[12267]=c[12267]&~(1<<i);break}}else{if(j>>>0<(c[12270]|0)>>>0)Kb();i=j+16|0;if((c[i>>2]|0)==(p|0))c[i>>2]=t;else c[j+20>>2]=t;if(!t)break}h=c[12270]|0;if(t>>>0<h>>>0)Kb();c[t+24>>2]=j;i=c[p+16>>2]|0;do if(i)if(i>>>0<h>>>0)Kb();else{c[t+16>>2]=i;c[i+24>>2]=t;break}while(0);i=c[p+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Kb();else{c[t+20>>2]=i;c[i+24>>2]=t;break}}while(0);b:do if(o>>>0>=16){c[p+4>>2]=r|3;c[p+(r|4)>>2]=o|1;c[p+(o+r)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<<i;do if(!(g&i)){c[12266]=g|i;u=49104+(h+2<<2)|0;v=f}else{i=49104+(h+2<<2)|0;h=c[i>>2]|0;if(h>>>0>=(c[12270]|0)>>>0){u=i;v=h;break}Kb()}while(0);c[u>>2]=m;c[v+12>>2]=m;c[p+(r+8)>>2]=v;c[p+(r+12)>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{v=(d+1048320|0)>>>16&8;w=d<<v;u=(w+520192|0)>>>16&4;w=w<<u;f=(w+245760|0)>>>16&2;f=14-(u|v|f)+(w<<f>>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[p+(r+28)>>2]=f;c[p+(r+20)>>2]=0;c[p+(r+16)>>2]=0;h=c[12267]|0;g=1<<f;if(!(h&g)){c[12267]=h|g;c[i>>2]=m;c[p+(r+24)>>2]=i;c[p+(r+12)>>2]=m;c[p+(r+8)>>2]=m;break}d=c[i>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[d+4>>2]&-8|0)!=(o|0)){h=o<<b;while(1){b=d+(h>>>31<<2)+16|0;i=c[b>>2]|0;if(!i)break;if((c[i+4>>2]&-8|0)==(o|0)){B=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Kb();else{c[b>>2]=m;c[p+(r+24)>>2]=d;c[p+(r+12)>>2]=m;c[p+(r+8)>>2]=m;break b}}else B=d;while(0);d=B+8|0;b=c[d>>2]|0;w=c[12270]|0;if(B>>>0>=w>>>0&b>>>0>=w>>>0){c[b+12>>2]=m;c[d>>2]=m;c[p+(r+8)>>2]=b;c[p+(r+12)>>2]=B;c[p+(r+24)>>2]=0;break}else Kb()}else{w=o+r|0;c[p+4>>2]=w|3;w=p+(w+4)|0;c[w>>2]=c[w>>2]|1}while(0);w=p+8|0;return w|0}}}else r=-1;while(0);a=c[12268]|0;if(a>>>0>=r>>>0){b=a-r|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+r;c[12268]=b;c[d+(r+4)>>2]=b|1;c[d+a>>2]=b;c[d+4>>2]=r|3}else{c[12268]=0;c[12271]=0;c[d+4>>2]=a|3;w=d+(a+4)|0;c[w>>2]=c[w>>2]|1}w=d+8|0;return w|0}a=c[12269]|0;if(a>>>0>r>>>0){v=a-r|0;c[12269]=v;w=c[12272]|0;c[12272]=w+r;c[w+(r+4)>>2]=v|1;c[w+4>>2]=r|3;w=w+8|0;return w|0}do if(!(c[12384]|0)){a=sb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Lb(0)|0)&-16^1431655768;break}else Kb()}while(0);l=r+48|0;b=c[12386]|0;k=r+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=r>>>0){w=0;return w|0}a=c[12376]|0;if((a|0)!=0?(u=c[12374]|0,v=u+m|0,v>>>0<=u>>>0|v>>>0>a>>>0):0){w=0;return w|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[f>>2]|0;if(i>>>0<=a>>>0?(s=f+4|0,(i+(c[s>>2]|0)|0)>>>0>a>>>0):0){e=f;h=s;a=f;break}f=c[f+8>>2]|0;if(!f){G=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=ob(a|0)|0;if((i|0)==((c[e>>2]|0)+(c[h>>2]|0)|0))G=190;else G=191}else a=0}else G=181}else G=181;while(0);do if((G|0)==181){i=ob(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>r>>>0&a>>>0<2147483647){v=c[12376]|0;if((v|0)!=0?f>>>0<=h>>>0|f>>>0>v>>>0:0){a=0;break}h=ob(a|0)|0;if((h|0)==(i|0))G=190;else{i=h;G=191}}else a=0}else a=0}while(0);f:do if((G|0)==190){if((i|0)!=(-1|0)){x=i;G=201;break d}}else if((G|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(w=c[12386]|0,w=k-a+w&0-w,w>>>0<2147483647):0)if((ob(w|0)|0)==(-1|0)){ob(h|0)|0;a=0;break f}else{a=w+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{x=i;G=201;break d}}while(0);c[12377]=c[12377]|4;G=198}else{a=0;G=198}while(0);if((((G|0)==198?m>>>0<2147483647:0)?(x=ob(m|0)|0,y=ob(0)|0,(x|0)!=(-1|0)&(y|0)!=(-1|0)&x>>>0<y>>>0):0)?(z=y-x|0,A=z>>>0>(r+40|0)>>>0,A):0){a=A?z:a;G=201}if((G|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[e>>2]|0;h=e+4|0;f=c[h>>2]|0;if((x|0)==(i+f|0)){C=i;D=h;E=f;F=e;G=213;break}e=c[e+8>>2]|0}while((e|0)!=0);if(((G|0)==213?(c[F+12>>2]&8|0)==0:0)?l>>>0>=C>>>0&l>>>0<x>>>0:0){c[D>>2]=E+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;w=b-d|0;c[12272]=l+d;c[12269]=w;c[l+(d+4)>>2]=w|1;c[l+(b+4)>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(x>>>0<i>>>0){c[12270]=x;k=x}else k=i;i=x+a|0;h=49512|0;do{if((c[h>>2]|0)==(i|0)){H=h;I=h;G=223;break}h=c[h+8>>2]|0}while((h|0)!=0);if((G|0)==223?(c[I+12>>2]&8|0)==0:0){c[H>>2]=x;i=I+4|0;c[i>>2]=(c[i>>2]|0)+a;i=x+8|0;if(!(i&7))p=0;else p=0-i&7;i=x+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=x+(d+a)|0;o=p+r|0;n=x+o|0;m=i-(x+p)-r|0;c[x+(p+4)>>2]=r|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){w=(c[12268]|0)+m|0;c[12268]=w;c[12271]=n;c[x+(o+4)>>2]=w|1;c[x+(w+o)>>2]=w;break}l=a+4|0;j=c[x+(l+d)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[x+((d|24)+a)>>2]|0;g=c[x+(a+12+d)>>2]|0;do if((g|0)==(i|0)){g=d|16;h=x+(l+g)|0;j=c[h>>2]|0;if(!j){h=x+(g+a)|0;j=c[h>>2]|0;if(!j){N=0;break}}while(1){g=j+20|0;f=c[g>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[g>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0<k>>>0)Kb();else{c[h>>2]=0;N=j;break}}else{f=c[x+((d|8)+a)>>2]|0;if(f>>>0<k>>>0)Kb();j=f+12|0;if((c[j>>2]|0)!=(i|0))Kb();h=g+8|0;if((c[h>>2]|0)==(i|0)){c[j>>2]=g;c[h>>2]=f;N=g;break}else Kb()}while(0);if(!e)break;j=c[x+(a+28+d)>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[h>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Kb();j=e+16|0;if((c[j>>2]|0)==(i|0))c[j>>2]=N;else c[e+20>>2]=N;if(!N)break i}else{c[h>>2]=N;if(N)break;c[12267]=c[12267]&~(1<<j);break i}while(0);h=c[12270]|0;if(N>>>0<h>>>0)Kb();c[N+24>>2]=e;j=d|16;i=c[x+(j+a)>>2]|0;do if(i)if(i>>>0<h>>>0)Kb();else{c[N+16>>2]=i;c[i+24>>2]=N;break}while(0);i=c[x+(l+j)>>2]|0;if(!i)break;if(i>>>0<(c[12270]|0)>>>0)Kb();else{c[N+20>>2]=i;c[i+24>>2]=N;break}}else{h=c[x+((d|8)+a)>>2]|0;g=c[x+(a+12+d)>>2]|0;j=49104+(f<<1<<2)|0;do if((h|0)!=(j|0)){if(h>>>0<k>>>0)Kb();if((c[h+12>>2]|0)==(i|0))break;Kb()}while(0);if((g|0)==(h|0)){c[12266]=c[12266]&~(1<<f);break}do if((g|0)==(j|0))J=g+8|0;else{if(g>>>0<k>>>0)Kb();j=g+8|0;if((c[j>>2]|0)==(i|0)){J=j;break}Kb()}while(0);c[h+12>>2]=g;c[J>>2]=h}while(0);i=x+((b|d)+a)|0;j=b+m|0}else j=m;i=i+4|0;c[i>>2]=c[i>>2]&-2;c[x+(o+4)>>2]=j|1;c[x+(j+o)>>2]=j;i=j>>>3;if(j>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<<i;do if(!(g&i)){c[12266]=g|i;O=49104+(h+2<<2)|0;P=f}else{i=49104+(h+2<<2)|0;h=c[i>>2]|0;if(h>>>0>=(c[12270]|0)>>>0){O=i;P=h;break}Kb()}while(0);c[O>>2]=n;c[P+12>>2]=n;c[x+(o+8)>>2]=P;c[x+(o+12)>>2]=f;break}d=j>>>8;do if(!d)f=0;else{if(j>>>0>16777215){f=31;break}v=(d+1048320|0)>>>16&8;w=d<<v;u=(w+520192|0)>>>16&4;w=w<<u;f=(w+245760|0)>>>16&2;f=14-(u|v|f)+(w<<f>>>15)|0;f=j>>>(f+7|0)&1|f<<1}while(0);i=49368+(f<<2)|0;c[x+(o+28)>>2]=f;c[x+(o+20)>>2]=0;c[x+(o+16)>>2]=0;h=c[12267]|0;g=1<<f;if(!(h&g)){c[12267]=h|g;c[i>>2]=n;c[x+(o+24)>>2]=i;c[x+(o+12)>>2]=n;c[x+(o+8)>>2]=n;break}d=c[i>>2]|0;if((f|0)==31)i=0;else i=25-(f>>>1)|0;j:do if((c[d+4>>2]&-8|0)!=(j|0)){h=j<<i;while(1){b=d+(h>>>31<<2)+16|0;i=c[b>>2]|0;if(!i)break;if((c[i+4>>2]&-8|0)==(j|0)){Q=i;break j}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Kb();else{c[b>>2]=n;c[x+(o+24)>>2]=d;c[x+(o+12)>>2]=n;c[x+(o+8)>>2]=n;break h}}else Q=d;while(0);d=Q+8|0;b=c[d>>2]|0;w=c[12270]|0;if(Q>>>0>=w>>>0&b>>>0>=w>>>0){c[b+12>>2]=n;c[d>>2]=n;c[x+(o+8)>>2]=b;c[x+(o+12)>>2]=Q;c[x+(o+24)>>2]=0;break}else Kb()}else{w=(c[12269]|0)+m|0;c[12269]=w;c[12272]=n;c[x+(o+4)>>2]=w|1}while(0);w=x+(p|8)|0;return w|0}h=49512|0;while(1){i=c[h>>2]|0;if(i>>>0<=l>>>0?(g=c[h+4>>2]|0,j=i+g|0,j>>>0>l>>>0):0)break;h=c[h+8>>2]|0}h=i+(g+-39)|0;if(!(h&7))h=0;else h=0-h&7;g=i+(g+-47+h)|0;g=g>>>0<(l+16|0)>>>0?l:g;h=g+8|0;i=x+8|0;if(!(i&7))i=0;else i=0-i&7;w=a+-40-i|0;c[12272]=x+i;c[12269]=w;c[x+(i+4)>>2]=w|1;c[x+(a+-36)>>2]=40;c[12273]=c[12388];c[g+4>>2]=27;c[h+0>>2]=c[12378];c[h+4>>2]=c[12379];c[h+8>>2]=c[12380];c[h+12>>2]=c[12381];c[12378]=x;c[12379]=a;c[12381]=0;c[12380]=h;i=g+28|0;c[i>>2]=7;if((g+32|0)>>>0<j>>>0)do{w=i;i=i+4|0;c[i>>2]=7}while((w+8|0)>>>0<j>>>0);if((g|0)!=(l|0)){j=g-l|0;i=l+(j+4)|0;c[i>>2]=c[i>>2]&-2;c[l+4>>2]=j|1;c[l+j>>2]=j;i=j>>>3;if(j>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<<i;do if(!(g&i)){c[12266]=g|i;K=49104+(h+2<<2)|0;L=f}else{d=49104+(h+2<<2)|0;b=c[d>>2]|0;if(b>>>0>=(c[12270]|0)>>>0){K=d;L=b;break}Kb()}while(0);c[K>>2]=l;c[L+12>>2]=l;c[l+8>>2]=L;c[l+12>>2]=f;break}d=j>>>8;if(d)if(j>>>0>16777215)i=31;else{v=(d+1048320|0)>>>16&8;w=d<<v;u=(w+520192|0)>>>16&4;w=w<<u;i=(w+245760|0)>>>16&2;i=14-(u|v|i)+(w<<i>>>15)|0;i=j>>>(i+7|0)&1|i<<1}else i=0;d=49368+(i<<2)|0;c[l+28>>2]=i;c[l+20>>2]=0;c[l+16>>2]=0;b=c[12267]|0;e=1<<i;if(!(b&e)){c[12267]=b|e;c[d>>2]=l;c[l+24>>2]=d;c[l+12>>2]=l;c[l+8>>2]=l;break}d=c[d>>2]|0;if((i|0)==31)b=0;else b=25-(i>>>1)|0;k:do if((c[d+4>>2]&-8|0)!=(j|0)){i=j<<b;while(1){b=d+(i>>>31<<2)+16|0;e=c[b>>2]|0;if(!e)break;if((c[e+4>>2]&-8|0)==(j|0)){M=e;break k}else{i=i<<1;d=e}}if(b>>>0<(c[12270]|0)>>>0)Kb();else{c[b>>2]=l;c[l+24>>2]=d;c[l+12>>2]=l;c[l+8>>2]=l;break g}}else M=d;while(0);d=M+8|0;b=c[d>>2]|0;w=c[12270]|0;if(M>>>0>=w>>>0&b>>>0>=w>>>0){c[b+12>>2]=l;c[d>>2]=l;c[l+8>>2]=b;c[l+12>>2]=M;c[l+24>>2]=0;break}else Kb()}}else{w=c[12270]|0;if((w|0)==0|x>>>0<w>>>0)c[12270]=x;c[12378]=x;c[12379]=a;c[12381]=0;c[12275]=c[12384];c[12274]=-1;d=0;do{w=d<<1;v=49104+(w<<2)|0;c[49104+(w+3<<2)>>2]=v;c[49104+(w+2<<2)>>2]=v;d=d+1|0}while((d|0)!=32);d=x+8|0;if(!(d&7))d=0;else d=0-d&7;w=a+-40-d|0;c[12272]=x+d;c[12269]=w;c[x+(d+4)>>2]=w|1;c[x+(a+-36)>>2]=40;c[12273]=c[12388]}while(0);b=c[12269]|0;if(b>>>0>r>>>0){v=b-r|0;c[12269]=v;w=c[12272]|0;c[12272]=w+r;c[w+(r+4)>>2]=v|1;c[w+4>>2]=r|3;w=w+8|0;return w|0}}c[(Db()|0)>>2]=12;w=0;return w|0}function Tv(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;if(!a)return;g=a+-8|0;h=c[12270]|0;if(g>>>0<h>>>0)Kb();f=c[a+-4>>2]|0;e=f&3;if((e|0)==1)Kb();o=f&-8;q=a+(o+-8)|0;do if(!(f&1)){g=c[g>>2]|0;if(!e)return;i=-8-g|0;l=a+i|0;m=g+o|0;if(l>>>0<h>>>0)Kb();if((l|0)==(c[12271]|0)){g=a+(o+-4)|0;f=c[g>>2]|0;if((f&3|0)!=3){u=l;k=m;break}c[12268]=m;c[g>>2]=f&-2;c[a+(i+4)>>2]=m|1;c[q>>2]=m;return}d=g>>>3;if(g>>>0<256){e=c[a+(i+8)>>2]|0;f=c[a+(i+12)>>2]|0;g=49104+(d<<1<<2)|0;if((e|0)!=(g|0)){if(e>>>0<h>>>0)Kb();if((c[e+12>>2]|0)!=(l|0))Kb()}if((f|0)==(e|0)){c[12266]=c[12266]&~(1<<d);u=l;k=m;break}if((f|0)!=(g|0)){if(f>>>0<h>>>0)Kb();g=f+8|0;if((c[g>>2]|0)==(l|0))b=g;else Kb()}else b=f+8|0;c[e+12>>2]=f;c[b>>2]=e;u=l;k=m;break}b=c[a+(i+24)>>2]|0;e=c[a+(i+12)>>2]|0;do if((e|0)==(l|0)){f=a+(i+20)|0;g=c[f>>2]|0;if(!g){f=a+(i+16)|0;g=c[f>>2]|0;if(!g){j=0;break}}while(1){e=g+20|0;d=c[e>>2]|0;if(d){g=d;f=e;continue}e=g+16|0;d=c[e>>2]|0;if(!d)break;else{g=d;f=e}}if(f>>>0<h>>>0)Kb();else{c[f>>2]=0;j=g;break}}else{d=c[a+(i+8)>>2]|0;if(d>>>0<h>>>0)Kb();g=d+12|0;if((c[g>>2]|0)!=(l|0))Kb();f=e+8|0;if((c[f>>2]|0)==(l|0)){c[g>>2]=e;c[f>>2]=d;j=e;break}else Kb()}while(0);if(b){g=c[a+(i+28)>>2]|0;f=49368+(g<<2)|0;if((l|0)==(c[f>>2]|0)){c[f>>2]=j;if(!j){c[12267]=c[12267]&~(1<<g);u=l;k=m;break}}else{if(b>>>0<(c[12270]|0)>>>0)Kb();g=b+16|0;if((c[g>>2]|0)==(l|0))c[g>>2]=j;else c[b+20>>2]=j;if(!j){u=l;k=m;break}}f=c[12270]|0;if(j>>>0<f>>>0)Kb();c[j+24>>2]=b;g=c[a+(i+16)>>2]|0;do if(g)if(g>>>0<f>>>0)Kb();else{c[j+16>>2]=g;c[g+24>>2]=j;break}while(0);g=c[a+(i+20)>>2]|0;if(g)if(g>>>0<(c[12270]|0)>>>0)Kb();else{c[j+20>>2]=g;c[g+24>>2]=j;u=l;k=m;break}else{u=l;k=m}}else{u=l;k=m}}else{u=g;k=o}while(0);if(u>>>0>=q>>>0)Kb();g=a+(o+-4)|0;f=c[g>>2]|0;if(!(f&1))Kb();if(!(f&2)){if((q|0)==(c[12272]|0)){l=(c[12269]|0)+k|0;c[12269]=l;c[12272]=u;c[u+4>>2]=l|1;if((u|0)!=(c[12271]|0))return;c[12271]=0;c[12268]=0;return}if((q|0)==(c[12271]|0)){l=(c[12268]|0)+k|0;c[12268]=l;c[12271]=u;c[u+4>>2]=l|1;c[u+l>>2]=l;return}h=(f&-8)+k|0;b=f>>>3;do if(f>>>0>=256){b=c[a+(o+16)>>2]|0;g=c[a+(o|4)>>2]|0;do if((g|0)==(q|0)){f=a+(o+12)|0;g=c[f>>2]|0;if(!g){f=a+(o+8)|0;g=c[f>>2]|0;if(!g){p=0;break}}while(1){e=g+20|0;d=c[e>>2]|0;if(d){g=d;f=e;continue}e=g+16|0;d=c[e>>2]|0;if(!d)break;else{g=d;f=e}}if(f>>>0<(c[12270]|0)>>>0)Kb();else{c[f>>2]=0;p=g;break}}else{f=c[a+o>>2]|0;if(f>>>0<(c[12270]|0)>>>0)Kb();e=f+12|0;if((c[e>>2]|0)!=(q|0))Kb();d=g+8|0;if((c[d>>2]|0)==(q|0)){c[e>>2]=g;c[d>>2]=f;p=g;break}else Kb()}while(0);if(b){g=c[a+(o+20)>>2]|0;f=49368+(g<<2)|0;if((q|0)==(c[f>>2]|0)){c[f>>2]=p;if(!p){c[12267]=c[12267]&~(1<<g);break}}else{if(b>>>0<(c[12270]|0)>>>0)Kb();g=b+16|0;if((c[g>>2]|0)==(q|0))c[g>>2]=p;else c[b+20>>2]=p;if(!p)break}g=c[12270]|0;if(p>>>0<g>>>0)Kb();c[p+24>>2]=b;f=c[a+(o+8)>>2]|0;do if(f)if(f>>>0<g>>>0)Kb();else{c[p+16>>2]=f;c[f+24>>2]=p;break}while(0);d=c[a+(o+12)>>2]|0;if(d)if(d>>>0<(c[12270]|0)>>>0)Kb();else{c[p+20>>2]=d;c[d+24>>2]=p;break}}}else{d=c[a+o>>2]|0;e=c[a+(o|4)>>2]|0;g=49104+(b<<1<<2)|0;if((d|0)!=(g|0)){if(d>>>0<(c[12270]|0)>>>0)Kb();if((c[d+12>>2]|0)!=(q|0))Kb()}if((e|0)==(d|0)){c[12266]=c[12266]&~(1<<b);break}if((e|0)!=(g|0)){if(e>>>0<(c[12270]|0)>>>0)Kb();f=e+8|0;if((c[f>>2]|0)==(q|0))n=f;else Kb()}else n=e+8|0;c[d+12>>2]=e;c[n>>2]=d}while(0);c[u+4>>2]=h|1;c[u+h>>2]=h;if((u|0)==(c[12271]|0)){c[12268]=h;return}else g=h}else{c[g>>2]=f&-2;c[u+4>>2]=k|1;c[u+k>>2]=k;g=k}f=g>>>3;if(g>>>0<256){e=f<<1;g=49104+(e<<2)|0;b=c[12266]|0;d=1<<f;if(b&d){d=49104+(e+2<<2)|0;b=c[d>>2]|0;if(b>>>0<(c[12270]|0)>>>0)Kb();else{r=d;s=b}}else{c[12266]=b|d;r=49104+(e+2<<2)|0;s=g}c[r>>2]=u;c[s+12>>2]=u;c[u+8>>2]=s;c[u+12>>2]=g;return}b=g>>>8;if(b)if(g>>>0>16777215)f=31;else{k=(b+1048320|0)>>>16&8;l=b<<k;j=(l+520192|0)>>>16&4;l=l<<j;f=(l+245760|0)>>>16&2;f=14-(j|k|f)+(l<<f>>>15)|0;f=g>>>(f+7|0)&1|f<<1}else f=0;d=49368+(f<<2)|0;c[u+28>>2]=f;c[u+20>>2]=0;c[u+16>>2]=0;b=c[12267]|0;e=1<<f;a:do if(b&e){d=c[d>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;b:do if((c[d+4>>2]&-8|0)!=(g|0)){f=g<<b;while(1){b=d+(f>>>31<<2)+16|0;e=c[b>>2]|0;if(!e)break;if((c[e+4>>2]&-8|0)==(g|0)){t=e;break b}else{f=f<<1;d=e}}if(b>>>0<(c[12270]|0)>>>0)Kb();else{c[b>>2]=u;c[u+24>>2]=d;c[u+12>>2]=u;c[u+8>>2]=u;break a}}else t=d;while(0);b=t+8|0;d=c[b>>2]|0;l=c[12270]|0;if(t>>>0>=l>>>0&d>>>0>=l>>>0){c[d+12>>2]=u;c[b>>2]=u;c[u+8>>2]=d;c[u+12>>2]=t;c[u+24>>2]=0;break}else Kb()}else{c[12267]=b|e;c[d>>2]=u;c[u+24>>2]=d;c[u+12>>2]=u;c[u+8>>2]=u}while(0);l=(c[12274]|0)+-1|0;c[12274]=l;if(!l)b=49520|0;else return;while(1){b=c[b>>2]|0;if(!b)break;else b=b+8|0}c[12274]=-1;return}function Uv(a,b){a=a|0;b=b|0;var d=0,e=0;if(!a){d=Sv(b)|0;return d|0}if(b>>>0>4294967231){c[(Db()|0)>>2]=12;d=0;return d|0}if(b>>>0<11)d=16;else d=b+11&-8;d=Yv(a+-8|0,d)|0;if(d){d=d+8|0;return d|0}d=Sv(b)|0;if(!d){d=0;return d|0}e=c[a+-4>>2]|0;e=(e&-8)-((e&3|0)==0?8:4)|0;gw(d|0,a|0,(e>>>0<b>>>0?e:b)|0)|0;Tv(a);return d|0}function Vv(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;if(!d){b=0;return b|0}else{f=d;e=b}while(1){d=a[e>>0]|0;b=a[c>>0]|0;if(d<<24>>24!=b<<24>>24)break;f=f+-1|0;if(!f){b=0;g=5;break}else{e=e+1|0;c=c+1|0}}if((g|0)==5)return b|0;b=(d&255)-(b&255)|0;return b|0}function Wv(b,c){b=b|0;c=c|0;var d=0,e=0;e=a[b>>0]|0;d=a[c>>0]|0;if(e<<24>>24==0?1:e<<24>>24!=d<<24>>24)c=e;else{do{b=b+1|0;c=c+1|0;e=a[b>>0]|0;d=a[c>>0]|0}while(!(e<<24>>24==0?1:e<<24>>24!=d<<24>>24));c=e}return (c&255)-(d&255)|0}function Xv(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0;if(!e){c=0;return c|0}f=a[b>>0]|0;a:do if(!(f<<24>>24))f=0;else while(1){e=e+-1|0;g=a[c>>0]|0;if(!(g<<24>>24!=0&(e|0)!=0&f<<24>>24==g<<24>>24))break a;b=b+1|0;c=c+1|0;f=a[b>>0]|0;if(!(f<<24>>24)){f=0;break}}while(0);c=(f&255)-(d[c>>0]|0)|0;return c|0}function Yv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;o=a+4|0;p=c[o>>2]|0;j=p&-8;l=a+j|0;i=c[12270]|0;e=p&3;if(!((e|0)!=1&a>>>0>=i>>>0&a>>>0<l>>>0))Kb();d=a+(j|4)|0;g=c[d>>2]|0;if(!(g&1))Kb();if(!e){if(b>>>0<256){m=0;return m|0}if(j>>>0>=(b+4|0)>>>0?(j-b|0)>>>0<=c[12386]<<1>>>0:0){m=a;return m|0}m=0;return m|0}if(j>>>0>=b>>>0){e=j-b|0;if(e>>>0<=15){m=a;return m|0}c[o>>2]=p&1|b|2;c[a+(b+4)>>2]=e|3;c[d>>2]=c[d>>2]|1;Zv(a+b|0,e);m=a;return m|0}if((l|0)==(c[12272]|0)){e=(c[12269]|0)+j|0;if(e>>>0<=b>>>0){m=0;return m|0}m=e-b|0;c[o>>2]=p&1|b|2;c[a+(b+4)>>2]=m|1;c[12272]=a+b;c[12269]=m;m=a;return m|0}if((l|0)==(c[12271]|0)){e=(c[12268]|0)+j|0;if(e>>>0<b>>>0){m=0;return m|0}d=e-b|0;if(d>>>0>15){c[o>>2]=p&1|b|2;c[a+(b+4)>>2]=d|1;c[a+e>>2]=d;e=a+(e+4)|0;c[e>>2]=c[e>>2]&-2;e=a+b|0}else{c[o>>2]=p&1|e|2;e=a+(e+4)|0;c[e>>2]=c[e>>2]|1;e=0;d=0}c[12268]=d;c[12271]=e;m=a;return m|0}if(g&2){m=0;return m|0}m=(g&-8)+j|0;if(m>>>0<b>>>0){m=0;return m|0}n=m-b|0;f=g>>>3;do if(g>>>0>=256){h=c[a+(j+24)>>2]|0;g=c[a+(j+12)>>2]|0;do if((g|0)==(l|0)){d=a+(j+20)|0;e=c[d>>2]|0;if(!e){d=a+(j+16)|0;e=c[d>>2]|0;if(!e){k=0;break}}while(1){f=e+20|0;g=c[f>>2]|0;if(g){e=g;d=f;continue}g=e+16|0;f=c[g>>2]|0;if(!f)break;else{e=f;d=g}}if(d>>>0<i>>>0)Kb();else{c[d>>2]=0;k=e;break}}else{f=c[a+(j+8)>>2]|0;if(f>>>0<i>>>0)Kb();e=f+12|0;if((c[e>>2]|0)!=(l|0))Kb();d=g+8|0;if((c[d>>2]|0)==(l|0)){c[e>>2]=g;c[d>>2]=f;k=g;break}else Kb()}while(0);if(h){e=c[a+(j+28)>>2]|0;d=49368+(e<<2)|0;if((l|0)==(c[d>>2]|0)){c[d>>2]=k;if(!k){c[12267]=c[12267]&~(1<<e);break}}else{if(h>>>0<(c[12270]|0)>>>0)Kb();e=h+16|0;if((c[e>>2]|0)==(l|0))c[e>>2]=k;else c[h+20>>2]=k;if(!k)break}d=c[12270]|0;if(k>>>0<d>>>0)Kb();c[k+24>>2]=h;e=c[a+(j+16)>>2]|0;do if(e)if(e>>>0<d>>>0)Kb();else{c[k+16>>2]=e;c[e+24>>2]=k;break}while(0);e=c[a+(j+20)>>2]|0;if(e)if(e>>>0<(c[12270]|0)>>>0)Kb();else{c[k+20>>2]=e;c[e+24>>2]=k;break}}}else{g=c[a+(j+8)>>2]|0;d=c[a+(j+12)>>2]|0;e=49104+(f<<1<<2)|0;if((g|0)!=(e|0)){if(g>>>0<i>>>0)Kb();if((c[g+12>>2]|0)!=(l|0))Kb()}if((d|0)==(g|0)){c[12266]=c[12266]&~(1<<f);break}if((d|0)!=(e|0)){if(d>>>0<i>>>0)Kb();e=d+8|0;if((c[e>>2]|0)==(l|0))h=e;else Kb()}else h=d+8|0;c[g+12>>2]=d;c[h>>2]=g}while(0);if(n>>>0<16){c[o>>2]=m|p&1|2;m=a+(m|4)|0;c[m>>2]=c[m>>2]|1;m=a;return m|0}else{c[o>>2]=p&1|b|2;c[a+(b+4)>>2]=n|3;m=a+(m|4)|0;c[m>>2]=c[m>>2]|1;Zv(a+b|0,n);m=a;return m|0}return 0}function Zv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;q=a+b|0;h=c[a+4>>2]|0;do if(!(h&1)){j=c[a>>2]|0;if(!(h&3))return;n=a+(0-j)|0;m=j+b|0;i=c[12270]|0;if(n>>>0<i>>>0)Kb();if((n|0)==(c[12271]|0)){g=a+(b+4)|0;h=c[g>>2]|0;if((h&3|0)!=3){t=n;l=m;break}c[12268]=m;c[g>>2]=h&-2;c[a+(4-j)>>2]=m|1;c[q>>2]=m;return}e=j>>>3;if(j>>>0<256){f=c[a+(8-j)>>2]|0;g=c[a+(12-j)>>2]|0;h=49104+(e<<1<<2)|0;if((f|0)!=(h|0)){if(f>>>0<i>>>0)Kb();if((c[f+12>>2]|0)!=(n|0))Kb()}if((g|0)==(f|0)){c[12266]=c[12266]&~(1<<e);t=n;l=m;break}if((g|0)!=(h|0)){if(g>>>0<i>>>0)Kb();h=g+8|0;if((c[h>>2]|0)==(n|0))d=h;else Kb()}else d=g+8|0;c[f+12>>2]=g;c[d>>2]=f;t=n;l=m;break}d=c[a+(24-j)>>2]|0;f=c[a+(12-j)>>2]|0;do if((f|0)==(n|0)){f=16-j|0;g=a+(f+4)|0;h=c[g>>2]|0;if(!h){g=a+f|0;h=c[g>>2]|0;if(!h){k=0;break}}while(1){f=h+20|0;e=c[f>>2]|0;if(e){h=e;g=f;continue}f=h+16|0;e=c[f>>2]|0;if(!e)break;else{h=e;g=f}}if(g>>>0<i>>>0)Kb();else{c[g>>2]=0;k=h;break}}else{e=c[a+(8-j)>>2]|0;if(e>>>0<i>>>0)Kb();h=e+12|0;if((c[h>>2]|0)!=(n|0))Kb();g=f+8|0;if((c[g>>2]|0)==(n|0)){c[h>>2]=f;c[g>>2]=e;k=f;break}else Kb()}while(0);if(d){h=c[a+(28-j)>>2]|0;g=49368+(h<<2)|0;if((n|0)==(c[g>>2]|0)){c[g>>2]=k;if(!k){c[12267]=c[12267]&~(1<<h);t=n;l=m;break}}else{if(d>>>0<(c[12270]|0)>>>0)Kb();h=d+16|0;if((c[h>>2]|0)==(n|0))c[h>>2]=k;else c[d+20>>2]=k;if(!k){t=n;l=m;break}}f=c[12270]|0;if(k>>>0<f>>>0)Kb();c[k+24>>2]=d;h=16-j|0;g=c[a+h>>2]|0;do if(g)if(g>>>0<f>>>0)Kb();else{c[k+16>>2]=g;c[g+24>>2]=k;break}while(0);h=c[a+(h+4)>>2]|0;if(h)if(h>>>0<(c[12270]|0)>>>0)Kb();else{c[k+20>>2]=h;c[h+24>>2]=k;t=n;l=m;break}else{t=n;l=m}}else{t=n;l=m}}else{t=a;l=b}while(0);i=c[12270]|0;if(q>>>0<i>>>0)Kb();h=a+(b+4)|0;g=c[h>>2]|0;if(!(g&2)){if((q|0)==(c[12272]|0)){m=(c[12269]|0)+l|0;c[12269]=m;c[12272]=t;c[t+4>>2]=m|1;if((t|0)!=(c[12271]|0))return;c[12271]=0;c[12268]=0;return}if((q|0)==(c[12271]|0)){m=(c[12268]|0)+l|0;c[12268]=m;c[12271]=t;c[t+4>>2]=m|1;c[t+m>>2]=m;return}j=(g&-8)+l|0;d=g>>>3;do if(g>>>0>=256){d=c[a+(b+24)>>2]|0;f=c[a+(b+12)>>2]|0;do if((f|0)==(q|0)){g=a+(b+20)|0;h=c[g>>2]|0;if(!h){g=a+(b+16)|0;h=c[g>>2]|0;if(!h){p=0;break}}while(1){f=h+20|0;e=c[f>>2]|0;if(e){h=e;g=f;continue}f=h+16|0;e=c[f>>2]|0;if(!e)break;else{h=e;g=f}}if(g>>>0<i>>>0)Kb();else{c[g>>2]=0;p=h;break}}else{e=c[a+(b+8)>>2]|0;if(e>>>0<i>>>0)Kb();h=e+12|0;if((c[h>>2]|0)!=(q|0))Kb();g=f+8|0;if((c[g>>2]|0)==(q|0)){c[h>>2]=f;c[g>>2]=e;p=f;break}else Kb()}while(0);if(d){h=c[a+(b+28)>>2]|0;g=49368+(h<<2)|0;if((q|0)==(c[g>>2]|0)){c[g>>2]=p;if(!p){c[12267]=c[12267]&~(1<<h);break}}else{if(d>>>0<(c[12270]|0)>>>0)Kb();g=d+16|0;if((c[g>>2]|0)==(q|0))c[g>>2]=p;else c[d+20>>2]=p;if(!p)break}f=c[12270]|0;if(p>>>0<f>>>0)Kb();c[p+24>>2]=d;g=c[a+(b+16)>>2]|0;do if(g)if(g>>>0<f>>>0)Kb();else{c[p+16>>2]=g;c[g+24>>2]=p;break}while(0);f=c[a+(b+20)>>2]|0;if(f)if(f>>>0<(c[12270]|0)>>>0)Kb();else{c[p+20>>2]=f;c[f+24>>2]=p;break}}}else{e=c[a+(b+8)>>2]|0;f=c[a+(b+12)>>2]|0;h=49104+(d<<1<<2)|0;if((e|0)!=(h|0)){if(e>>>0<i>>>0)Kb();if((c[e+12>>2]|0)!=(q|0))Kb()}if((f|0)==(e|0)){c[12266]=c[12266]&~(1<<d);break}if((f|0)!=(h|0)){if(f>>>0<i>>>0)Kb();g=f+8|0;if((c[g>>2]|0)==(q|0))o=g;else Kb()}else o=f+8|0;c[e+12>>2]=f;c[o>>2]=e}while(0);c[t+4>>2]=j|1;c[t+j>>2]=j;if((t|0)==(c[12271]|0)){c[12268]=j;return}else h=j}else{c[h>>2]=g&-2;c[t+4>>2]=l|1;c[t+l>>2]=l;h=l}g=h>>>3;if(h>>>0<256){e=g<<1;h=49104+(e<<2)|0;d=c[12266]|0;f=1<<g;if(d&f){f=49104+(e+2<<2)|0;e=c[f>>2]|0;if(e>>>0<(c[12270]|0)>>>0)Kb();else{r=f;s=e}}else{c[12266]=d|f;r=49104+(e+2<<2)|0;s=h}c[r>>2]=t;c[s+12>>2]=t;c[t+8>>2]=s;c[t+12>>2]=h;return}d=h>>>8;if(d)if(h>>>0>16777215)g=31;else{l=(d+1048320|0)>>>16&8;m=d<<l;k=(m+520192|0)>>>16&4;m=m<<k;g=(m+245760|0)>>>16&2;g=14-(k|l|g)+(m<<g>>>15)|0;g=h>>>(g+7|0)&1|g<<1}else g=0;f=49368+(g<<2)|0;c[t+28>>2]=g;c[t+20>>2]=0;c[t+16>>2]=0;e=c[12267]|0;d=1<<g;if(!(e&d)){c[12267]=e|d;c[f>>2]=t;c[t+24>>2]=f;c[t+12>>2]=t;c[t+8>>2]=t;return}d=c[f>>2]|0;if((g|0)==31)e=0;else e=25-(g>>>1)|0;a:do if((c[d+4>>2]&-8|0)!=(h|0)){g=h<<e;while(1){e=d+(g>>>31<<2)+16|0;f=c[e>>2]|0;if(!f)break;if((c[f+4>>2]&-8|0)==(h|0)){d=f;break a}else{g=g<<1;d=f}}if(e>>>0<(c[12270]|0)>>>0)Kb();c[e>>2]=t;c[t+24>>2]=d;c[t+12>>2]=t;c[t+8>>2]=t;return}while(0);e=d+8|0;f=c[e>>2]|0;m=c[12270]|0;if(!(d>>>0>=m>>>0&f>>>0>=m>>>0))Kb();c[f+12>>2]=t;c[e>>2]=t;c[t+8>>2]=f;c[t+12>>2]=d;c[t+24>>2]=0;return}function _v(){}function $v(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=b-d-(c>>>0>a>>>0|0)>>>0;return (C=b,a-c>>>0|0)|0}function aw(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){C=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}C=(b|0)<0?-1:0;return b>>c-32|0}function bw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;h=b&3;i=d|d<<8|d<<16|d<<24;g=f&~3;if(h){h=b+4-h|0;while((b|0)<(h|0)){a[b>>0]=d;b=b+1|0}}while((b|0)<(g|0)){c[b>>2]=i;b=b+4|0}}while((b|0)<(f|0)){a[b>>0]=d;b=b+1|0}return b-e|0}function cw(b){b=b|0;var c=0;c=b;while(a[c>>0]|0)c=c+1|0;return c-b|0}function dw(b,c){b=b|0;c=c|0;var d=0,e=0;e=b+(cw(b)|0)|0;do{a[e+d>>0]=a[c+d>>0];d=d+1|0}while(a[c+(d-1)>>0]|0);return b|0}function ew(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){C=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}C=a<<c-32;return 0}function fw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return (C=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function gw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return qb(b|0,d|0,e|0)|0;f=b|0;if((b&3)==(d&3)){while(b&3){if(!e)return f|0;a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function hw(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[b>>0]=a[c>>0]|0}b=e}else gw(b,c,d)|0;return b|0}function iw(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){C=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}C=0;return b>>>c-32|0}function jw(a){a=a|0;return (a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>>24|0}function kw(b){b=b|0;var c=0;c=a[m+(b&255)>>0]|0;if((c|0)<8)return c|0;c=a[m+(b>>8&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[m+(b>>16&255)>>0]|0;if((c|0)<8)return c+16|0;return (a[m+(b>>>24)>>0]|0)+24|0}function lw(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;d=b&65535;c=_(d,f)|0;e=a>>>16;d=(c>>>16)+(_(d,e)|0)|0;b=b>>>16;a=_(b,f)|0;return (C=(d>>>16)+(_(b,e)|0)+(((d&65535)+a|0)>>>16)|0,d+a<<16|c&65535|0)|0}function mw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=b>>31|((b|0)<0?-1:0)<<1;i=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;f=d>>31|((d|0)<0?-1:0)<<1;e=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;h=$v(j^a,i^b,j,i)|0;g=C;b=f^j;a=e^i;a=$v((rw(h,g,$v(f^c,e^d,f,e)|0,C,0)|0)^b,C^a,b,a)|0;return a|0}function nw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+8|0;j=f|0;h=b>>31|((b|0)<0?-1:0)<<1;g=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;l=e>>31|((e|0)<0?-1:0)<<1;k=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;b=$v(h^a,g^b,h,g)|0;a=C;rw(b,a,$v(l^d,k^e,l,k)|0,C,j)|0;a=$v(c[j>>2]^h,c[j+4>>2]^g,h,g)|0;b=C;i=f;return (C=b,a)|0}function ow(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;a=lw(e,f)|0;c=C;return (C=(_(b,f)|0)+(_(d,e)|0)+c|c&0,a|0|0)|0}function pw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=rw(a,b,c,d,0)|0;return a|0}function qw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+8|0;f=g|0;rw(a,b,d,e,f)|0;i=g;return (C=c[f+4>>2]|0,c[f>>2]|0)|0}function rw(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;n=a;l=b;m=l;k=d;o=e;i=o;if(!m){g=(f|0)!=0;if(!i){if(g){c[f>>2]=(n>>>0)%(k>>>0);c[f+4>>2]=0}l=0;m=(n>>>0)/(k>>>0)>>>0;return (C=l,m)|0}else{if(!g){l=0;m=0;return (C=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;l=0;m=0;return (C=l,m)|0}}j=(i|0)==0;do if(k){if(!j){h=(aa(i|0)|0)-(aa(m|0)|0)|0;if(h>>>0<=31){g=h+1|0;l=31-h|0;k=h-31>>31;i=g;j=n>>>(g>>>0)&k|m<<l;k=m>>>(g>>>0)&k;g=0;h=n<<l;break}if(!f){l=0;m=0;return (C=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=l|b&0;l=0;m=0;return (C=l,m)|0}j=k-1|0;if(j&k){h=(aa(k|0)|0)+33-(aa(m|0)|0)|0;p=64-h|0;l=32-h|0;a=l>>31;b=h-32|0;k=b>>31;i=h;j=l-1>>31&m>>>(b>>>0)|(m<<l|n>>>(h>>>0))&k;k=k&m>>>(h>>>0);g=n<<p&a;h=(m<<p|n>>>(b>>>0))&a|n<<l&h-33>>31;break}if(f){c[f>>2]=j&n;c[f+4>>2]=0}if((k|0)==1){l=l|b&0;m=a|0|0;return (C=l,m)|0}else{a=kw(k|0)|0;l=m>>>(a>>>0)|0;m=m<<32-a|n>>>(a>>>0)|0;return (C=l,m)|0}}else{if(j){if(f){c[f>>2]=(m>>>0)%(k>>>0);c[f+4>>2]=0}l=0;m=(m>>>0)/(k>>>0)>>>0;return (C=l,m)|0}if(!n){if(f){c[f>>2]=0;c[f+4>>2]=(m>>>0)%(i>>>0)}l=0;m=(m>>>0)/(i>>>0)>>>0;return (C=l,m)|0}j=i-1|0;if(!(j&i)){if(f){c[f>>2]=a|0;c[f+4>>2]=j&m|b&0}l=0;m=m>>>((kw(i|0)|0)>>>0);return (C=l,m)|0}h=(aa(i|0)|0)-(aa(m|0)|0)|0;if(h>>>0<=30){k=h+1|0;h=31-h|0;i=k;j=m<<h|n>>>(k>>>0);k=m>>>(k>>>0);g=0;h=n<<h;break}if(!f){l=0;m=0;return (C=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=l|b&0;l=0;m=0;return (C=l,m)|0}while(0);if(!i){l=h;i=0;h=0}else{m=d|0|0;l=o|e&0;b=fw(m,l,-1,-1)|0;a=C;d=h;h=0;do{p=d;d=g>>>31|d<<1;g=h|g<<1;p=j<<1|p>>>31|0;o=j>>>31|k<<1|0;$v(b,a,p,o)|0;n=C;e=n>>31|((n|0)<0?-1:0)<<1;h=e&1;j=$v(p,o,e&m,(((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1)&l)|0;k=C;i=i-1|0}while((i|0)!=0);l=d;i=0}d=0;if(f){c[f>>2]=j;c[f+4>>2]=k}l=(g|0)>>>31|(l|d)<<1|(d<<1|g>>>31)&0|i;m=(g<<1|0>>>31)&-2|h;return (C=l,m)|0}function sw(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return Xb[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function tw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Yb[a&63](b|0,c|0,d|0)|0}function uw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Zb[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function vw(a,b){a=a|0;b=b|0;_b[a&31](b|0)}function ww(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;$b[a&1](b|0,c|0,d|0,e|0,f|0)}function xw(a,b,c){a=a|0;b=b|0;c=c|0;return +ac[a&1](b|0,c|0)}function yw(a,b,c){a=a|0;b=b|0;c=+c;bc[a&1](b|0,+c)}function zw(a,b){a=a|0;b=b|0;return +cc[a&1](b|0)}function Aw(a){a=a|0;return dc[a&7]()|0}function Bw(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;return ec[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)|0}function Cw(a,b,c){a=a|0;b=b|0;c=c|0;fc[a&15](b|0,c|0)}function Dw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return gc[a&7](b|0,c|0,d|0,e|0,f|0,g|0)|0}function Ew(a,b){a=a|0;b=b|0;return hc[a&127](b|0)|0}function Fw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ic[a&63](b|0,c|0,d|0)}function Gw(a){a=a|0;jc[a&3]()}function Hw(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return kc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function Iw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return lc[a&31](b|0,c|0,d|0,e|0)|0}function Jw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;mc[a&15](b|0,c|0,d|0,e|0)}function Kw(a,b,c){a=a|0;b=b|0;c=c|0;return nc[a&127](b|0,c|0)|0}function Lw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oc[a&1](b|0,c|0,+d)|0}function Mw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pc[a&31](b|0,c|0,d|0,e|0,f|0)|0}function Nw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;da(0);return 0}function Ow(a,b,c){a=a|0;b=b|0;c=c|0;ea(1);return 0}function Pw(a,b,c){a=a|0;b=b|0;c=c|0;return pb(a|0,b|0,c|0)|0}function Qw(a,b,c){a=a|0;b=b|0;c=c|0;return Ub(a|0,b|0,c|0)|0}function Rw(a,b,c){a=a|0;b=b|0;c=c|0;return Bb(a|0,b|0,c|0)|0}function Sw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;fa(2)}function Tw(a){a=a|0;ga(3)}function Uw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ha(4)}function Vw(a,b){a=a|0;b=b|0;ia(5);return 0.0}function Ww(a,b){a=a|0;b=+b;ja(6)}function Xw(a){a=a|0;ka(7);return 0.0}function Yw(){la(8);return 0}function Zw(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;ma(9);return 0}function _w(a,b){a=a|0;b=b|0;na(10)}function $w(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;oa(11);return 0}function ax(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Qb(a|0,b|0,c|0,d|0,e|0,f|0)|0}function bx(a){a=a|0;pa(12);return 0}function cx(a){a=a|0;return Tb(a|0)|0}function dx(a){a=a|0;return rb(a|0)|0}function ex(a){a=a|0;return db(a|0)|0}function fx(a,b,c){a=a|0;b=b|0;c=c|0;qa(13)}function gx(){ra(14)}function hx(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;sa(15);return 0}function ix(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ta(16);return 0}function jx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ua(17)}function kx(a,b){a=a|0;b=b|0;va(18);return 0}function lx(a,b){a=a|0;b=b|0;return ab(a|0,b|0)|0}function mx(a,b){a=a|0;b=b|0;return Sb(a|0,b|0)|0}function nx(a,b){a=a|0;b=b|0;return Eb(a|0,b|0)|0}function ox(a,b){a=a|0;b=b|0;return bb(a|0,b|0)|0}function px(a,b){a=a|0;b=b|0;return vb(a|0,b|0)|0}function qx(a,b){a=a|0;b=b|0;return tb(a|0,b|0)|0}function rx(a,b){a=a|0;b=b|0;return wb(a|0,b|0)|0}function sx(a,b){a=a|0;b=b|0;return Pb(a|0,b|0)|0}function tx(a,b,c){a=a|0;b=b|0;c=+c;wa(19);return 0}function ux(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;xa(20);return 0}
// EMSCRIPTEN_END_FUNCS
var Xb=[Nw,qe];var Yb=[Ow,hi,mi,oi,ri,ti,me,se,rf,Tf,Uf,Bf,Af,Df,Ke,zf,Cf,yf,te,Mf,lf,Ce,Bc,Ff,Je,af,bg,Uc,Ci,Hi,Ki,ak,gk,ok,Pw,Qw,Rw,qk,xp,yp,wp,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow];var Zb=[Sw,Fd];var _b=[Tw,Sc,Xe,uf,Dd,Nd,Md,Nc,Gi,Oi,Pi,Ri,Wi,_i,Bj,Cj,Dj,Fj,Hj,kk,mo,up,ml,Tw,Tw,Tw,Tw,Tw,Tw,Tw,Tw,Tw];var $b=[Uw,xd];var ac=[Vw,_d];var bc=[Ww,yd];var cc=[Xw,pd];var dc=[Yw,df,ff,Mc,gf,ef,rk,Yw];var ec=[Zw,Xf,wf,Zw];var fc=[_w,ni,Bd,Jd,Kd,Ld,_c,Ii,Ni,nu,ou,_w,_w,_w,_w,_w];var gc=[$w,We,Rf,ke,ax,$w,$w,$w];var hc=[bx,Ud,ue,nf,pf,Vd,bf,cf,Wd,ye,ad,Jf,Oe,If,hd,id,Vf,mf,Pc,jd,Od,of,Pd,ld,nd,od,qd,rd,De,md,sd,td,ud,vd,kd,Ie,Fe,Oc,Kc,Yf,Gc,Jc,Qd,gd,dd,fd,ed,Cc,Ac,jf,Kf,$e,qf,kf,Lf,Ae,ze,Qe,Re,Rc,zi,Fi,Ji,Qi,Ti,Ui,Vi,Zj,hk,ik,cx,dx,ex,sk,wk,Tk,cl,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx];var ic=[fx,li,zd,Ad,Cd,Zc,Li,Xi,Yi,Zi,$i,aj,bj,cj,dj,ej,fj,gj,hj,ij,jj,kj,lj,mj,nj,oj,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,Aj,Ej,Gj,Ij,Jj,Kj,Lj,Mj,Nj,Oj,Pj,Qj,Rj,Sj,Tj,Uj,Vj,Wj,Xj,Yj,Ph,fx,fx,fx,fx,fx,fx];var jc=[gx,Wf,Se,gx];var kc=[hx,vf,xf,Ee];var lc=[ix,ii,ji,ne,Ye,Yc,Ge,He,_f,Of,Ec,bd,cg,Xc,Pe,jk,nk,zc,zh,Bh,Fh,Qh,Xm,$p,ix,ix,ix,ix,ix,ix,ix,ix];var mc=[jx,sf,wd,Ed,Gd,Hd,Id,Td,Mi,lg,jx,jx,jx,jx,jx,jx];var nc=[kx,ki,pi,qi,si,ui,vi,wi,xi,yi,Rd,oe,we,ve,tf,Xd,Yd,Zd,he,ie,$d,ae,fe,ge,be,de,ee,ce,_e,Sd,Wc,Nf,Pf,Tc,xe,Vc,Ic,$f,Zf,Be,cd,Lc,Ef,Hf,dg,eg,$c,ag,Qc,Le,Di,Ei,Si,bk,ck,dk,ek,fk,lk,lx,mx,nx,ox,px,qx,pk,rx,sx,tk,uk,vk,xk,yk,zk,Lh,tp,zm,Am,ls,ms,Vs,Ws,cu,du,ku,lu,mu,lv,Ov,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx];var oc=[tx,le];var pc=[ux,gi,je,pe,re,Qf,Sf,Me,Te,Ue,Ne,Ve,Ze,Fc,Gf,Ai,Bi,_j,$j,mk,Ak,Qn,Rn,ux,ux,ux,ux,ux,ux,ux,ux,ux];return{_i64Subtract:$v,_strcat:dw,_free:Tv,_main:yc,_realloc:Uv,_i64Add:fw,_memmove:hw,_bitshift64Ashr:aw,_strlen:cw,_memset:bw,_malloc:Sv,_memcpy:gw,_bitshift64Lshr:iw,_llvm_bswap_i32:jw,_bitshift64Shl:ew,runPostSets:_v,stackAlloc:qc,stackSave:rc,stackRestore:sc,setThrew:tc,setTempRet0:wc,getTempRet0:xc,dynCall_iiiiiiii:sw,dynCall_iiii:tw,dynCall_viiiiii:uw,dynCall_vi:vw,dynCall_viiiii:ww,dynCall_dii:xw,dynCall_vid:yw,dynCall_di:zw,dynCall_i:Aw,dynCall_iiiiiiiiii:Bw,dynCall_vii:Cw,dynCall_iiiiiii:Dw,dynCall_ii:Ew,dynCall_viii:Fw,dynCall_v:Gw,dynCall_iiiiiiiii:Hw,dynCall_iiiii:Iw,dynCall_viiii:Jw,dynCall_iii:Kw,dynCall_iiid:Lw,dynCall_iiiiii:Mw}})
// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var real__i64Subtract=asm["_i64Subtract"];asm["_i64Subtract"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__i64Subtract.apply(null,arguments)});var real__strcat=asm["_strcat"];asm["_strcat"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__strcat.apply(null,arguments)});var real__main=asm["_main"];asm["_main"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__main.apply(null,arguments)});var real__realloc=asm["_realloc"];asm["_realloc"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__realloc.apply(null,arguments)});var real__i64Add=asm["_i64Add"];asm["_i64Add"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__i64Add.apply(null,arguments)});var real__memmove=asm["_memmove"];asm["_memmove"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__memmove.apply(null,arguments)});var real__bitshift64Ashr=asm["_bitshift64Ashr"];asm["_bitshift64Ashr"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Ashr.apply(null,arguments)});var real__strlen=asm["_strlen"];asm["_strlen"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__strlen.apply(null,arguments)});var real__bitshift64Lshr=asm["_bitshift64Lshr"];asm["_bitshift64Lshr"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Lshr.apply(null,arguments)});var real__llvm_bswap_i32=asm["_llvm_bswap_i32"];asm["_llvm_bswap_i32"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__llvm_bswap_i32.apply(null,arguments)});var real__bitshift64Shl=asm["_bitshift64Shl"];asm["_bitshift64Shl"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Shl.apply(null,arguments)});var real_runPostSets=asm["runPostSets"];asm["runPostSets"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real_runPostSets.apply(null,arguments)});var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _strcat=Module["_strcat"]=asm["_strcat"];var _free=Module["_free"]=asm["_free"];var _main=Module["_main"]=asm["_main"];var _realloc=Module["_realloc"]=asm["_realloc"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _memmove=Module["_memmove"]=asm["_memmove"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _strlen=Module["_strlen"]=asm["_strlen"];var _memset=Module["_memset"]=asm["_memset"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var dynCall_iiiiiiii=Module["dynCall_iiiiiiii"]=asm["dynCall_iiiiiiii"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_viiiii=Module["dynCall_viiiii"]=asm["dynCall_viiiii"];var dynCall_dii=Module["dynCall_dii"]=asm["dynCall_dii"];var dynCall_vid=Module["dynCall_vid"]=asm["dynCall_vid"];var dynCall_di=Module["dynCall_di"]=asm["dynCall_di"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_iiiiiiiiii=Module["dynCall_iiiiiiiiii"]=asm["dynCall_iiiiiiiiii"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_iiiiiii=Module["dynCall_iiiiiii"]=asm["dynCall_iiiiiii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_viii=Module["dynCall_viii"]=asm["dynCall_viii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_iiiiiiiii=Module["dynCall_iiiiiiiii"]=asm["dynCall_iiiiiiiii"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_iiid=Module["dynCall_iiid"]=asm["dynCall_iiid"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];Runtime.stackAlloc=asm["stackAlloc"];Runtime.stackSave=asm["stackSave"];Runtime.stackRestore=asm["stackRestore"];Runtime.setTempRet0=asm["setTempRet0"];Runtime.getTempRet0=asm["getTempRet0"];var i64Math=(function(){var goog={math:{}};goog.math.Long=(function(low,high){this.low_=low|0;this.high_=high|0});goog.math.Long.IntCache_={};goog.math.Long.fromInt=(function(value){if(-128<=value&&value<128){var cachedObj=goog.math.Long.IntCache_[value];if(cachedObj){return cachedObj}}var obj=new goog.math.Long(value|0,value<0?-1:0);if(-128<=value&&value<128){goog.math.Long.IntCache_[value]=obj}return obj});goog.math.Long.fromNumber=(function(value){if(isNaN(value)||!isFinite(value)){return goog.math.Long.ZERO}else if(value<=-goog.math.Long.TWO_PWR_63_DBL_){return goog.math.Long.MIN_VALUE}else if(value+1>=goog.math.Long.TWO_PWR_63_DBL_){return goog.math.Long.MAX_VALUE}else if(value<0){return goog.math.Long.fromNumber(-value).negate()}else{return new goog.math.Long(value%goog.math.Long.TWO_PWR_32_DBL_|0,value/goog.math.Long.TWO_PWR_32_DBL_|0)}});goog.math.Long.fromBits=(function(lowBits,highBits){return new goog.math.Long(lowBits,highBits)});goog.math.Long.fromString=(function(str,opt_radix){if(str.length==0){throw Error("number format error: empty string")}var radix=opt_radix||10;if(radix<2||36<radix){throw Error("radix out of range: "+radix)}if(str.charAt(0)=="-"){return goog.math.Long.fromString(str.substring(1),radix).negate()}else if(str.indexOf("-")>=0){throw Error('number format error: interior "-" character: '+str)}var radixToPower=goog.math.Long.fromNumber(Math.pow(radix,8));var result=goog.math.Long.ZERO;for(var i=0;i<str.length;i+=8){var size=Math.min(8,str.length-i);var value=parseInt(str.substring(i,i+size),radix);if(size<8){var power=goog.math.Long.fromNumber(Math.pow(radix,size));result=result.multiply(power).add(goog.math.Long.fromNumber(value))}else{result=result.multiply(radixToPower);result=result.add(goog.math.Long.fromNumber(value))}}return result});goog.math.Long.TWO_PWR_16_DBL_=1<<16;goog.math.Long.TWO_PWR_24_DBL_=1<<24;goog.math.Long.TWO_PWR_32_DBL_=goog.math.Long.TWO_PWR_16_DBL_*goog.math.Long.TWO_PWR_16_DBL_;goog.math.Long.TWO_PWR_31_DBL_=goog.math.Long.TWO_PWR_32_DBL_/2;goog.math.Long.TWO_PWR_48_DBL_=goog.math.Long.TWO_PWR_32_DBL_*goog.math.Long.TWO_PWR_16_DBL_;goog.math.Long.TWO_PWR_64_DBL_=goog.math.Long.TWO_PWR_32_DBL_*goog.math.Long.TWO_PWR_32_DBL_;goog.math.Long.TWO_PWR_63_DBL_=goog.math.Long.TWO_PWR_64_DBL_/2;goog.math.Long.ZERO=goog.math.Long.fromInt(0);goog.math.Long.ONE=goog.math.Long.fromInt(1);goog.math.Long.NEG_ONE=goog.math.Long.fromInt(-1);goog.math.Long.MAX_VALUE=goog.math.Long.fromBits(4294967295|0,2147483647|0);goog.math.Long.MIN_VALUE=goog.math.Long.fromBits(0,2147483648|0);goog.math.Long.TWO_PWR_24_=goog.math.Long.fromInt(1<<24);goog.math.Long.prototype.toInt=(function(){return this.low_});goog.math.Long.prototype.toNumber=(function(){return this.high_*goog.math.Long.TWO_PWR_32_DBL_+this.getLowBitsUnsigned()});goog.math.Long.prototype.toString=(function(opt_radix){var radix=opt_radix||10;if(radix<2||36<radix){throw Error("radix out of range: "+radix)}if(this.isZero()){return"0"}if(this.isNegative()){if(this.equals(goog.math.Long.MIN_VALUE)){var radixLong=goog.math.Long.fromNumber(radix);var div=this.div(radixLong);var rem=div.multiply(radixLong).subtract(this);return div.toString(radix)+rem.toInt().toString(radix)}else{return"-"+this.negate().toString(radix)}}var radixToPower=goog.math.Long.fromNumber(Math.pow(radix,6));var rem=this;var result="";while(true){var remDiv=rem.div(radixToPower);var intval=rem.subtract(remDiv.multiply(radixToPower)).toInt();var digits=intval.toString(radix);rem=remDiv;if(rem.isZero()){return digits+result}else{while(digits.length<6){digits="0"+digits}result=""+digits+result}}});goog.math.Long.prototype.getHighBits=(function(){return this.high_});goog.math.Long.prototype.getLowBits=(function(){return this.low_});goog.math.Long.prototype.getLowBitsUnsigned=(function(){return this.low_>=0?this.low_:goog.math.Long.TWO_PWR_32_DBL_+this.low_});goog.math.Long.prototype.getNumBitsAbs=(function(){if(this.isNegative()){if(this.equals(goog.math.Long.MIN_VALUE)){return 64}else{return this.negate().getNumBitsAbs()}}else{var val=this.high_!=0?this.high_:this.low_;for(var bit=31;bit>0;bit--){if((val&1<<bit)!=0){break}}return this.high_!=0?bit+33:bit+1}});goog.math.Long.prototype.isZero=(function(){return this.high_==0&&this.low_==0});goog.math.Long.prototype.isNegative=(function(){return this.high_<0});goog.math.Long.prototype.isOdd=(function(){return(this.low_&1)==1});goog.math.Long.prototype.equals=(function(other){return this.high_==other.high_&&this.low_==other.low_});goog.math.Long.prototype.notEquals=(function(other){return this.high_!=other.high_||this.low_!=other.low_});goog.math.Long.prototype.lessThan=(function(other){return this.compare(other)<0});goog.math.Long.prototype.lessThanOrEqual=(function(other){return this.compare(other)<=0});goog.math.Long.prototype.greaterThan=(function(other){return this.compare(other)>0});goog.math.Long.prototype.greaterThanOrEqual=(function(other){return this.compare(other)>=0});goog.math.Long.prototype.compare=(function(other){if(this.equals(other)){return 0}var thisNeg=this.isNegative();var otherNeg=other.isNegative();if(thisNeg&&!otherNeg){return-1}if(!thisNeg&&otherNeg){return 1}if(this.subtract(other).isNegative()){return-1}else{return 1}});goog.math.Long.prototype.negate=(function(){if(this.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.MIN_VALUE}else{return this.not().add(goog.math.Long.ONE)}});goog.math.Long.prototype.add=(function(other){var a48=this.high_>>>16;var a32=this.high_&65535;var a16=this.low_>>>16;var a00=this.low_&65535;var b48=other.high_>>>16;var b32=other.high_&65535;var b16=other.low_>>>16;var b00=other.low_&65535;var c48=0,c32=0,c16=0,c00=0;c00+=a00+b00;c16+=c00>>>16;c00&=65535;c16+=a16+b16;c32+=c16>>>16;c16&=65535;c32+=a32+b32;c48+=c32>>>16;c32&=65535;c48+=a48+b48;c48&=65535;return goog.math.Long.fromBits(c16<<16|c00,c48<<16|c32)});goog.math.Long.prototype.subtract=(function(other){return this.add(other.negate())});goog.math.Long.prototype.multiply=(function(other){if(this.isZero()){return goog.math.Long.ZERO}else if(other.isZero()){return goog.math.Long.ZERO}if(this.equals(goog.math.Long.MIN_VALUE)){return other.isOdd()?goog.math.Long.MIN_VALUE:goog.math.Long.ZERO}else if(other.equals(goog.math.Long.MIN_VALUE)){return this.isOdd()?goog.math.Long.MIN_VALUE:goog.math.Long.ZERO}if(this.isNegative()){if(other.isNegative()){return this.negate().multiply(other.negate())}else{return this.negate().multiply(other).negate()}}else if(other.isNegative()){return this.multiply(other.negate()).negate()}if(this.lessThan(goog.math.Long.TWO_PWR_24_)&&other.lessThan(goog.math.Long.TWO_PWR_24_)){return goog.math.Long.fromNumber(this.toNumber()*other.toNumber())}var a48=this.high_>>>16;var a32=this.high_&65535;var a16=this.low_>>>16;var a00=this.low_&65535;var b48=other.high_>>>16;var b32=other.high_&65535;var b16=other.low_>>>16;var b00=other.low_&65535;var c48=0,c32=0,c16=0,c00=0;c00+=a00*b00;c16+=c00>>>16;c00&=65535;c16+=a16*b00;c32+=c16>>>16;c16&=65535;c16+=a00*b16;c32+=c16>>>16;c16&=65535;c32+=a32*b00;c48+=c32>>>16;c32&=65535;c32+=a16*b16;c48+=c32>>>16;c32&=65535;c32+=a00*b32;c48+=c32>>>16;c32&=65535;c48+=a48*b00+a32*b16+a16*b32+a00*b48;c48&=65535;return goog.math.Long.fromBits(c16<<16|c00,c48<<16|c32)});goog.math.Long.prototype.div=(function(other){if(other.isZero()){throw Error("division by zero")}else if(this.isZero()){return goog.math.Long.ZERO}if(this.equals(goog.math.Long.MIN_VALUE)){if(other.equals(goog.math.Long.ONE)||other.equals(goog.math.Long.NEG_ONE)){return goog.math.Long.MIN_VALUE}else if(other.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.ONE}else{var halfThis=this.shiftRight(1);var approx=halfThis.div(other).shiftLeft(1);if(approx.equals(goog.math.Long.ZERO)){return other.isNegative()?goog.math.Long.ONE:goog.math.Long.NEG_ONE}else{var rem=this.subtract(other.multiply(approx));var result=approx.add(rem.div(other));return result}}}else if(other.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.ZERO}if(this.isNegative()){if(other.isNegative()){return this.negate().div(other.negate())}else{return this.negate().div(other).negate()}}else if(other.isNegative()){return this.div(other.negate()).negate()}var res=goog.math.Long.ZERO;var rem=this;while(rem.greaterThanOrEqual(other)){var approx=Math.max(1,Math.floor(rem.toNumber()/other.toNumber()));var log2=Math.ceil(Math.log(approx)/Math.LN2);var delta=log2<=48?1:Math.pow(2,log2-48);var approxRes=goog.math.Long.fromNumber(approx);var approxRem=approxRes.multiply(other);while(approxRem.isNegative()||approxRem.greaterThan(rem)){approx-=delta;approxRes=goog.math.Long.fromNumber(approx);approxRem=approxRes.multiply(other)}if(approxRes.isZero()){approxRes=goog.math.Long.ONE}res=res.add(approxRes);rem=rem.subtract(approxRem)}return res});goog.math.Long.prototype.modulo=(function(other){return this.subtract(this.div(other).multiply(other))});goog.math.Long.prototype.not=(function(){return goog.math.Long.fromBits(~this.low_,~this.high_)});goog.math.Long.prototype.and=(function(other){return goog.math.Long.fromBits(this.low_&other.low_,this.high_&other.high_)});goog.math.Long.prototype.or=(function(other){return goog.math.Long.fromBits(this.low_|other.low_,this.high_|other.high_)});goog.math.Long.prototype.xor=(function(other){return goog.math.Long.fromBits(this.low_^other.low_,this.high_^other.high_)});goog.math.Long.prototype.shiftLeft=(function(numBits){numBits&=63;if(numBits==0){return this}else{var low=this.low_;if(numBits<32){var high=this.high_;return goog.math.Long.fromBits(low<<numBits,high<<numBits|low>>>32-numBits)}else{return goog.math.Long.fromBits(0,low<<numBits-32)}}});goog.math.Long.prototype.shiftRight=(function(numBits){numBits&=63;if(numBits==0){return this}else{var high=this.high_;if(numBits<32){var low=this.low_;return goog.math.Long.fromBits(low>>>numBits|high<<32-numBits,high>>numBits)}else{return goog.math.Long.fromBits(high>>numBits-32,high>=0?0:-1)}}});goog.math.Long.prototype.shiftRightUnsigned=(function(numBits){numBits&=63;if(numBits==0){return this}else{var high=this.high_;if(numBits<32){var low=this.low_;return goog.math.Long.fromBits(low>>>numBits|high<<32-numBits,high>>>numBits)}else if(numBits==32){return goog.math.Long.fromBits(high,0)}else{return goog.math.Long.fromBits(high>>>numBits-32,0)}}});var navigator={appName:"Modern Browser"};var dbits;var canary=0xdeadbeefcafe;var j_lm=(canary&16777215)==15715070;function BigInteger(a,b,c){if(a!=null)if("number"==typeof a)this.fromNumber(a,b,c);else if(b==null&&"string"!=typeof a)this.fromString(a,256);else this.fromString(a,b)}function nbi(){return new BigInteger(null)}function am1(i,x,w,j,c,n){while(--n>=0){var v=x*this[i++]+w[j]+c;c=Math.floor(v/67108864);w[j++]=v&67108863}return c}function am2(i,x,w,j,c,n){var xl=x&32767,xh=x>>15;while(--n>=0){var l=this[i]&32767;var h=this[i++]>>15;var m=xh*l+h*xl;l=xl*l+((m&32767)<<15)+w[j]+(c&1073741823);c=(l>>>30)+(m>>>15)+xh*h+(c>>>30);w[j++]=l&1073741823}return c}function am3(i,x,w,j,c,n){var xl=x&16383,xh=x>>14;while(--n>=0){var l=this[i]&16383;var h=this[i++]>>14;var m=xh*l+h*xl;l=xl*l+((m&16383)<<14)+w[j]+c;c=(l>>28)+(m>>14)+xh*h;w[j++]=l&268435455}return c}if(j_lm&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;dbits=30}else if(j_lm&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;dbits=26}else{BigInteger.prototype.am=am3;dbits=28}BigInteger.prototype.DB=dbits;BigInteger.prototype.DM=(1<<dbits)-1;BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP);BigInteger.prototype.F1=BI_FP-dbits;BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";var BI_RC=new Array;var rr,vv;rr="0".charCodeAt(0);for(vv=0;vv<=9;++vv)BI_RC[rr++]=vv;rr="a".charCodeAt(0);for(vv=10;vv<36;++vv)BI_RC[rr++]=vv;rr="A".charCodeAt(0);for(vv=10;vv<36;++vv)BI_RC[rr++]=vv;function int2char(n){return BI_RM.charAt(n)}function intAt(s,i){var c=BI_RC[s.charCodeAt(i)];return c==null?-1:c}function bnpCopyTo(r){for(var i=this.t-1;i>=0;--i)r[i]=this[i];r.t=this.t;r.s=this.s}function bnpFromInt(x){this.t=1;this.s=x<0?-1:0;if(x>0)this[0]=x;else if(x<-1)this[0]=x+DV;else this.t=0}function nbv(i){var r=nbi();r.fromInt(i);return r}function bnpFromString(s,b){var k;if(b==16)k=4;else if(b==8)k=3;else if(b==256)k=8;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else{this.fromRadix(s,b);return}this.t=0;this.s=0;var i=s.length,mi=false,sh=0;while(--i>=0){var x=k==8?s[i]&255:intAt(s,i);if(x<0){if(s.charAt(i)=="-")mi=true;continue}mi=false;if(sh==0)this[this.t++]=x;else if(sh+k>this.DB){this[this.t-1]|=(x&(1<<this.DB-sh)-1)<<sh;this[this.t++]=x>>this.DB-sh}else this[this.t-1]|=x<<sh;sh+=k;if(sh>=this.DB)sh-=this.DB}if(k==8&&(s[0]&128)!=0){this.s=-1;if(sh>0)this[this.t-1]|=(1<<this.DB-sh)-1<<sh}this.clamp();if(mi)BigInteger.ZERO.subTo(this,this)}function bnpClamp(){var c=this.s&this.DM;while(this.t>0&&this[this.t-1]==c)--this.t}function bnToString(b){if(this.s<0)return"-"+this.negate().toString(b);var k;if(b==16)k=4;else if(b==8)k=3;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else return this.toRadix(b);var km=(1<<k)-1,d,m=false,r="",i=this.t;var p=this.DB-i*this.DB%k;if(i-->0){if(p<this.DB&&(d=this[i]>>p)>0){m=true;r=int2char(d)}while(i>=0){if(p<k){d=(this[i]&(1<<p)-1)<<k-p;d|=this[--i]>>(p+=this.DB-k)}else{d=this[i]>>(p-=k)&km;if(p<=0){p+=this.DB;--i}}if(d>0)m=true;if(m)r+=int2char(d)}}return m?r:"0"}function bnNegate(){var r=nbi();BigInteger.ZERO.subTo(this,r);return r}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(a){var r=this.s-a.s;if(r!=0)return r;var i=this.t;r=i-a.t;if(r!=0)return this.s<0?-r:r;while(--i>=0)if((r=this[i]-a[i])!=0)return r;return 0}function nbits(x){var r=1,t;if((t=x>>>16)!=0){x=t;r+=16}if((t=x>>8)!=0){x=t;r+=8}if((t=x>>4)!=0){x=t;r+=4}if((t=x>>2)!=0){x=t;r+=2}if((t=x>>1)!=0){x=t;r+=1}return r}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(n,r){var i;for(i=this.t-1;i>=0;--i)r[i+n]=this[i];for(i=n-1;i>=0;--i)r[i]=0;r.t=this.t+n;r.s=this.s}function bnpDRShiftTo(n,r){for(var i=n;i<this.t;++i)r[i-n]=this[i];r.t=Math.max(this.t-n,0);r.s=this.s}function bnpLShiftTo(n,r){var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<<cbs)-1;var ds=Math.floor(n/this.DB),c=this.s<<bs&this.DM,i;for(i=this.t-1;i>=0;--i){r[i+ds+1]=this[i]>>cbs|c;c=(this[i]&bm)<<bs}for(i=ds-1;i>=0;--i)r[i]=0;r[ds]=c;r.t=this.t+ds+1;r.s=this.s;r.clamp()}function bnpRShiftTo(n,r){r.s=this.s;var ds=Math.floor(n/this.DB);if(ds>=this.t){r.t=0;return}var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<<bs)-1;r[0]=this[ds]>>bs;for(var i=ds+1;i<this.t;++i){r[i-ds-1]|=(this[i]&bm)<<cbs;r[i-ds]=this[i]>>bs}if(bs>0)r[this.t-ds-1]|=(this.s&bm)<<cbs;r.t=this.t-ds;r.clamp()}function bnpSubTo(a,r){var i=0,c=0,m=Math.min(a.t,this.t);while(i<m){c+=this[i]-a[i];r[i++]=c&this.DM;c>>=this.DB}if(a.t<this.t){c-=a.s;while(i<this.t){c+=this[i];r[i++]=c&this.DM;c>>=this.DB}c+=this.s}else{c+=this.s;while(i<a.t){c-=a[i];r[i++]=c&this.DM;c>>=this.DB}c-=a.s}r.s=c<0?-1:0;if(c<-1)r[i++]=this.DV+c;else if(c>0)r[i++]=c;r.t=i;r.clamp()}function bnpMultiplyTo(a,r){var x=this.abs(),y=a.abs();var i=x.t;r.t=i+y.t;while(--i>=0)r[i]=0;for(i=0;i<y.t;++i)r[i+x.t]=x.am(0,y[i],r,i,0,x.t);r.s=0;r.clamp();if(this.s!=a.s)BigInteger.ZERO.subTo(r,r)}function bnpSquareTo(r){var x=this.abs();var i=r.t=2*x.t;while(--i>=0)r[i]=0;for(i=0;i<x.t-1;++i){var c=x.am(i,x[i],r,2*i,0,1);if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1))>=x.DV){r[i+x.t]-=x.DV;r[i+x.t+1]=1}}if(r.t>0)r[r.t-1]+=x.am(i,x[i],r,2*i,0,1);r.s=0;r.clamp()}function bnpDivRemTo(m,q,r){var pm=m.abs();if(pm.t<=0)return;var pt=this.abs();if(pt.t<pm.t){if(q!=null)q.fromInt(0);if(r!=null)this.copyTo(r);return}if(r==null)r=nbi();var y=nbi(),ts=this.s,ms=m.s;var nsh=this.DB-nbits(pm[pm.t-1]);if(nsh>0){pm.lShiftTo(nsh,y);pt.lShiftTo(nsh,r)}else{pm.copyTo(y);pt.copyTo(r)}var ys=y.t;var y0=y[ys-1];if(y0==0)return;var yt=y0*(1<<this.F1)+(ys>1?y[ys-2]>>this.F2:0);var d1=this.FV/yt,d2=(1<<this.F1)/yt,e=1<<this.F2;var i=r.t,j=i-ys,t=q==null?nbi():q;y.dlShiftTo(j,t);if(r.compareTo(t)>=0){r[r.t++]=1;r.subTo(t,r)}BigInteger.ONE.dlShiftTo(ys,t);t.subTo(y,y);while(y.t<ys)y[y.t++]=0;while(--j>=0){var qd=r[--i]==y0?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);if((r[i]+=y.am(0,qd,r,j,0,ys))<qd){y.dlShiftTo(j,t);r.subTo(t,r);while(r[i]<--qd)r.subTo(t,r)}}if(q!=null){r.drShiftTo(ys,q);if(ts!=ms)BigInteger.ZERO.subTo(q,q)}r.t=ys;r.clamp();if(nsh>0)r.rShiftTo(nsh,r);if(ts<0)BigInteger.ZERO.subTo(r,r)}function bnMod(a){var r=nbi();this.abs().divRemTo(a,null,r);if(this.s<0&&r.compareTo(BigInteger.ZERO)>0)a.subTo(r,r);return r}function Classic(m){this.m=m}function cConvert(x){if(x.s<0||x.compareTo(this.m)>=0)return x.mod(this.m);else return x}function cRevert(x){return x}function cReduce(x){x.divRemTo(this.m,null,x)}function cMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r)}function cSqrTo(x,r){x.squareTo(r);this.reduce(r)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var x=this[0];if((x&1)==0)return 0;var y=x&3;y=y*(2-(x&15)*y)&15;y=y*(2-(x&255)*y)&255;y=y*(2-((x&65535)*y&65535))&65535;y=y*(2-x*y%this.DV)%this.DV;return y>0?this.DV-y:-y}function Montgomery(m){this.m=m;this.mp=m.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<<m.DB-15)-1;this.mt2=2*m.t}function montConvert(x){var r=nbi();x.abs().dlShiftTo(this.m.t,r);r.divRemTo(this.m,null,r);if(x.s<0&&r.compareTo(BigInteger.ZERO)>0)this.m.subTo(r,r);return r}function montRevert(x){var r=nbi();x.copyTo(r);this.reduce(r);return r}function montReduce(x){while(x.t<=this.mt2)x[x.t++]=0;for(var i=0;i<this.m.t;++i){var j=x[i]&32767;var u0=j*this.mpl+((j*this.mph+(x[i]>>15)*this.mpl&this.um)<<15)&x.DM;j=i+this.m.t;x[j]+=this.m.am(0,u0,x,i,0,this.m.t);while(x[j]>=x.DV){x[j]-=x.DV;x[++j]++}}x.clamp();x.drShiftTo(this.m.t,x);if(x.compareTo(this.m)>=0)x.subTo(this.m,x)}function montSqrTo(x,r){x.squareTo(r);this.reduce(r)}function montMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(e,z){if(e>4294967295||e<1)return BigInteger.ONE;var r=nbi(),r2=nbi(),g=z.convert(this),i=nbits(e)-1;g.copyTo(r);while(--i>=0){z.sqrTo(r,r2);if((e&1<<i)>0)z.mulTo(r2,g,r);else{var t=r;r=r2;r2=t}}return z.revert(r)}function bnModPowInt(e,m){var z;if(e<256||m.isEven())z=new Classic(m);else z=new Montgomery(m);return this.exp(e,z)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnpFromRadix(s,b){this.fromInt(0);if(b==null)b=10;var cs=this.chunkSize(b);var d=Math.pow(b,cs),mi=false,j=0,w=0;for(var i=0;i<s.length;++i){var x=intAt(s,i);if(x<0){if(s.charAt(i)=="-"&&this.signum()==0)mi=true;continue}w=b*w+x;if(++j>=cs){this.dMultiply(d);this.dAddOffset(w,0);j=0;w=0}}if(j>0){this.dMultiply(Math.pow(b,j));this.dAddOffset(w,0)}if(mi)BigInteger.ZERO.subTo(this,this)}function bnpChunkSize(r){return Math.floor(Math.LN2*this.DB/Math.log(r))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpDMultiply(n){this[this.t]=this.am(0,n-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(n,w){if(n==0)return;while(this.t<=w)this[this.t++]=0;this[w]+=n;while(this[w]>=this.DV){this[w]-=this.DV;if(++w>=this.t)this[this.t++]=0;++this[w]}}function bnpToRadix(b){if(b==null)b=10;if(this.signum()==0||b<2||b>36)return"0";var cs=this.chunkSize(b);var a=Math.pow(b,cs);var d=nbv(a),y=nbi(),z=nbi(),r="";this.divRemTo(d,y,z);while(y.signum()>0){r=(a+z.intValue()).toString(b).substr(1)+r;y.divRemTo(d,y,z)}return z.intValue().toString(b)+r}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function bnpAddTo(a,r){var i=0,c=0,m=Math.min(a.t,this.t);while(i<m){c+=this[i]+a[i];r[i++]=c&this.DM;c>>=this.DB}if(a.t<this.t){c+=a.s;while(i<this.t){c+=this[i];r[i++]=c&this.DM;c>>=this.DB}c+=this.s}else{c+=this.s;while(i<a.t){c+=a[i];r[i++]=c&this.DM;c>>=this.DB}c+=a.s}r.s=c<0?-1:0;if(c>0)r[i++]=c;else if(c<-1)r[i++]=this.DV+c;r.t=i;r.clamp()}BigInteger.prototype.fromRadix=bnpFromRadix;BigInteger.prototype.chunkSize=bnpChunkSize;BigInteger.prototype.signum=bnSigNum;BigInteger.prototype.dMultiply=bnpDMultiply;BigInteger.prototype.dAddOffset=bnpDAddOffset;BigInteger.prototype.toRadix=bnpToRadix;BigInteger.prototype.intValue=bnIntValue;BigInteger.prototype.addTo=bnpAddTo;var Wrapper={abs:(function(l,h){var x=new goog.math.Long(l,h);var ret;if(x.isNegative()){ret=x.negate()}else{ret=x}HEAP32[tempDoublePtr>>2]=ret.low_;HEAP32[tempDoublePtr+4>>2]=ret.high_}),ensureTemps:(function(){if(Wrapper.ensuredTemps)return;Wrapper.ensuredTemps=true;Wrapper.two32=new BigInteger;Wrapper.two32.fromString("4294967296",10);Wrapper.two64=new BigInteger;Wrapper.two64.fromString("18446744073709551616",10);Wrapper.temp1=new BigInteger;Wrapper.temp2=new BigInteger}),lh2bignum:(function(l,h){var a=new BigInteger;a.fromString(h.toString(),10);var b=new BigInteger;a.multiplyTo(Wrapper.two32,b);var c=new BigInteger;c.fromString(l.toString(),10);var d=new BigInteger;c.addTo(b,d);return d}),stringify:(function(l,h,unsigned){var ret=(new goog.math.Long(l,h)).toString();if(unsigned&&ret[0]=="-"){Wrapper.ensureTemps();var bignum=new BigInteger;bignum.fromString(ret,10);ret=new BigInteger;Wrapper.two64.addTo(bignum,ret);ret=ret.toString(10)}return ret}),fromString:(function(str,base,min,max,unsigned){Wrapper.ensureTemps();var bignum=new BigInteger;bignum.fromString(str,base);var bigmin=new BigInteger;bigmin.fromString(min,10);var bigmax=new BigInteger;bigmax.fromString(max,10);if(unsigned&&bignum.compareTo(BigInteger.ZERO)<0){var temp=new BigInteger;bignum.addTo(Wrapper.two64,temp);bignum=temp}var error=false;if(bignum.compareTo(bigmin)<0){bignum=bigmin;error=true}else if(bignum.compareTo(bigmax)>0){bignum=bigmax;error=true}var ret=goog.math.Long.fromString(bignum.toString());HEAP32[tempDoublePtr>>2]=ret.low_;HEAP32[tempDoublePtr+4>>2]=ret.high_;if(error)throw"range error"})};return Wrapper})();if(memoryInitializer){if(typeof Module["locateFile"]==="function"){memoryInitializer=Module["locateFile"](memoryInitializer)}else if(Module["memoryInitializerPrefixURL"]){memoryInitializer=Module["memoryInitializerPrefixURL"]+memoryInitializer}if(ENVIRONMENT_IS_NODE||ENVIRONMENT_IS_SHELL){var data=Module["readBinary"](memoryInitializer);HEAPU8.set(data,STATIC_BASE)}else{addRunDependency("memory initializer");function applyMemoryInitializer(data){if(data.byteLength)data=new Uint8Array(data);for(var i=0;i<data.length;i++){assert(HEAPU8[STATIC_BASE+i]===0,"area for memory initializer should not have been touched before it's loaded")}HEAPU8.set(data,STATIC_BASE);removeRunDependency("memory initializer")}var request=Module["memoryInitializerRequest"];if(request){if(request.response){setTimeout((function(){applyMemoryInitializer(request.response)}),0)}else{request.addEventListener("load",(function(){if(request.status!==200&&request.status!==0){console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+request.status)}if(!request.response||typeof request.response!=="object"||!request.response.byteLength){console.warn("a problem seems to have happened with Module.memoryInitializerRequest response (expected ArrayBuffer): "+request.response)}applyMemoryInitializer(request.response)}))}}else{Browser.asyncLoad(memoryInitializer,applyMemoryInitializer,(function(){throw"could not load memory initializer "+memoryInitializer}))}}}function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){assert(runDependencies==0,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");assert(__ATPRERUN__.length==0,"cannot call main when preRun functions remain to be called");args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);initialStackTop=STACKTOP;try{var ret=Module["_main"](argc,argv,0);exit(ret)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){Module.printErr("run() called, but dependencies remain, so not running");return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(ENVIRONMENT_IS_WEB&&preloadStartTime!==null){Module.printErr("pre-main prep time: "+(Date.now()-preloadStartTime)+" ms")}if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(Module["_main"]&&shouldRunNow)Module["callMain"](args);postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}}Module["run"]=Module.run=run;function exit(status){if(Module["noExitRuntime"]){Module.printErr("exit("+status+") called, but noExitRuntime, so not exiting (you can use emscripten_force_exit, if you want to force a true shutdown)");return}ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status);if(ENVIRONMENT_IS_NODE){process["stdout"]["once"]("drain",(function(){process["exit"](status)}));console.log(" ");setTimeout((function(){process["exit"](status)}),500)}else if(ENVIRONMENT_IS_SHELL&&typeof quit==="function"){quit(status)}throw new ExitStatus(status)}Module["exit"]=Module.exit=exit;var abortDecorators=[];function abort(what){if(what!==undefined){Module.print(what);Module.printErr(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;var extra="";var output="abort("+what+") at "+stackTrace()+extra;abortDecorators.forEach((function(decorator){output=decorator(output,what)}));throw output}Module["abort"]=Module.abort=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"]){shouldRunNow=false}run()
